algorithmic modeling for Rhino
any idea how to sort a list of curves in python? key is X value of start point.
It seems python in grasshopper doesn't support AddTextDot. . .
Assuming that your input is a list a curves named 'curves'...
sorted_curves = sorted(curves, key=lambda a: a.PointAtStart.X)
Thx,I did something like this:
and its working to.
Thanks again for help,