How to calculate the distance between any two points of the network?

nicholas_g1
Not applicable
0 Views
2 Replies
Message 1 of 3

How to calculate the distance between any two points of the network?

nicholas_g1
Not applicable

[ FlexSim 21.0.6 ]

Hello,

I have a question for the developers of the AGV module. I noticed that there is a specific function cpdistance(obj cp1, obj cp2) to calculate the distance between two Contrtol Points. By chance there is a similar function or a simple way to calculate the distance between two points of the network without using Control Points.

For example I would like to calculate the distance between the two points of intersection indicated in the attached photo.

1628259175511.png

0 Likes
Accepted solutions (1)
1 View
2 Replies
Replies (2)
Message 2 of 3

amerloQ2XZU
Not applicable
Accepted solution

Hi,

I don't know a direct command to compute that distance.

I suggest to use the data "distAlong" stored inside the path to know the distance along the path. Then you can compute the total distance jumping from the previous path to the next path till the target is reached.

distalong.png

But I don't figure out how you could use this value. If you explained your objective, I'll try to help you better.

0 Likes
Message 3 of 3

jeanette_fullmer88DK3
Autodesk
Autodesk

Hi @Nicholas G,

We haven't heard back from you. Were you able to solve your problem? If so, please add and accept an answer to let others know the solution. Or please respond to the previous comment so that we can continue to help you.

If we don't hear back in the next 3 business days, we'll assume you were able to solve your problem and we'll close this case in our tracker. You can always comment back at any time to reopen your question, or you can contact your local FlexSim distributor for phone or email help.

0 Likes