Bug in "Set Number in People Group" ?

Bug in "Set Number in People Group" ?

SCHamoen
Advisor Advisor
16 Views
1 Reply
Message 1 of 2

Bug in "Set Number in People Group" ?

SCHamoen
Advisor
Advisor

[ FlexSim 21.2.4 ]

I'm working on a people model and I want to have a number of equipment in the model, based on a variable in the parameters table. I can use the sampler and select a people group and I get the option to Set Number in People Group". I can also do that directly as an option in the On Set trigger. But when I do that and press reset, nothing happens. If I look at the underlying code it look like there is only code for removing objects and not for adding them. Is that correct?

0 Likes
Accepted solutions (1)
17 Views
1 Reply
Reply (1)
Message 2 of 2

Matthew_Gillespie
Autodesk
Autodesk
Accepted solution

To use that option you need to have your maximum number already in the model. The code then makes a number of them unavailable during the model run by removing them from their group. You should see a black box drawn under the objects that are unavailable.

This option doesn't delete and create copies of the objects like the other option (Delete and Copy Group Members) because in a lot of cases in people models the objects are unique.



Matthew Gillespie
FlexSim Software Developer

0 Likes