Rhinoscript - square pipe script problem

There is a rhinoscript that is posted on the developer page


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

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.

Looks like the script was originally written for Rhino 3. I’ve updated the sample to work with Rhino 4 and 5.

You can also try mine…


MultiSquarePipe.rvb (1.6 KB)

Showoff… :wink:

For those watching at home, the two scripts use differing techniques: the wiki version extrudes a rectangle along the curve. Mitch’s fancy version sweeps a rectangle. Both are good examples.