I’m new to scripting through Python, but for a first try I think I’m doing a progress…hopefully!!
I’m trying to create a spiral staircase, and it’s almost done. I’m having a problem creating a loop for the posts on the rails (which appear as lines in the photo) and creating surfaces for the steps.
Could anyone help?!
(the problem is in the end of the file)
Spiral Staircase.py (4.1 KB)
I managed to create the steps with (NurbsSurface.CreateFromCorners)
The remaining problem is the posts on the rails, and here is the coding the I wrote for it:
posts = [ ]
for i in range(0, 49):
posts.append(rs.AddPipe(lineStepList5[i], rs.CurveDomain(lineStepList5[stepsCount-1]), radius2/3))
which only works if I applied it to one line like this:
posts = rs.AddPipe(lineStepList5, rs.CurveDomain(lineStepList5[stepsCount-1]), radius2/3)