question

Ryosuke S avatar image
0 Likes"
Ryosuke S asked Ryosuke S commented

With OnSlotEntry, how can I get the Slot type defined in PaintSlotLabel

With OnSlotEntry, on the slot where the item is placed, how can I get the Slot type defined in PaintSlotLabel?

capture013.jpg

paint_slot_label_en.fsm

FlexSim 21.0.6
processflowslotpaint slot labels
capture011.jpg (52.3 KiB)
capture013.jpg (97.8 KiB)
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 Ryosuke S commented

You already have the correct Syntax in your model.

slot.Type (or "token.slot.Type" in your case)

will return the value of the Type label on the slot. You just used "type" which refers to the data type instead of the label "Type".

Your second version of finding the value in the tree would also work. If you already have a reference to the slot you can shorten it to

slot.find("/slotLabels/Type).value
· 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.

Ryosuke S avatar image Ryosuke S commented ·
@Felix Möhlmann Oh, it was that simple. Thank you for your reply in detail.
0 Likes 0 ·

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.