Skip to content

Commit

Permalink
FEM: ccx tools, check if the active analysis has result object before…
Browse files Browse the repository at this point in the history
… try to open results
  • Loading branch information
berndhahnebach committed Nov 22, 2016
1 parent 10b9f68 commit 494b508
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Mod/Fem/FemToolsCcx.py
Expand Up @@ -242,6 +242,9 @@ def load_results_ccxfrd(self):
for m in self.analysis.Member:
if m.isDerivedFrom("Fem::FemResultObject"):
self.results_present = True
break
else:
FreeCAD.Console.PrintError('FEM: No result object in active Analysis.\n')
else:
raise Exception('FEM: No results found at {}!'.format(frd_result_file))

Expand All @@ -256,7 +259,7 @@ def load_results_ccxdat(self):
else:
raise Exception('FEM: No .dat results found at {}!'.format(dat_result_file))
if mode_frequencies:
print(mode_frequencies)
# print(mode_frequencies)
for m in self.analysis.Member:
if m.isDerivedFrom("Fem::FemResultObject") and m.Eigenmode > 0:
for mf in mode_frequencies:
Expand Down

0 comments on commit 494b508

Please sign in to comment.