question

Patrick avatar image
0 Likes"
Patrick asked Jeanette F commented

Is it possible to add more than one label with triggers to the same item?

I would like to assign several labels (e.g. name, process time 1, process time 2, ...) to the same flowitem when creating a flowitem. So far I have only found the option to add more labels via another trigger, but these labels are then assigned independently of the labels assigned in the first trigger. It is important that I can assign a certain combination of labels to the individual flowitems.

Thanks in advance for the help :-)

FlexSim 23.1.4
labelstriggerscreating labels
· 3
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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Patrick commented

The number of options you can add to a trigger is not limited. You should be able to add multiple labels to an item within a single trigger.

1692771188766.png

If only certain combinations of labels are valid, you can either write those into a table, determine the row from which to read the values and then assign those to the item. Or you use a code snippet with if-conditions or a switch-statement to select the fitting values based on the randomly generated first label value.


1692771188766.png (9.4 KiB)
· 3
5 |100000

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