FEM: in out, return obj on import

This commit is contained in:
Bernd Hahnebach
2019-05-24 19:04:47 +02:00
parent 3c82ffca73
commit a0497f42fd
2 changed files with 3 additions and 1 deletions

View File

@@ -125,7 +125,7 @@ def importFrd(filename, analysis=None, result_name_prefix=None):
else:
FreeCAD.Console.PrintError('Problem on frd file import. No nodes found in frd file.\n')
return res_obj
# read a calculix result file and extract the nodes, displacement vectors and stress values.
def read_frd_result(frd_input):

View File

@@ -113,6 +113,7 @@ def importVtkFemMesh(filename, meshname):
meshobj.FemMesh = Fem.read(filename)
meshobj.touch()
FreeCAD.ActiveDocument.recompute()
return meshobj
def importVtkFCResult(filename, resultname, analysis=None, result_name_prefix=None):
@@ -147,3 +148,4 @@ def importVtkFCResult(filename, resultname, analysis=None, result_name_prefix=No
analysis_object.addObject(result_obj)
result_obj.touch()
FreeCAD.ActiveDocument.recompute()
return result_obj