Reverse path in railing

I’ve put together the following script to reserve the path (curve) in railings, whilst this works well in straight runs, I can’t work out railings with corners that will have 2 or more curves.
The python script at the end just flips the railing.
Any assistance will be greatful… thanks

Hi @EddieSaez.

You can try Joining the curves from the SpringsCollector.ElementSketch with PolyCurve.ByJoinedCurves and then Reverse it. You need to Explode the polycurve afterwards before it goes into Railing.SetPath.

This way the whole path reverses and not just every segment. Let me know if it did the trick.

1 Like

@Joelmick,

Your suggestion did the trick

Thank you