How to get coordinates of points in relative coordinates system (Not WCS) in Dynamo

Thanks you a lot !
I know that you are very strong and looks like I’m still very far from your level, since I dont understand the logic in your Python script. And actually right now you answered on my another question here:

as i see the distance variable in your script.
Hopefully one day I will master the world of Python.
One more time, thanks a lot for extra motivation to go farther in this scripting world!

Also I came up with one more logic for point sorting. I created a surface by sweep 1 rail. project the points onto the surface and sort them as per uv values

Best regards