question

justinrusty avatar image
0 Likes"
justinrusty asked Sebastián Cañas answered

Reference Quantity in Group ?

In my Process I have a create label that references a table for quantity of labels created. Is there any way for this to instead reference the number of staff members I have in a certain global group? For example if I have 5 staff members in my "Group1" is there away for it to reference this easily?

FlexSim 22.2.4
groupsstafftoken
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

·
Sebastián Cañas avatar image
0 Likes"
Sebastián Cañas answered

@justinrusty ,

If you want to reference all of the objects that are member of a group you can use:

Group("MyGroup").toFlatArray();

https://docs.flexsim.com/en/22.2/Reference/CodingInFlexSim/FlexScriptAPIReference/Data/Group.html#Method-toFlatArray

In case you want to reference the number of members that a group has, you can use:

Group("MyGroup").length

https://docs.flexsim.com/en/22.2/Reference/CodingInFlexSim/FlexScriptAPIReference/Data/Group.html#Property-length

¿Does this answer your question?

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.