Sweep 1 rail issue

Hi all;

I have an issue with sweep 1 rail that I don’t know how to solve.
I’m trying to make a sweep with a circular section and two close planar curves to makea ring, the trouble is that when I modify the parameters of one of the section curves the direction changes, so I have to flip one of the curves depending on the result.
How could I get always the same direction or make gh that flips the curve automaticaly to match the direction of the other curve.

Any help will bevry much appreciated,

JoanSweep 1 rail issue.gh (25.9 KB)

Sweep 1 rail issue_re.gh (25.6 KB)

Hi Kim;

Thanks so much, you saved my day !!

Best wishes,