I am trying to place clones of an object along each face of a compound object. It seems I am doing something wrong with assigning support but I am not sure what since none of the clones are mapped the the faces that I wish for them to be mapped.
Code: Select all
import FreeCAD, Draft, Part # get main object mainObj = App.ActiveDocument.diagrid_panels # get panel object panelObj = App.ActiveDocument.Sketch020 for i in mainObj.Shape.Faces: clone = Draft.clone(panelObj) clone.Support=[(mainObj,i)] #is this the correct syntax? clone.MapMode='InertialCS'