Hi, Flexsim support team,
As attached picture shows, if I’d like to one cell of Global table to control From Time column of state pie, kindly advise how to do this function, thanks.
Hi, Flexsim support team,
As attached picture shows, if I’d like to one cell of Global table to control From Time column of state pie, kindly advise how to do this function, thanks.
So you can do this by adding an OnModelReset trigger to your model. In the Toolbox tab (next to the Library tab on the left of the screen) Using the green 'plus' drop down you can select Modeling Logic > Model Trigger > On Reset. If you open up that trigger, you can add a code that looks something like this:
setvarnum(node("/Tools/Statistics/State Analysis",model()),"mincollecttime",gettablenum("GlobalTable1",1,1));
Where the first parameter of the node() function is a path to the State Pie you want to reference. (You can look this up in the model's Tree window.) and the gettablenum() function is referencing the Global Table you want to look up, and the row and column of that table that you want to reference.
This should make it so that every time you reset the model, that mincollecttime variable/field will update with whatever value you added to the Global Table cell.
5 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