<?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: Finding the nearest open slots to an item in a rack in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/finding-the-nearest-open-slots-to-an-item-in-a-rack/m-p/13565269#M66938</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;
 can we do it for particular rack or floor storage in model, can i know i query we need to put and where so we find the slot in that particular storage object
&lt;/DIV&gt;</description>
    <pubDate>Wed, 23 Apr 2025 12:10:26 GMT</pubDate>
    <dc:creator>ajdajadh1</dc:creator>
    <dc:date>2025-04-23T12:10:26Z</dc:date>
    <item>
      <title>Finding the nearest open slots to an item in a rack</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/finding-the-nearest-open-slots-to-an-item-in-a-rack/m-p/13565262#M66931</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 20.0.5 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Is there a way to use findSlot to identify open rack slots nearest in distance to an item that is already stored in a rack? Thanks in advance for your help.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 06 May 2020 19:44:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/finding-the-nearest-open-slots-to-an-item-in-a-rack/m-p/13565262#M66931</guid>
      <dc:creator>jon_abbott</dc:creator>
      <dc:date>2020-05-06T19:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the nearest open slots to an item in a rack</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/finding-the-nearest-open-slots-to-an-item-in-a-rack/m-p/13565263#M66932</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/1130/jon.a.html" nodeid="1130"&gt;@Jon Abbott&lt;/A&gt; Here's sample code I executed in a script window:&lt;/P&gt;&lt;PRE&gt;Storage.Slot other = Model.find("Rack1").as(Storage.Object).getSlot(7, 4, 1);
return Storage.system.findSlot("ORDER BY (slot.location.project(slot.storageObject, model()) - $1.as(Storage.Slot).location.project($1.as(Storage.Slot).storageObject, model())).magnitude ASC", 0, other.as(treenode));&lt;/PRE&gt;&lt;P&gt;Or you can make a command that calculates the distance and call that from the query.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 06 May 2020 22:20:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/finding-the-nearest-open-slots-to-an-item-in-a-rack/m-p/13565263#M66932</guid>
      <dc:creator>anthony_johnsonT83CM</dc:creator>
      <dc:date>2020-05-06T22:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the nearest open slots to an item in a rack</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/finding-the-nearest-open-slots-to-an-item-in-a-rack/m-p/13565264#M66933</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/1130/jon.a.html" nodeid="1130"&gt;@Jon Abbott&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Here's an example using the Warehousing pick options in Process Flow.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="28118-1588807191412.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1502067i60ACF79877E07A26/image-size/large?v=v2&amp;amp;px=999" role="button" title="28118-1588807191412.png" alt="28118-1588807191412.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/28110-find-nearest-slot.fsm" target="_blank"&gt;find_nearest_slot.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 06 May 2020 23:20:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/finding-the-nearest-open-slots-to-an-item-in-a-rack/m-p/13565264#M66933</guid>
      <dc:creator>philboboADSK</dc:creator>
      <dc:date>2020-05-06T23:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the nearest open slots to an item in a rack</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/finding-the-nearest-open-slots-to-an-item-in-a-rack/m-p/13565265#M66934</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;For others that may look at this question/answer, here's another example that uses the feature of using multiple Queries in Find Slot. This example will try to avoid mixing slots with different types.&lt;/P&gt;&lt;P&gt;First, it looks for a slot that has an item that it matches.&lt;/P&gt;&lt;P&gt;Then it looks for the nearest empty slot.&lt;/P&gt;&lt;P&gt;Finally, it looks for the nearest slot with space regardless of what is in it.&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/temp/28119-find-nearest-slot-1.fsm" target="_blank"&gt;find_nearest_slot_1.fsm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Results in this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="28120-1588809826551.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1502068i987B0B9346D3F9B3/image-size/large?v=v2&amp;amp;px=999" role="button" title="28120-1588809826551.png" alt="28120-1588809826551.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Instead of this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="28131-1588809835294.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1502070iC8E2B81C785B9D45/image-size/large?v=v2&amp;amp;px=999" role="button" title="28131-1588809835294.png" alt="28131-1588809835294.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 07 May 2020 00:04:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/finding-the-nearest-open-slots-to-an-item-in-a-rack/m-p/13565265#M66934</guid>
      <dc:creator>philboboADSK</dc:creator>
      <dc:date>2020-05-07T00:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the nearest open slots to an item in a rack</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/finding-the-nearest-open-slots-to-an-item-in-a-rack/m-p/13565266#M66935</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;This is great! Thanks &lt;A rel="user" href="https://answers.flexsim.com/users/206/phil.b.html" nodeid="206"&gt;@phil.bobo&lt;/A&gt; and &lt;A rel="user" href="https://answers.flexsim.com/users/207/anthony.j.html" nodeid="207"&gt;@anthony.johnson&lt;/A&gt; for all of your help with this.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 07 May 2020 00:32:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/finding-the-nearest-open-slots-to-an-item-in-a-rack/m-p/13565266#M66935</guid>
      <dc:creator>jon_abbott</dc:creator>
      <dc:date>2020-05-07T00:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the nearest open slots to an item in a rack</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/finding-the-nearest-open-slots-to-an-item-in-a-rack/m-p/13565267#M66936</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Note this example will only compare locations within the same rack. If you want to compare locations across different racks, you need to use the Vec3.project() method to translate the location from the rack's local space to the model space.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 07 May 2020 14:19:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/finding-the-nearest-open-slots-to-an-item-in-a-rack/m-p/13565267#M66936</guid>
      <dc:creator>anthony_johnsonT83CM</dc:creator>
      <dc:date>2020-05-07T14:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the nearest open slots to an item in a rack</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/finding-the-nearest-open-slots-to-an-item-in-a-rack/m-p/13565268#M66937</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;I have used the model &lt;A rel="nofollow noopener noreferrer" id="isPasted" href="https://answers.flexsim.com/storage/attachments/28119-find-nearest-slot-1.fsm" target="_blank"&gt;find_nearest_slot_1.fsm&lt;/A&gt; it works really great but for one floor storage but when i use multiple floor storage in the model it does not work. attaching my model. can anyone help.&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/91995-find-nearest-slot-1-updated.fsm" target="_blank"&gt;find-nearest-slot-1_Updated.fsm&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 23 Apr 2025 02:31:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/finding-the-nearest-open-slots-to-an-item-in-a-rack/m-p/13565268#M66937</guid>
      <dc:creator>ajdajadh1</dc:creator>
      <dc:date>2025-04-23T02:31:09Z</dc:date>
    </item>
    <item>
      <title>Re: Finding the nearest open slots to an item in a rack</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/finding-the-nearest-open-slots-to-an-item-in-a-rack/m-p/13565269#M66938</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 can we do it for particular rack or floor storage in model, can i know i query we need to put and where so we find the slot in that particular storage object
&lt;/DIV&gt;</description>
      <pubDate>Wed, 23 Apr 2025 12:10:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/finding-the-nearest-open-slots-to-an-item-in-a-rack/m-p/13565269#M66938</guid>
      <dc:creator>ajdajadh1</dc:creator>
      <dc:date>2025-04-23T12:10:26Z</dc:date>
    </item>
  </channel>
</rss>

