I can display the throughput for each an individual kiosk when I try to display the group of kiosks, I get the results shown in the attached gif file.
????
Thanks,
I can display the throughput for each an individual kiosk when I try to display the group of kiosks, I get the results shown in the attached gif file.
????
Thanks,
You can change the code behind that popup to loop over the members of the group and add up the output of each group member:
Object current = ownerobject(c); treenode textnode = param(1); /***popup:DisplayObjectStat*/ /**Display Object Stat*/ string starttext = /***tag:text*//**/"Object Stat: "/**/; Object involved = model().find(/** \nObject: *//***tag:object*//**/"Operator1"/**/); int stat = /***tag:stat*//**/1/**/; string statstr = ""; if (involved.is(Group)) { Group group = involved; Array members = group.toFlatArray(); int output = 0; for (int i = 1; i <= members.length; i++) { output += getoutput(members[i]); } statstr = string.fromNum(output,0); } else statstr = string.fromNum(getoutput(involved),0); setnodestr(textnode, concat(starttext, statstr));
Note that the above code will only work for the Output option.
That pick option gets the output of an individual object. It doesn't return the sum of the outputs of the members of a group.
The Group object itself does not keep aggregated stats about the members of the group. It only keeps a list of members.
If you want Group statistics, you can use a Statistics Collector, Calculated Table, or Dashboard chart to get that data. For example, you can drag a Composite Throughput chart into a Dashboard to collect the sum of the outputs of the members of a group.
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