Skip to content

Commit

Permalink
FEM: use proper command to create a Mechanical Anaylsis with all prop…
Browse files Browse the repository at this point in the history
…erties
  • Loading branch information
berndhahnebach authored and yorikvanhavre committed Nov 16, 2015
1 parent 36ffb45 commit d14e79e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Mod/Fem/ccxFrdReader.py
Expand Up @@ -220,7 +220,8 @@ def importFrd(filename, Analysis=None):
import Fem
if Analysis is None:
AnalysisName = os.path.splitext(os.path.basename(filename))[0]
AnalysisObject = FreeCAD.ActiveDocument.addObject('Fem::FemAnalysis', 'Analysis')
import MechanicalAnalysis
AnalysisObject = MechanicalAnalysis.makeMechanicalAnalysis('Analysis')
AnalysisObject.Label = AnalysisName
else:
AnalysisObject = Analysis
Expand Down

0 comments on commit d14e79e

Please sign in to comment.