From e0ed154996e8788c97624f20011fb884f42a0ccc Mon Sep 17 00:00:00 2001 From: Przemo Firszt Date: Thu, 19 Mar 2015 20:12:05 +0000 Subject: [PATCH] FEM: Warn user about not implemented Loads/Supports Signed-off-by: Przemo Firszt --- src/Mod/Fem/MechanicalAnalysis.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Mod/Fem/MechanicalAnalysis.py b/src/Mod/Fem/MechanicalAnalysis.py index c2bfca1da..e0e230c1a 100644 --- a/src/Mod/Fem/MechanicalAnalysis.py +++ b/src/Mod/Fem/MechanicalAnalysis.py @@ -395,10 +395,12 @@ class _JobControlTaskPanel: elif fo.ShapeType == 'Edge': FixedObjectType = 'LineSupport' print 'Line Supports are not yet implemented to export to CalculiX' + self.femConsoleMessage("Line Supports are not yet implemented to export to CalculiX", "#FF0000") # getNodesByEdge(fo) # not implemented yet elif fo.ShapeType == 'Vertex': FixedObjectType = 'PointSupport' print 'Point Supports are not yet implemented to export to CalculiX' + self.femConsoleMessage("Point Supports are not yet implemented to export to CalculiX", "#FF0000") # write load node set NodeSetNameForce = ForceObject.Name @@ -417,10 +419,12 @@ class _JobControlTaskPanel: elif fo.ShapeType == 'Edge': ForceObjectType = 'LineLoad' print 'Line Loads are not yet implemented to export to CalculiX' + self.femConsoleMessage("Line Loads are not yet implemented to export to CalculiX", "#FF0000") # getNodesByEdge(fo) # not implemented yet elif fo.ShapeType == 'Vertex': ForceObjectType = 'PointLoad' print 'Point Loads are not yet implemented to export to CalculiX' + self.femConsoleMessage("Point Loads are not yet implemented to export to CalculiX", "#FF0000") # get material properties YM = FreeCAD.Units.Quantity(MathObject.Material['Mechanical_youngsmodulus'])