Find shortest path

Hello everyone, I’m trying to develop a way to automatically create pipes in my project, going from point A to point B. Without any intersection and using the shortest path possible. However, I can’t think of a way in which this is automatically functional within Revit through visual programming within dynamo. Does anyone have any idea what I can do? I am very grateful in advance for your attention.

Hi Clauber,
Please review this post How to get help on the Dynamo forums
There are going to be many strategies available to optimise a pipe network, however going from A to B isn’t always a straight line. A search of Google Scholar will get you some papers to start thinking of strategies
My first thought would be to get a oriented enclosing rectangle of points A & B then use the most suitable horizontal & vertical edges to create your pipes