Hallo,
sorry for my bad english. I am very new in Python scripting and i am try to create layouts and details with selected objects.
My Code:
but it doesn't work. The script create layouts with details, zoom the first object in the first detail. But in the following layouts/details the script shows all objects in the details. Why? I hope you can help me.Code:import rhinoscriptsyntax as rs objects = rs.GetObjects("Select Objects") for n in range(len(objects)): frame = rs.BoundingBox(objects[n]) layout_nr = "Drawing Nr." + str(n+1) layout = rs.AddLayout(layout_nr, (1189,841)) detail = rs.AddDetail(layout, (10,10), (1179,831)) rs.CurrentDetail(layout, detail) rs.ZoomBoundingBox(frame)


Reply With Quote
