import rhinoscriptsyntax as rs # letter E allobjs = rs.AllObjects() rs.DeleteObjects(allobjs) # draw a closed curve in Rhino rs.Command("_Curve Degree=2 0,0,0 60,0,0 15,20,0 50,40,0 15,50,0 50,70,0 0,70,0 Close _Enter") crv= rs.FirstObject (select=True) # extrude the curve rs.Command ("_ExtrudeCrv Solid=No 30 _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 3.0 _Enter") rs.Command("_ExtrudeCrv Solid=Yes 0.3 _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 2.0 _Enter") rs.Command("Pipe 0.2 _Enter") rs.DeleteObject(srf) rs.UnselectAllObjects() # letter T import rhinoscriptsyntax as rs allobjs = rs.AllObjects() # draw a closed curve in rhino rs.Command("_curve Degree=2 25,25,0 80,50,0 50,50,0 50,80,0 70,50,0 120,65,0 120,50,0 90,60,0 90,0,0 Close _Enter") crv = rs.FirstObject(select=True) # extrude the curve rs.Command("_ExtrudeCrv Solid=No 30 _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 3.0 _Enter") rs.Command("_ExtrudeCrv Solid=Yes 0.3 _Enter") # create contourlines in X-diretions and use the pipe command (vertical support) rs.SelectObject(srf) rs.Command("Contour 0,0,0 1,0,0 2.0 _Enter") rs.Command("Pipe 0.2 _Enter") rs.DeleteObject(srf) rs.UnselectAllObjects()