FEM: Use ConstraintPython for SelfWeight

This commit is contained in:
Markus Hovorka
2017-08-03 13:13:12 +02:00
committed by Bernd Hahnebach
parent ef85389cbc
commit c623fc9a4b

View File

@@ -112,7 +112,7 @@ def makeConstraintPulley(name="ConstraintPulley"):
def makeConstraintSelfWeight(name="ConstraintSelfWeight"):
'''makeConstraintSelfWeight([name]): creates an self weight object to define a gravity load'''
obj = FreeCAD.ActiveDocument.addObject("Fem::FeaturePython", name)
obj = FreeCAD.ActiveDocument.addObject("Fem::ConstraintPython", name)
import PyObjects._FemConstraintSelfWeight
PyObjects._FemConstraintSelfWeight._FemConstraintSelfWeight(obj)
if FreeCAD.GuiUp: