With OnSlotEntry, on the slot where the item is placed, 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?
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
17 People are following this question.
FlexSim can help you understand and improve any system or process. Transform your existing data into accurate predictions.
FlexSim is a fully 3D simulation software environment. FlexSim can be used to simulate any process in any industry.
FlexSim®, FlexSim Healthcare™, Problem Solved.®, the FlexSim logo, the FlexSim X-mark, and the FlexSim Healthcare logo with stylized Caduceus mark are trademarks of FlexSim Software Products, Inc. All rights reserved.
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © Autodesk Inc. All rights reserved