import rhinoscriptsyntax as rs allobjs=rs.allobjs rs.DeleteObjects(alljobs) # draw a closed curve in Rhino rs.Command("_Curve Degree=2 0,0,0 40,-2,0 40,24,0 0,20,0 Close _Enter") crv=rs.FirstObject(select = True) # extrude the curve rs.Command("_ExtrudeCrv Solid=No 30 _Enter") srf=rs.FirstObject(select = True) # use handels to change NURBS shape rs.Command ("_Rebuild UPointCount=10 VPointCount=4 UDegree=3 VDegree=3 DeleteInput=Yes _Enter) rs.EnableObjectGrips(srf, True) pointlist = rs.ObjectGripLocation(srf) print pointlist for i, pt in enumerate(pointlist): cmd = "-Dot {} {} _Enter".format(str(i), str(pt)) rs.Command(cmd, False) rs.SelectObjektGrips(srf, 23) rs.Command("_Move 0,0,0 15,0,0 _Enter") rs.UnselectAllObjects # create contourlines in Z-direction and extrude them (floor plates) rs.Command("Contour 0,0,0 0,0,1 3.0 _Enter") rs.Command("_ExtrudeCrv Solid=Yes 0.3 _Enter") # create contourlines in X-direction to use the pipe command (vertical support) rs.SelectObjects(srf) rs.Command("Contour 0,0,0 1,0,0 2.0 _Enter") rs.Command("pipe 0.2 _Enter")