question

Martin BUE avatar image
1 Like"
Martin BUE asked Joerg Vogel edited

Add Astar member on reset

Hello,

I am using a A star to avoid colisions between operators and racks in my model. Everytime I add (or delete) operators or racks or anything else I need to manually add them in the Astar Navigator members list. These object belong to defined Groups

I wonder if it is possible to automatically add all members from these groups at every new start. through Astar navigator's OnReset trigger (with custom code maybe?)

FlexSim 18.1.2
a starreset triggeradd member
· 2
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

Joshua S avatar image
3 Likes"
Joshua S answered

if you plan to generate the objects through code, you can add them to the A star navigation using the following code.

  1. contextdragconnection("OperatorObject",model().find("AStarNavigator"),"A");
5 |100000

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