question

jacopo-r avatar image
0 Likes"
jacopo-r asked jacopo-r commented

Get path reference in Conditional Rule

Hi all,

I am trying to set a conditional rule for a straight path. I need to get the path reference in the code, so I can access a label I assigned to the path and then check if this label matches with a label on the AGV. Can someone help me out on how to do this, please?
Thanks

FlexSim 23.1.3
agvnetworkconditional rule
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

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered jacopo-r commented

Just like AStar barrier rules the Conditional Rules are not object based so you can't get a reference to a path to find its attributes afaik. You can try to use the route cost which is a path based - but there you have no agv reference.

Alternatively look at the AGV Customization Delegate which may provide the required hooks for you to achieve your goal.

· 5
5 |100000

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