question

Sebastien avatar image
0 Likes"
Sebastien asked Sebastien commented

Change Group members with code during simulation

Hello,
I am trying to change the members of a location group with code but during a simulation run. With our first tests, it seems that the group content is updated on reset, also when wu use group.addmember()

Is it possible to change the location members of a group during a simulation run ? If yes, how ?

FlexSim 20.2.3
model rungroupmember
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
1 Like"
Jason Lightfoot answered Sebastien commented
  1. Group("Locations").addMember(myobject)

works but you also need to push to the Locations global List:

  1. List("Locations").push(myobject);
· 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.