question

Jouky D avatar image
0 Likes"
Jouky D asked Jouky D commented

FlexScript: How to inverse path in AGV Network?

Hello everyone,

I need to reverse the path in flexscript. The same as this button does:
1717503809703.pngI know there is a way to put the path as Two Way path using setvarnum(path, "isTwoWay", 1), however, there is no variable to change the direction of the path.

FlexSim 23.2.3
flexscriptpathagvnetworks
1717503840202.png (8.9 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

·
Arun Kr avatar image
0 Likes"
Arun Kr answered Jouky D commented

Hi

Object Path = Model.find("AGVNetwork/Path1");
function_s(Path,"switchDirection");
· 1
5 |100000

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

Jouky D avatar image Jouky D commented ·
Thank you:)
0 Likes 0 ·

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.

find answers

Think you know an expert who is sure to have the answer to this question? Reach out and ask them to post an answer.