Hi Team,
I am facing issue while incrementing label "ID" value using local variable.
Can anybody help me how to write code for it?
Thank you!
Hi Team,
I am facing issue while incrementing label "ID" value using local variable.
Can anybody help me how to write code for it?
Thank you!
You're incrementing a local variable that you're not initialising to an explicit value but will usually be zero. Use a global variable, eg. myID, instead of the local one. The you can use it in the label assigment directly with the increment operator++:
Thank you for your answer!
But I am looking for approach using local variable only. The reason is I have to use hundreds of variable in my model. I don't know if defining global variable every time is effective approach?
What would your suggest in such case? Will you still recommend to use global variable?
Thank you!
Then put a label on an object and increment that. The question is how many distinct incrementing counters do you want and how are they grouped/partitioned?
combining Token.ID and table rows is not an recommended approach, because there are other processes under the hood which can create tokens,too. You should think about to set a process flow label for such a task, where you link an ID value to numbers of rows in tables. Or you you evaluate your table directly to get numbers of rows by property numRows.
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