FEM: result mechanical object, use same name sheme as for all other FEM objects

This commit is contained in:
Bernd Hahnebach
2017-02-21 07:06:23 +01:00
committed by wmayer
parent 50dc32e6b6
commit f88d6fde4c
9 changed files with 24 additions and 27 deletions

View File

@@ -135,14 +135,14 @@ def makeMaterialMechanicalNonlinear(base_material, name="MechanicalMaterialNonli
########## results ##########
def makeMechanicalResult(name="MechanicalResult"):
'''makeMechanicalResult(name): creates an mechanical object result to hold FEM results'''
def makeResultMechanical(name="MechanicalResult"):
'''makeResultMechanical(name): creates an mechanical result object to hold FEM results'''
obj = FreeCAD.ActiveDocument.addObject('Fem::FemResultObjectPython', name)
import _FemMechanicalResult
_FemMechanicalResult._FemMechanicalResult(obj)
import _FemResultMechanical
_FemResultMechanical._FemResultMechanical(obj)
if FreeCAD.GuiUp:
from _ViewProviderFemMechanicalResult import _ViewProviderFemMechanicalResult
_ViewProviderFemMechanicalResult(obj.ViewObject)
from _ViewProviderFemResultMechanical import _ViewProviderFemResultMechanical
_ViewProviderFemResultMechanical(obj.ViewObject)
return obj