import rhinoscriptsyntax as rs allobjs = rs.AllObjects() #draw a closed curve in Rhino rs.Command("_Curve Degree=2 90,0,0 90,15,0 115,20,0 130,35,0 85,60,0 95,80,0 120,90,0 135,80,0 120,70,0 105,60,0 135,40,0 130,20,0 100,0,0 90,0,0 Close _Enter") crv = rs.FirstObject(select=True) #extrude the curve rs.Command("_ExtrudeCrv Solid=No 100 _Enter") srf = rs.FirstObject(select=True) #use handles to change NURBS shape #create contourlines in Z-direction and extrude them (floor plates) rs.Command("Contour 0,0,0 0,0,1 10 _Enter") rs.Command("_ExtrudeCrv Solid=Yes 1 _Enter") #create contourlines in X-direction and use the pipe command (vertical support) rs.SelectObject(srf) rs.Command("Contour 0,0,0 1,0,0 5 _Enter") rs.Command("Pipe 0.2 _Enter")