I’m trying to make a script for moving and exporting a group of objects but I get stuck. I did a few tutorials on rhino python but am not completely common with it.
What I want to do for every group is move (copy) it with the lower left corner to the zero point, export it to a folder I can choose and delete afterwards so that I still have the original group in it’s original place but the dxf is exported at the zero point. The layers with it’s colors should be maintained in the dxf.
When I try moving I already get stuck because it moves every object separately and not as a group.
This is what I have so far:
import rhinoscriptsyntax as rs
objcts = rs.GetObjects(“Select objects”)
zeropoint = [0,0,0]
for x in objcts:
bb = rs.BoundingBox(x)
bb1 = bb
mvvec = rs.VectorCreate(zeropoint, bb1)
Any help would be highly appreciated, thanks!
160302 group to dxf export.3dm (25.6 KB)