Need help with finding the shortest distance between 2 points on a network of graph

Need help with finding the shortest distance between 2 points on a network of graph

rahul_jainMY6RE
Participant Participant
694 Views
3 Replies
Message 1 of 4

Need help with finding the shortest distance between 2 points on a network of graph

rahul_jainMY6RE
Participant
Participant

rahul_jainMY6RE_0-1715766421494.png

So i need the shortest distance between these 2 points as well as which lines it used to travel to that point every line will have a different layer (L1, L2, L3.....) name so as to differentiate it. i tried djikstra but i am having trouble getting it successfully implementing. can anyone share any lisp or code for this. Please find attached dwg file for your tinkering.

0 Likes
Accepted solutions (1)
695 Views
3 Replies
Replies (3)
Message 2 of 4

rahul_jainMY6RE
Participant
Participant

Anyone can please help 

0 Likes
Message 3 of 4

vladimir_michl
Advisor
Advisor
Accepted solution
Message 4 of 4

rahul_jainMY6RE
Participant
Participant

Wow that's a good solution. Thanks, I really really appreciate it. but it is solving only one of my problem the next problem that I am encountering is that as u can see all my lines have different names or they are in separate layer I also want the layer names that line is following. Any lead on that? Like if the path is like P1 to P2 then L18, L9 and then so on

0 Likes