Need help with flexscript. I want to display a text billboard with the data highlighted red below and divide it by 150 and round to 2 decimal places. If it works, it should show "Cycle Time: 1.98 hours".
Need help with flexscript. I want to display a text billboard with the data highlighted red below and divide it by 150 and round to 2 decimal places. If it works, it should show "Cycle Time: 1.98 hours".
The command you are looking for is the getstat() command.
getstat(getactivity("ProcessFlow", "Zone1"), "Staytime", STAT_CURRENT)
To place this in a billboard select the Display Text pick option and enter:
concat("Cycle Time: ", numtostring(getstat(getactivity("ProcessFlow", "Zone1"), "Staytime", STAT_CURRENT) / 150, 0, 2), " hours")
The numtostring command's 3 parameter is the precision. Setting this to 2 will have it display two decimal places of precision.
4 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