I am trying to use a control dashboard and an edit box to set a global string variable. The documentation says I should be able to do so. Only global numeric variables show up as options. Any help is greatly appreciated.
I am trying to use a control dashboard and an edit box to set a global string variable. The documentation says I should be able to do so. Only global numeric variables show up as options. Any help is greatly appreciated.
Here's a sample model. First, you need to set the global variable as a string type.
Link the edit button to the global variable node in the model tree under the tools parent node. When linking using the sampler, it will not show the path till the end data node. You need to manually add the path, as shown in the pic below.
Then in the on-apply trigger of the edit button you need to execute either one of the following codes
treenode link = node("..>objectfocus+", c); // link variable to the treenode Variable1 = link.value;//Updating the global table value
or
treenode link = node("..>objectfocus+", c);// link variable to the treenode refreshglobalvariables();// command to refresh all global variable
This will update the string global variable, whatever values you insert in the edit field.
Regards,
Arun KRUpdateDashboard_String_GV.fsm
13 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