Rotate piped-line arrays

Hi. I made these line arrays along my existing curves but once I add dimension (rectangular pipe) I see that some of them are on 90* rotation or lowkey random which I don’t know how these extrusions choose their orientation against my guide curve.


Is there any way for me to control the rotation?

Another problem is they’re literally pipes, which is hollow. I was wondering if can make them fully-solid or at least make it have closed surface on top & bottom part.

Here I attach my current works. Thank you in advance.
facade progrees.gh (27.7 KB)
Facade install.3dm (9.6 MB)

if you use Perp Frame on a Curve, you will give you a perpendicular Plane to the Curve at a given Parameter, no info provided on how those Plane’s X/Y axis are aligned, just its Z axis will be parallel to the Cuve Tangent Vector at t, and Origin at t:

depending on what you’re after, this will align each plane X axis with the top curve:

resulting in something like this:

be aware that, because you have determined starting points and end points on curves with different trajectories, it happens that start point A is on a location where starting curve has already turned (A) and end point is in a location where end curve is still moving straight (B):

be also aware that -of course- start/end sections of the strips are on the same angle as the Plane you’re using to generate the starting Rectangles themselves:

you can use Cap Holes to make them solid:


facade progrees_Re.gh (27.9 KB)

Thank you very much this helps a lot!!!