FEM: analysis object, move make def into make objects FEM module

This commit is contained in:
Bernd Hahnebach
2017-02-20 17:43:04 +01:00
committed by wmayer
parent cb6c050d14
commit f4bb2a0624
9 changed files with 18 additions and 51 deletions

View File

@@ -30,6 +30,13 @@ __url__ = "http://www.freecadweb.org"
import FreeCAD
########## analysis ##########
def makeAnalysis(name):
'''makeAnalysis(name): makes a Fem Analysis object'''
obj = FreeCAD.ActiveDocument.addObject("Fem::FemAnalysisPython", name)
return obj
########## constraints ##########
def makeConstraintBearing(name):
'''makeConstraintBearing(name): makes a Fem ConstraintBearing object'''