import rhinoscriptsyntax as rs allobgjs = rs.AllObjects #draw a closed curve in rhino rs.Command("_Curve Degree2 0,0,0 120,0,0 120,50,0 30,80,0 120,100,0 130,130,0 40,150,0 0,110,0 10,80,0 70,50,0 0,20,0 Close _Enter") crv = rs.FirstObject(select=True) #extrude the curve rs.Command("_ExtrudeCrv Solid=No 300 _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 extrude them (vertical support) rs.SelectObject(srf) rs.Command("Contour 0,0,0 1,0,0 2 _Enter") rs.Command("Pipe 0.2 _Enter")