Please tell me how to count the process flow objects used in the simulation model.
I have run the script below, but the correct value is not returned.
Please tell me how to count the process flow objects used in the simulation model.
I have run the script below, but the correct value is not returned.
That script does return the number of Process Flow objects in the model. However, if you want the number of process flow activities in a process flow you need to add up all the sub nodes of the process flow.
This script will add up all the activities in all the process flows in the model:
treenode processFlows = model().find("Tools/ProcessFlow"); int numActivities = 0; for (int i = 1; i <= processFlows.subnodes.length; i++) numActivities += processFlows.subnodes[i].subnodes.length - 1; return numActivities;
10 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