FEM: lgtm, various improvements

This commit is contained in:
Bernd Hahnebach
2019-06-29 13:20:07 +02:00
parent 8c3cf6249b
commit a043ad072e
7 changed files with 20 additions and 24 deletions

View File

@@ -227,10 +227,10 @@ class FemInputWriter():
# check shape type of reference shape
for femobj in self.force_objects:
# femobj --> dict, FreeCAD document object is femobj['Object']
FreeCAD.Console.PrintMessage(
"Constraint force:" + ' ' + femobj['Object'].Name + '\n'
)
frc_obj = femobj['Object']
FreeCAD.Console.PrintMessage(
"Constraint force:" + ' ' + frc_obj.Name + '\n'
)
if femobj['RefShapeType'] == 'Vertex':
FreeCAD.Console.PrintLog(
"load on vertices --> we do not need the "