I am trying to change the value of the variables based on the value in the table?
How to change the value of global variable at the model start or model reset ?
I am trying to change the value of the variables based on the value in the table?
How to change the value of global variable at the model start or model reset ?
Hi @Manoj K3, any 3D object has got triggers. One of them is the On Reset trigger. You find additionally such a trigger in the toolbox for the item Modeling Logic> Model Trigger. Unfortunately there isn’t a direct picklist option in the 3D object triggers to manipulate a global variable. You must write source code in the source code editor of the 3D object, which you access by the parchment roll icon, or the OnModelReset Model Triggers. Because the variable is global, you can assign the value directly by the name.
variable1 = 2;
If you want to get a value from a global table assigned into a global variable you get the value by
Table(“Your global table name”)[ num row] [num column]
variable1 = Table(“GlobalTable1”)[1][1];
Any names I have used are default values.
12 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