Hi,
I have a partitioned zone in my processflow. In a separate activity, I need to know how many tolens are in a particular partition in the zone. I see how to get the stat for the total, but not how to break that down by partition.
Thanks
Craig
Hi,
I have a partitioned zone in my processflow. In a separate activity, I need to know how many tolens are in a particular partition in the zone. I see how to get the stat for the total, but not how to break that down by partition.
Thanks
Craig
There is an option for this in the "Assign Labels" activity.
The "Requirement" is the partition ID (or variable/label containing that ID).
If you want to get the value in code, the command this option uses is:getstat(<ZoneObject>, "PartitionContent", STAT_CURRENT, <InstanceObject>, <PartitionID);
The <InstanceObject> reference is only necessary if you are using an instanced process flow. Otherwise it would mostly be "current" if you want to get the value in the same process flow.
Warning:
Partitions will be created as soon as a token belonging to it first enters the zone. If you try to get the content of a not (yet) existant partition, both methods will return the maximum value for the class you assign it to (integer: -2147483648, double: 340282346638528859811704183484516925440)
7 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