Is there a way or command to quickly count the # of entries in a list under a certain partition ID? The list is defined in process flow, track the content of 4 racks, each rack can have 5 different type of items.
Is there a way or command to quickly count the # of entries in a list under a certain partition ID? The list is defined in process flow, track the content of 4 racks, each rack can have 5 different type of items.
If you're using the internal list of a List Shared Asset in Process Flow, then the biggest issue becomes trying to get the path as to where the actual list resides. Let's assume that your List Shared Asset is pointing at a Global List in the Toolbox. To get the number of entries in a partition looks like this:
getstat(globallist("List1"), "PartitionContent", STAT_CURRENT, paritionID)
I am not having that point to a global list, can I use this?
getstat(getactivity(processFlow, "List"),"Content", STAT_CURRENT,1) to get # of entries on List with partition ID 1? Tried this, seems give incorrect results, it provides all the entries on the list. When using getstat(getactivity(processFlow, "List"),"Content", STAT_CURRENT), it gives me total entries currently on the list.
For a ProcessFlow list in a general flow, or if the list is marked "Global", you should use:
getstat(getactivity(processFlow, "List"), "PartitionContent", STAT_CURRENT, 0, partitionID)
For a ProcessFlow list in an FR or TE flow that is marked Local, you should use
getstat(getactivity(processFlow, "List"), "PartitionContent", STAT_CURRENT, instance, partitionID)
If you are trying to get the content of a particular partition, be sure to use "PartitionContent", and not just plain "Content".
I think this is a bug. It should actually work with:
getstat(getactivity(processFlow, "List"), "Content", STAT_CURRENT, current, partitionID)
Where current is the instance owner object.
@jordan.johnson can you confirm this?
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