Hi,
Is there a way to create unique names when using the create object activity? All flow items that are created have the same name "Pallet" or "Cylinder".
Thanks!
Hi,
Is there a way to create unique names when using the create object activity? All flow items that are created have the same name "Pallet" or "Cylinder".
Thanks!
Use a numeric global variable eg 'numitems' and the set the name with something like:
token.item.name+="_"+numitems++;
I had an incremented label called PalletID, so I used that instead of creating a global variable. I am currently referencing the PalletID label in other places but now that I have unique object names I could reference those directly. Once I have that updated I will be move over to using a global variable.
Instead of adding a _1, _2.. I ended up replacing the name itself using
token.item.name = "Pallet"+numitems++
14 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