Having troubles on Sweep

Hello, I’m having troubles with my code.I’m ttrying to create a structure for a wall with the sweep tool. The code is working just as I wanted on other parts but I’m having troubles on this wall


It is not possible to diagnose your code from screenshots. If you want help, you will have to post a grasshopper (.gh) file.

-Kevin

I solved the problem by exploding the rail curves and creating a nurbs curve from the points. Works fine at the moment. Thank you.