There is a rhinoscript that is posted on the developer page
http://wiki.mcneel.com/developer/scriptsamples/squarepipe?ModPagespeed=noscript
There is an error that occurs on the fifth part of code
Source: Microsoft VBScript runtime error
Error: Type mismatch: 'arrCurvature’
Line: 31
Char: 1
Code:
I am appying the command to an open curves imported from an autocad file. Just to check I opened a clean file and created a control point curve and it seems to have no problem.
Ahh…problem is that it won’t create square pipe on straight line or multiple lines at same time.