Simplifying parametric facades

Hi there.
First of all, I would like to apologize in advance for the long post, and my average English.
I’m working in Architecture firm, and my I have been doing parmatric facades with atrractor curves, and I have been overcomplicating the code, because of the facade complexity.
Let me start at the beginning:
I got a basic facade of Repeated pattern of 2 frames:


Then duplicated it for full 34 floors

then inserted it into the grasshopper, doing the process of attractor curve and got it:

so, it worked out ok so for, then the boss wanted to ignore the columns on the end of the frame, and instead of separated frames, make it sloped, if you understand what i’m saying:

So, for me it meant to break the frames into one 2 beams and several columns.
of coruse, because now there was one single long beam, I were not able to get the “gradient” pattern I got before, so what I did was to take the beam, extract the curves and break them into smaller curves, and make them into much smaller beams:

and so I got back the “gradient”, but I still needed to make the beams into one slopped beam:

eventually, I managed to extract the points out of the beams, connect them to each other, get one slopped curve, and extrude it.


what is my point? as I said, I overcomplicate the code for making this one facade, and I’m trying to get better way to applying it to other facades in the project or other projects if necessary.

I’m hoping that maybe someone with some free time will take a look on my code and tell me what is wrong with it and I could improve and simplify it.
Check2.gh (792.7 KB)

Thank you all!