import rhinoscriptsyntax as rs #Tutorial fuer den Tower #curve befehl ausfueren rs.Command("_curve 0,0,0 -17,7,0 -44,12,0 -67,-9,0 -64,-40,0 -17,-59,0 21,-72,0 24,-92,0 18,-121,0 8,-131,0 -34,-142,0 -77,-127,0 -79,-127,0 -96,-126,0 -96,-134,0 -71,-146,0 -19,-156,0 21,-147,0 38,-125,0 44,-104,0 47,-84,0 39,-64,0 15,-50,0 -18,-42,0 -44,-31,0 -49,-15,0 -40,-4,0 -12,-7,0 0,-10,0 4,-6,0 0,0,0 _Enter") crv = rs.FirstObject(select=True) h= 100 #extrudecrv h=100, solid no rs.Command("_ExtrudeCrv Solid=No {} _Enter".format(h)) srf = rs.FirstObject(select=True) """ #Form verzerren rs.Command("-_Rebuild UPointCount=10 VPointCount=4 UDegree=3 VDegree=3 DeleteInput=Yes _Enter") rs.EnableObjectGrips(srf, True) pointlist = rs.ObjectGripLocations(srf) print pointlist for i,pt in enumerate(pointlist): cmd = "-Dot {} {} _Enter".format(i,pt) rs.Command(cmd, False) rs.SelectObjectGrip(srf,20) rs.Command("-_Move 0,0,0 45,0,0 _Enter") rs.UnselectAllObjects() rs.SelectObjectGrip(srf, 18) rs.Command("-_Move 0,0,0 20,0,0 _Enter") """ #contour horizontal distance = 10 rs.Command("_Contour 0,0,0 0,0,1 10 _Enter") #extrude mit hoehe 1 rs.Command("_ExtrudeCrv Solid=Yes 1 _Enter") #contour vertikal distance = 5 rs.SelectObject(srf) rs.Command("_Contour 0,0,0 1,0,0 5 _Enter") #Pipe mit radius=1 rs.Command("_Pipe 1 _Enter") #extrudiere Faeche loeschen rs.DeleteObject(srf)