The shape is going to visualize a joints orientation and limits in my "RobotCreator" workbench.
Currently i only have a sphere that is implemented like this:
Code: Select all
def execute(self, fp):
fp.Shape = Part.makeSphere(1)
Code: Select all
App.ActiveDocument.addObject("Part::Sphere","Sphere")
App.ActiveDocument.addObject("Part::Cylinder","Cylinder")
FreeCAD.getDocument("Unnamed").getObject("Cylinder").Angle = 180.00
App.activeDocument().Fusion.Shapes = [App.activeDocument().Sphere,App.activeDocument().Cylinder,]
shapeThatIWant = FreeCAD.getDocument("Unnamed").getObject("Fusion").Shape
// remove sphere
// remove cylinder
// remove fusion