Join 2 Curves into 1 using Polyline

Hi there,

I have a problem that is quite simple but I couldn’t figure out a more efficient way of doing this. I have an extremely long code to go from the left photo to the right.

I am essentially taking the control points of the 2 curves from each floor and culling ones out that I don’t want, then using insert items to make sure the polyline is in order. For just 8 curves I have a really long script and was wondering if there is an easier way to do this? Also without any plugins?

(there is more not shown in the screenshot)

Rebuild (75.0 KB) (24.6 KB)


Hi Mahdiyar,

Thank you so much for your help! I’m wondering if there is a way to join the bottom 8 curves as well so that the split is gone just like in my photo? This was the main issue that I wanted to simplify in the script since my code was too long. (23.7 KB)


Thank you!! :blush:


Is this the result you are looking for?
Rebuild (76.8 KB)

Hi Jia,
Thanks for your help, I was looking to keep the middle curves but close off the bottom ones which was solved above!