<?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: Limit the items on a gravity flow rack in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/limit-the-items-on-a-gravity-flow-rack/m-p/13580925#M78926</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Did you add the "items" label to the slot. Because that's not a default expression. Other than that the code looks like you are trying to count the amount of items of a specific type in the slot. But due to the matching labels condition items with a different type can't be in the slot in the first place, no?&lt;/P&gt;&lt;P&gt;You can check how many items are assigned to a slot through the &lt;A rel="noopener noreferrer" id="isPasted" href="https://docs.flexsim.com/en/24.0/Reference/CodingInFlexSim/FlexScriptAPIReference/Warehousing/Storage.Slot.html#Property-slotItems" target="_blank"&gt;slotItems&lt;/A&gt; property of the slot class. So to limit the total quantity per slot you would just add "slot.slotItems.length &amp;lt; 2" to the condition.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1712333053111.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1523308i666DDF8B384D6078/image-size/large?v=v2&amp;amp;px=999" role="button" title="1712333053111.png" alt="1712333053111.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 05 Apr 2024 16:04:13 GMT</pubDate>
    <dc:creator>moehlmann_fe</dc:creator>
    <dc:date>2024-04-05T16:04:13Z</dc:date>
    <item>
      <title>Limit the items on a gravity flow rack</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/limit-the-items-on-a-gravity-flow-rack/m-p/13580924#M78925</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 23.1.2 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;I want to limit the items in my gravity flow rack. I only want to items per slot in my rack. I tried to customize the code of "Slot Assignment Strategy" but it didn't work: &lt;/P&gt;
 &lt;P id="isPasted"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1712327425506.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1523310iD26FA1671E388DA3/image-size/large?v=v2&amp;amp;px=999" role="button" title="1712327425506.png" alt="1712327425506.png" /&gt;&lt;/span&gt;Can someone help me? &lt;/P&gt;
 &lt;P&gt; &lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 05 Apr 2024 14:31:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/limit-the-items-on-a-gravity-flow-rack/m-p/13580924#M78925</guid>
      <dc:creator>Gust_Flex</dc:creator>
      <dc:date>2024-04-05T14:31:55Z</dc:date>
    </item>
    <item>
      <title>Re: Limit the items on a gravity flow rack</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/limit-the-items-on-a-gravity-flow-rack/m-p/13580925#M78926</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Did you add the "items" label to the slot. Because that's not a default expression. Other than that the code looks like you are trying to count the amount of items of a specific type in the slot. But due to the matching labels condition items with a different type can't be in the slot in the first place, no?&lt;/P&gt;&lt;P&gt;You can check how many items are assigned to a slot through the &lt;A rel="noopener noreferrer" id="isPasted" href="https://docs.flexsim.com/en/24.0/Reference/CodingInFlexSim/FlexScriptAPIReference/Warehousing/Storage.Slot.html#Property-slotItems" target="_blank"&gt;slotItems&lt;/A&gt; property of the slot class. So to limit the total quantity per slot you would just add "slot.slotItems.length &amp;lt; 2" to the condition.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1712333053111.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1523308i666DDF8B384D6078/image-size/large?v=v2&amp;amp;px=999" role="button" title="1712333053111.png" alt="1712333053111.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 05 Apr 2024 16:04:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/limit-the-items-on-a-gravity-flow-rack/m-p/13580925#M78926</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2024-04-05T16:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Limit the items on a gravity flow rack</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/limit-the-items-on-a-gravity-flow-rack/m-p/13580926#M78927</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;If I add the "slot.slotItems.length &amp;lt;2" it still doesn't work.. here is my testfile.&lt;/P&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/81192-test-simulation-flowrack-fm.fsm" target="_blank"&gt;test-simulation-flowrack-fm.fsm&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 05 Apr 2024 16:34:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/limit-the-items-on-a-gravity-flow-rack/m-p/13580926#M78927</guid>
      <dc:creator>Gust_Flex</dc:creator>
      <dc:date>2024-04-05T16:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Limit the items on a gravity flow rack</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/limit-the-items-on-a-gravity-flow-rack/m-p/13580927#M78928</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;The slot is assigned in Process Flow, so that's where you have to add the condition.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1712336125689.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1523309i1B1292117680F366/image-size/large?v=v2&amp;amp;px=999" role="button" title="1712336125689.png" alt="1712336125689.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 05 Apr 2024 16:55:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/limit-the-items-on-a-gravity-flow-rack/m-p/13580927#M78928</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2024-04-05T16:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Limit the items on a gravity flow rack</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/limit-the-items-on-a-gravity-flow-rack/m-p/13580928#M78929</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/43784/gust-flex.html" nodeid="43784"&gt;@gust-flex&lt;/A&gt;, was Felix Möhlmann's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.&lt;/P&gt;&lt;P&gt;If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always comment back to reopen your question.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 15 Apr 2024 15:36:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/limit-the-items-on-a-gravity-flow-rack/m-p/13580928#M78929</guid>
      <dc:creator>Jeanette_Fullmer</dc:creator>
      <dc:date>2024-04-15T15:36:09Z</dc:date>
    </item>
  </channel>
</rss>

