question

David Wang avatar image
0 Likes"
David Wang asked Felix Möhlmann answered

Distance between two Control Point in AGV Network

I'm trying to write my dispatching rule in Flexsim. So I need to know the distance between two control point from the path. I am curious is their any function from Flexscript can achieve my goal.

For instance I want to get the distance between A10_37 and A10_38.I have tried the function function_s("getDistance"). It does'n work.

1688212302449.png

test_control_area.fsm


FlexSim 23.0.9
flexscriptagvnetworkcontrolpoints
1688212302449.png (16.3 KiB)
test-control-area.fsm (140.6 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered

You are looking for the command cpdistance()

capture.png


capture.png (10.6 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.