<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: List Entry Count by partition ID in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/list-entry-count-by-partition-id/m-p/13557917#M61098</link>
    <description>&lt;P&gt;For a ProcessFlow list in a general flow, or if the list is marked "Global", you should use:&lt;/P&gt;&lt;PRE&gt;getstat(getactivity(processFlow, "List"), "PartitionContent", STAT_CURRENT, 0, partitionID)&lt;/PRE&gt;&lt;P&gt;For a ProcessFlow list in an FR or TE flow that is marked Local, you should use&lt;/P&gt;&lt;PRE&gt;getstat(getactivity(processFlow, "List"), "PartitionContent", STAT_CURRENT, instance, partitionID)&lt;/PRE&gt;&lt;P&gt;If you are trying to get the content of a particular partition, be sure to use "PartitionContent", and not just plain "Content".&lt;/P&gt;</description>
    <pubDate>Mon, 20 Nov 2017 16:13:20 GMT</pubDate>
    <dc:creator>JordanLJohnson</dc:creator>
    <dc:date>2017-11-20T16:13:20Z</dc:date>
    <item>
      <title>List Entry Count by partition ID</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/list-entry-count-by-partition-id/m-p/13557913#M61094</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 17.0.0 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;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. &lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2016 02:03:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/list-entry-count-by-partition-id/m-p/13557913#M61094</guid>
      <dc:creator>chao_gao</dc:creator>
      <dc:date>2016-12-15T02:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: List Entry Count by partition ID</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/list-entry-count-by-partition-id/m-p/13557914#M61095</link>
      <description>&lt;P&gt;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:&lt;/P&gt;&lt;PRE&gt;getstat(globallist("List1"), "PartitionContent", STAT_CURRENT, paritionID)&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Dec 2016 14:40:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/list-entry-count-by-partition-id/m-p/13557914#M61095</guid>
      <dc:creator>matt_long</dc:creator>
      <dc:date>2016-12-15T14:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: List Entry Count by partition ID</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/list-entry-count-by-partition-id/m-p/13557915#M61096</link>
      <description>&lt;P&gt;I am not having that point to a global list, can I use this?&lt;/P&gt;
&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2016 17:21:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/list-entry-count-by-partition-id/m-p/13557915#M61096</guid>
      <dc:creator>chao_gao</dc:creator>
      <dc:date>2016-12-15T17:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: List Entry Count by partition ID</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/list-entry-count-by-partition-id/m-p/13557916#M61097</link>
      <description>&lt;P&gt;I think this is a bug. It should actually work with:&lt;/P&gt;&lt;PRE&gt;getstat(getactivity(processFlow, "List"), "Content", STAT_CURRENT, current, partitionID)
&lt;/PRE&gt;&lt;P&gt;Where current is the instance owner object. &lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/220/jordan.j.html" nodeid="220"&gt;@jordan.johnson&lt;/A&gt; can you confirm this?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2016 17:26:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/list-entry-count-by-partition-id/m-p/13557916#M61097</guid>
      <dc:creator>matt_long</dc:creator>
      <dc:date>2016-12-15T17:26:40Z</dc:date>
    </item>
    <item>
      <title>Re: List Entry Count by partition ID</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/list-entry-count-by-partition-id/m-p/13557917#M61098</link>
      <description>&lt;P&gt;For a ProcessFlow list in a general flow, or if the list is marked "Global", you should use:&lt;/P&gt;&lt;PRE&gt;getstat(getactivity(processFlow, "List"), "PartitionContent", STAT_CURRENT, 0, partitionID)&lt;/PRE&gt;&lt;P&gt;For a ProcessFlow list in an FR or TE flow that is marked Local, you should use&lt;/P&gt;&lt;PRE&gt;getstat(getactivity(processFlow, "List"), "PartitionContent", STAT_CURRENT, instance, partitionID)&lt;/PRE&gt;&lt;P&gt;If you are trying to get the content of a particular partition, be sure to use "PartitionContent", and not just plain "Content".&lt;/P&gt;</description>
      <pubDate>Mon, 20 Nov 2017 16:13:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/list-entry-count-by-partition-id/m-p/13557917#M61098</guid>
      <dc:creator>JordanLJohnson</dc:creator>
      <dc:date>2017-11-20T16:13:20Z</dc:date>
    </item>
  </channel>
</rss>

