Now , prog runs , user transformate the "Cube" model in the 3d View. So the Placement property of the "Cube" object changed. Assume user translate the cube 3mm in X , and rotate the cube 30°， So the placement property of the cube will be "Cube.Placement.Angle = 30" and "Cube.Placement.Position.X = 3" .
Code: Select all
#Creat a Cube object import Part App.ActiveDocument.addObject("Part::Box","Box") App.ActiveDocument.ActiveObject.Label = "Cube" #Add some Vector to my Points List FreeCAD.MyPointsList.append(FreeCAD.Vector(10,10,10)) FreeCAD.MyPointsList.append(FreeCAD.Vector(20,20,20)) FreeCAD.MyPointsList.append(FreeCAD.Vector(30,30,30))
Now ,I want the Vectors in FreeCAD.MyPointsList can transformate simultaneously to the "Cube" object. So I want to set the Vector's "Placement" property, but I find there is no Placement property in Vector.
Now ,How can I transformate the Vectors in FreeCAD.MyPointsList ?
Need suggestions, Thanks a lot.