import rhinoscriptsyntax as rs allobjs = rs.AllObjects() rs.DeleteObjects(allobjs) #draw a closed curve in Rhino rs.Command("_Curve Degree=2 0,0,0 60,0,0 70,20,0 20,20,0 10,30,0 10,100,0 -10,80,0 -10,20,0 Close _Enter") crv = rs.FirstObject(select=True) #extrude the curve rs.Command("_ExtrudeCrv Solid=No 270 _Enter") srf = rs.FirstObject(select=True) #create contourlines in z-direction and extrude them (floor plates) rs.Command("Contour 0,0,0 0,0,1 30 _Enter") rs.Command("_ExtrudeCrv Solid=Yes 3 _Enter") #create contourlines in x-direction and use the pipe command (verticle support) rs.SelectObject(srf) rs.Command("Contour 0,0,0 1,0,0 2 _Enter") rs.Command("Pipe 0.2 _Enter") rs.DeleteObject(srf) rs.UnselectAllObjects() #draw a closed curve in Rhino rs.Command("_Curve Degree=2 0,0,0 60,0,0 70,20,0 20,20,0 10,30,0 10,100,0 -10,80,0 -10,20,0 Close _Enter") crv = rs.FirstObject(select=True) rs.RotateObject(crv, (40,50,0), 180) #rs.MoveObject(crv,(80,0,0)) #extrude the curve rs.Command("_ExtrudeCrv Solid=No 270 _Enter") srf = rs.FirstObject(select=True) #create contourlines in z-direction and extrude them (floor plates) rs.Command("Contour 0,0,0 0,0,1 30 _Enter") rs.Command("_ExtrudeCrv Solid=Yes 3 _Enter") #create contourlines in x-direction and use the pipe command (verticle support) rs.SelectObject(srf) rs.Command("Contour 0,0,0 1,0,0 2 _Enter") rs.Command("Pipe 0.2 _Enter") rs.DeleteObject(srf) rs.UnselectAllObjects()