question

Jimmy jang avatar image
0 Likes"
Jimmy jang asked Joerg Vogel commented

Groups' subnodes

Good Day


Currently i have several groups which are groups of racks and queues.


i am trying to create a token when subnodes ==0.

ex)

Group("Racks").subnodes.length

Group("Queues").subnodes.length


However i assume Group("Queues").subnodes.length applys to number of the queues.


May i know how to count the items inside all queues and racks ?


Best regards


FlexSim 24.2.1
groupsubnodes
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

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Joerg Vogel commented

https://docs.flexsim.com/en/24.2/Reference/CodingInFlexSim/CommandReference/Commands.html#forobjecttreeunder

please check, that you node container is casted correctly and it is the right node in tools of your model tree,

· 1
5 |100000

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

Joerg Vogel avatar image Joerg Vogel commented ·
This command has got a major impact on performance, if you run experiments. Perhaps you think of a different approach where you update labels at objects while you run your model to keep a correct inventory balance.
0 Likes 0 ·