"item" is not defined in your code.
Either use the button press code to set a label on the queue which is then used in the OnExit trigger to copy that value to a label on the item.
Or do it the other way around. Have the OnExit trigger set a label with a reference to the most recent item which is then used in the button press code to assign a label. (Though this way some items might not get any label if the button isn't pressed for each item before the next one leaves)
13 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 | © 2025 Autodesk Inc. All rights reserved