Given a Dynamo point project it on a Dynamo line. Obtain projected point.

There is a lot of nodes dealing with projecting point on a surface, but not dealing with projecting point on a line.

Theres a built in node that reports the distance to geometry, so I used it to obtain the shortest distance, then made a sphere and intersected it with the line. Alas, the rounding makes this method non-reliable, one of my intersection points turned up as a line with a length of 0,005 millimeter.

Can you demonstrate your exact problem? Sample files, steps taken, images are all accepted and even welcome. Please have a look at this post: POST It might be from a different forum, but I have been stressing to everyone that they need to ask better questions.

Thanks for the replies guys. I am sorry, I thought my explanation was complete.

Anyway, I didnâ€™t know that Dynamo has extensive vector manipulation node library. Now I know and I solved the problem by using vector calculation of a point projection on a line:

Where is the line?.. If you want to project a point onto a line use Vikramâ€™s solution, if you want to project a vector onto a vector then your solution is fine.

Yes, it is actually a solution to project a point onto a line between two other points. So if you have a line to begin with, you have to extract two points from it. End and start points work fine.

Hahaha, sorry. I think you only had a bunch op pointsâ€¦ no lines. So itâ€™s even easierâ€¦ Geometry.ClosestPointTo works fine, and here other solution. http://i64.tinypic.com/sm94jk.png