Random panel curtain wall problem

Hello, I am trying to create random panel facade like the attached picture, with removing segment mehod, but the script stop at curtain grid remove segment node, with “BSP line curve not implemented” error. Can somebody help me, what is incorrect in the script. I follow script made by Evolab with some adjustment to updated nodes.

I am trying to create this kind of facade