<?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: How to create pallets in a rack with multiple criteria? in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-create-pallets-in-a-rack-with-multiple-criteria/m-p/13575451#M74782</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;
 Thank you! The detail as to why the find slot activity wasn't working in my approach really helped. I'll check out the Find Slot activity and SQL Queries docs as well.
&lt;/DIV&gt;</description>
    <pubDate>Mon, 18 Mar 2024 13:27:28 GMT</pubDate>
    <dc:creator>joey_a</dc:creator>
    <dc:date>2024-03-18T13:27:28Z</dc:date>
    <item>
      <title>How to create pallets in a rack with multiple criteria?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-create-pallets-in-a-rack-with-multiple-criteria/m-p/13575448#M74779</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 23.0.5 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi, I am trying to populate a rack from a global table. I need to put the pallets into the rack on only the top 4 levels, slot it at random, and have only 1 pallet per location. Below are the steps I've done to do this but I can't figure out how to slot randomly AND on top 4 levels at the same time: My steps are below:&lt;/P&gt;
 &lt;P&gt;1. Used process flow to create pallets (with labels) from global table.&lt;/P&gt;
 &lt;P&gt;2. Added Queue 3 strictly for the purpose of resizing the pallet -- wasn't sure how to resize the pallet in the "Create Object" process flow&lt;/P&gt;
 &lt;P&gt;3. Created a rack and used the painter tool to identify the top 4 levels as "Overhead" storage (label Slot_Type)&lt;/P&gt;
 &lt;P&gt;4. I tried 2 ways of slotting. 1st - the find slot method but it didn't seem like it was assigning a slot...2nd I tried putting logic on the rack in the 3d model but it made me choose between "random with space" and "matching label" (note: i removed the connection between Queue 3 &amp;amp; the rack to try to get the process flow approach to work)&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/80117-rack-slot.fsm" target="_blank"&gt;Rack_Slot.fsm&lt;/A&gt;.&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;I am very new to FlexSim and I've scoured youtube and the flexsim docs but couldn't get this to work. Any help would be great!&lt;/P&gt;
 &lt;P&gt;Joey&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 08 Mar 2024 14:33:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-create-pallets-in-a-rack-with-multiple-criteria/m-p/13575448#M74779</guid>
      <dc:creator>joey_a</dc:creator>
      <dc:date>2024-03-08T14:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to create pallets in a rack with multiple criteria?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-create-pallets-in-a-rack-with-multiple-criteria/m-p/13575449#M74780</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;The label "pallet" that is used twice in the Find Slot activity does not exist on the token.&lt;/P&gt;&lt;P&gt;Because you generate more than one item per token in the Create Objects activity, the resulting token label is an array that contains references to all created items. With some notable exceptions (Move Object, Destroy Object), Process Flow activity generally only work on single items. You need to find a slot for each item individually, which can done with a subflow.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1710158229417.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1522799i7605BD4D18EBE5D8/image-size/large?v=v2&amp;amp;px=999" role="button" title="1710158229417.png" alt="1710158229417.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If you haven't already, I would suggest you look up the documentation on the &lt;A rel="noopener noreferrer" id="isPasted" href="https://docs.flexsim.com/en/23.0/Reference/ProcessFlowObjects/Warehousing/FindSlot/FindSlot.html" target="_blank"&gt;Find Slot&lt;/A&gt; activity and &lt;A rel="noopener noreferrer" id="isPasted" href="https://docs.flexsim.com/en/23.0/Reference/DeveloperAdvancedUser/SQLQueries/SQLQueries.html#app" target="_blank"&gt;SQL queries&lt;/A&gt; in general. &lt;/P&gt;&lt;P&gt;Your approach of using the "Overhead" label is good. But you also filter the levelID directly (slot.levelID != 'A'). To only place one item per slot, you can query the currently assigned number of items through "slot.slotItems.length". And lastly, you can order the eligible slots by "RAND()" to choose a random one.&lt;/P&gt;&lt;PRE&gt;WHERE slot.levelID != 'A' AND slot.slotItems.length == 0 ORDER BY RAND()&lt;/PRE&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/80174-rack-slot-1.fsm" target="_blank"&gt;rack-slot_1.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 11 Mar 2024 12:05:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-create-pallets-in-a-rack-with-multiple-criteria/m-p/13575449#M74780</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2024-03-11T12:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to create pallets in a rack with multiple criteria?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-create-pallets-in-a-rack-with-multiple-criteria/m-p/13575450#M74781</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/31644/joeya.html" nodeid="31644"&gt;@Joey A&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>Thu, 14 Mar 2024 19:15:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-create-pallets-in-a-rack-with-multiple-criteria/m-p/13575450#M74781</guid>
      <dc:creator>Jeanette_Fullmer</dc:creator>
      <dc:date>2024-03-14T19:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to create pallets in a rack with multiple criteria?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-to-create-pallets-in-a-rack-with-multiple-criteria/m-p/13575451#M74782</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Thank you! The detail as to why the find slot activity wasn't working in my approach really helped. I'll check out the Find Slot activity and SQL Queries docs as well.
&lt;/DIV&gt;</description>
      <pubDate>Mon, 18 Mar 2024 13:27:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-to-create-pallets-in-a-rack-with-multiple-criteria/m-p/13575451#M74782</guid>
      <dc:creator>joey_a</dc:creator>
      <dc:date>2024-03-18T13:27:28Z</dc:date>
    </item>
  </channel>
</rss>

