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.

Martin BUE avatar image Martin BUE commented ·

@Matthew Gillespie, For the moment I add the operators manually (copy-paste keep the group) but the goal is to generate them with or simple GUI or a VR button

1 Like 1 ·
Matthew Gillespie avatar image Matthew Gillespie ♦♦ commented ·

Are you creating the new objects through code?

0 Likes 0 ·

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.

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.

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.