<?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: Bug on Storage.system.getSlot() command in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/bug-on-storage-system-getslot-command/m-p/13540125#M47121</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;That's great to hear! Always happy to help.&lt;/DIV&gt;</description>
    <pubDate>Thu, 17 Feb 2022 13:57:42 GMT</pubDate>
    <dc:creator>moehlmann_fe</dc:creator>
    <dc:date>2022-02-17T13:57:42Z</dc:date>
    <item>
      <title>Bug on Storage.system.getSlot() command</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/bug-on-storage-system-getslot-command/m-p/13540122#M47118</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 21.2.3 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;I need to simulate a ruge initial storage at time 0.01 with over 20k pallets that must follow some conditions, first this conditions was checked by query using findSlot(), but this way the model freeze and take more then 10 minutes to run.&lt;/P&gt;
 &lt;P&gt;Now i'm using lists to define the adress and check the conditions, but i'm having trouble with the Storage.system.getSlot(), a thing that must be a bug cause i'm passing the adress get by .querySlots() and the getSlot() is returning null (no path).&lt;/P&gt;
 &lt;PRE&gt;//QuerySlots get all slots Here
Array arr_slots = Storage.system.querySlots("");

//Loop for all slots
for (int n=1;n&amp;lt;=arr_slots.length;n++){
//Define the slot
Storage.Slot ssl_thisslot = arr_slots&lt;N&gt;;
//Supose to use this variable, but not even direct works
string str_address = ssl_thisslot.address;

//This Line is not working
Storage.Slot ssl_Slot = Storage.system.getSlot(ssl_thisslot.address);
&lt;/N&gt;&lt;/PRE&gt;
 &lt;P&gt;I'm attaching the model down below, this model was made on 21.2.3, but i've already tryied on 22.0 too.&lt;/P&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/48706-storagesystemgetslot.fsm" target="_blank"&gt;StorageSystemGetSlot.fsm&lt;/A&gt;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;Thanks.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 16 Feb 2022 17:29:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/bug-on-storage-system-getslot-command/m-p/13540122#M47118</guid>
      <dc:creator>luis_gustavo_fsds</dc:creator>
      <dc:date>2022-02-16T17:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Bug on Storage.system.getSlot() command</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/bug-on-storage-system-getslot-command/m-p/13540123#M47119</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;The address scheme you are using is set to have a fixed length of 1 for the zone id, yet on the rack objects, the id is written as 0X.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1645043219885.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1508980iB7637EDD1634391A/image-size/large?v=v2&amp;amp;px=999" role="button" title="1645043219885.png" alt="1645043219885.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1645043237343.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1508981i2D88D2C2436026C9/image-size/large?v=v2&amp;amp;px=999" role="button" title="1645043237343.png" alt="1645043237343.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Due to the address scheme setting, only the 0 is read. You can see this in the value of your str_address variable. A slot with the address Z0-... doesn't exist though, so the command returns null.&lt;/P&gt;&lt;P&gt;When you change the zone id to have a length of 2 (or variable length) or delete the extra "0" in the rack's address settings, the command will work correctly.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 16 Feb 2022 20:27:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/bug-on-storage-system-getslot-command/m-p/13540123#M47119</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2022-02-16T20:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: Bug on Storage.system.getSlot() command</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/bug-on-storage-system-getslot-command/m-p/13540124#M47120</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Thank you 
 &lt;A rel="user" href="https://answers.flexsim.com/users/19365/felixmh.html" nodeid="19365"&gt;@Felix Möhlmann&lt;/A&gt;, it was exactly that detail making me crazy cause wasn't able to find it.
 &lt;P&gt;With this logic I was able to reduce the run time of the storage from 10 min to 1 min!&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 17 Feb 2022 13:47:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/bug-on-storage-system-getslot-command/m-p/13540124#M47120</guid>
      <dc:creator>luis_gustavo_fsds</dc:creator>
      <dc:date>2022-02-17T13:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Bug on Storage.system.getSlot() command</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/bug-on-storage-system-getslot-command/m-p/13540125#M47121</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;That's great to hear! Always happy to help.&lt;/DIV&gt;</description>
      <pubDate>Thu, 17 Feb 2022 13:57:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/bug-on-storage-system-getslot-command/m-p/13540125#M47121</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2022-02-17T13:57:42Z</dc:date>
    </item>
  </channel>
</rss>

