Square pipe script

OK, here is as far as I can go at this point. As soon as you start to introduce more variables, the coding gets more complex as there are special cases to handle and the scripts get more failure-prone. So here are 3 4 scripts: EDIT: below I added a fourth script to complete the collection…

  1. Constant section square pipe with a single side length input and no rounding - for very simple operation.

  2. Square pipe with options for corner rounding and different start/end sizes, including end to a point. Corner rads are constant throughout the sweep (no taper). Pipe to point will set corner rads automatically to 0 (sharp).

  3. Constant section rectangular pipe with corner radius option. Edit: note that if you set the radius to exactly half of the smallest side length, it is programmed (in theory) to make a nice oval section as well.

  4. Profile pipe. Uses an existing closed planar curve profile on WorldXY plane. Options:
    -Choose base point - pick/type a point; simply pressing Enter will use the profile bounding box center
    Base point will be mapped to path curves’ start and end
    -Scale start/end profile
    -Sweep to a point (put in 0 for second scale value)

–Mitch

MultisquarePipe.py (5.8 KB)
MultisquarePipe2VR.py (8.2 KB)
MultiRectPipeR.py (7.3 KB)
MultiProfilePipe.py (6.5 KB)

17 Likes