I want to number/renumber elements along a line.
Each element finds the shortest distance to the spline (perpendicular). This point on the line is the sorting order. Is there a function in Dynamo for this?
I have made such this program in Grasshopper and there the function was called “Curve Closest Point”
[video width=“1812” height=“764” mp4=“http://dynamobim.com/wpcontent/uploads/forumassets/runehauglandnorconsultcom/04/11/20150410_144010.mp4”][/video]
Step by step:

Draw a spline

Select objects

The objects are renumbered in the order of the spline.