Hello...is it possible to delete all labels in an item leaving a queue?
What would the code look like?
Thanks!
Hello...is it possible to delete all labels in an item leaving a queue?
What would the code look like?
Thanks!
Hi @Bryan Suharik,
In the exit trigger of the queue, use the following code.
// In FlexSim 2016 and earlier: clearcontents(labels(item)); // Using dot syntax in FlexSim 2017 and later labels(item).subnodes.clear();
Regards,
Arun KR
What would it be in FlexSim 2018? 2019? 2020?
Asking for other people coming across here :)
2017 still works, but completely in dot syntax:
item.attrs.labels.subnodes.clear();
item is declared as Object. If item is a reference as treenode, then you do:
item.as(Object).attrs.labels.subnodes.clear(); // or with method find item.find(">/labels").subnodes.clear();
6 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