<?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 I can Change the number of slots by level by bay and not by rack ? in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/how-i-can-change-the-number-of-slots-by-level-by-bay-and-not-by/m-p/13509261#M22645</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;I think this code modify the number of slots for bays with those number [b,l,1]&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1653309517844.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1510470i7B62D7EB4CC5D515/image-size/large?v=v2&amp;amp;px=999" role="button" title="1653309517844.png" alt="1653309517844.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Mon, 23 May 2022 12:38:48 GMT</pubDate>
    <dc:creator>loubna_e</dc:creator>
    <dc:date>2022-05-23T12:38:48Z</dc:date>
    <item>
      <title>How I can Change the number of slots by level by bay and not by rack ?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-i-can-change-the-number-of-slots-by-level-by-bay-and-not-by/m-p/13509256#M22640</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 22.0.2 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 23 May 2022 11:51:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-i-can-change-the-number-of-slots-by-level-by-bay-and-not-by/m-p/13509256#M22640</guid>
      <dc:creator>loubna_e</dc:creator>
      <dc:date>2022-05-23T11:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: How I can Change the number of slots by level by bay and not by rack ?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-i-can-change-the-number-of-slots-by-level-by-bay-and-not-by/m-p/13509257#M22641</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;In the dimension editor select the level /bay combination you want to change and type the number of slots you need in that location.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 23 May 2022 11:58:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-i-can-change-the-number-of-slots-by-level-by-bay-and-not-by/m-p/13509257#M22641</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2022-05-23T11:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: How I can Change the number of slots by level by bay and not by rack ?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-i-can-change-the-number-of-slots-by-level-by-bay-and-not-by/m-p/13509258#M22642</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Thank you but if i want to do it a script?&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 23 May 2022 11:59:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-i-can-change-the-number-of-slots-by-level-by-bay-and-not-by/m-p/13509258#M22642</guid>
      <dc:creator>loubna_e</dc:creator>
      <dc:date>2022-05-23T11:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: How I can Change the number of slots by level by bay and not by rack ?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-i-can-change-the-number-of-slots-by-level-by-bay-and-not-by/m-p/13509259#M22643</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;I dont know what to do after selecting the level and the bay to change the number of slots &lt;span class="lia-inline-image-display-wrapper" image-alt="1653307338196.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1510469i3691E7BCB96B3944/image-size/large?v=v2&amp;amp;px=999" role="button" title="1653307338196.png" alt="1653307338196.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 23 May 2022 12:04:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-i-can-change-the-number-of-slots-by-level-by-bay-and-not-by/m-p/13509259#M22643</guid>
      <dc:creator>loubna_e</dc:creator>
      <dc:date>2022-05-23T12:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: How I can Change the number of slots by level by bay and not by rack ?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-i-can-change-the-number-of-slots-by-level-by-bay-and-not-by/m-p/13509260#M22644</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;This may not be supported in future so don't use this throughout your model - better to put it in a user command so if it stops being supported you can change the command to something that is.&lt;/P&gt;&lt;PRE&gt;Storage.Object rack=current;
int numslots=3;
for (int b=rack.bays.length;b&amp;gt;0;b--){  //bays
    for (int l=rack.bays&lt;B&gt;.levels.length;l&amp;gt;0;l--){  //levels
        function_s(rack, "setNumSlots", numslots, [[b,l,1]]);  
    }
}&lt;/B&gt;&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 23 May 2022 12:06:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-i-can-change-the-number-of-slots-by-level-by-bay-and-not-by/m-p/13509260#M22644</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2022-05-23T12:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: How I can Change the number of slots by level by bay and not by rack ?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-i-can-change-the-number-of-slots-by-level-by-bay-and-not-by/m-p/13509261#M22645</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;I think this code modify the number of slots for bays with those number [b,l,1]&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1653309517844.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1510470i7B62D7EB4CC5D515/image-size/large?v=v2&amp;amp;px=999" role="button" title="1653309517844.png" alt="1653309517844.png" /&gt;&lt;/span&gt;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 23 May 2022 12:38:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-i-can-change-the-number-of-slots-by-level-by-bay-and-not-by/m-p/13509261#M22645</guid>
      <dc:creator>loubna_e</dc:creator>
      <dc:date>2022-05-23T12:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: How I can Change the number of slots by level by bay and not by rack ?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-i-can-change-the-number-of-slots-by-level-by-bay-and-not-by/m-p/13509262#M22646</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Sorry - there was a typo in my original post - I've updated it. &lt;/P&gt;&lt;P&gt;But you can see the call to set the slots just uses numeric values for the bay and level - so in your case you would use:&lt;/P&gt;&lt;PRE&gt;Storage.Object rack=Model.find("Rack1");
int bay=2;
int level=1;
int numslots=5;
function_s(rack,"setNumSlots",numslots,[[bay,level,1]]);&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 23 May 2022 12:47:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-i-can-change-the-number-of-slots-by-level-by-bay-and-not-by/m-p/13509262#M22646</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2022-05-23T12:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: How I can Change the number of slots by level by bay and not by rack ?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-i-can-change-the-number-of-slots-by-level-by-bay-and-not-by/m-p/13509263#M22647</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Yes it works thank you so much for your help.
 &lt;P&gt;And can we change the size of slots, size by slots and not all the slots with same size?&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 23 May 2022 13:56:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-i-can-change-the-number-of-slots-by-level-by-bay-and-not-by/m-p/13509263#M22647</guid>
      <dc:creator>loubna_e</dc:creator>
      <dc:date>2022-05-23T13:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: How I can Change the number of slots by level by bay and not by rack ?</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/how-i-can-change-the-number-of-slots-by-level-by-bay-and-not-by/m-p/13509264#M22648</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;There is a related post &lt;A href="https://answers.flexsim.com/questions/116337/slot-stacking-order-not-working.html"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;In the solution there is a user command (setSlotSizes) where we pass the storage object's level of a bay and an array of slot sizes.  Since the code is altering the tree directly it could be that in the future this command will not longer work.&lt;/P&gt;&lt;PRE&gt;/**Custom Code*/
treenode level =param(1);
Array sizes=param(2);
treenode bay=level.up.up;
double width=bay.subnodes["size"].value;
double loc=0;
int numsizes=sizes.length;
treenode slotholder=level.subnodes["slots"];

while (slotholder.subnodes.length&amp;lt;numsizes+1){
    treenode newslot=createcopy(slotholder.first,slotholder);
    newslot.subnodes["slotItems"].subnodes.clear();
    newslot.subnodes["slotLabels"].subnodes.clear();
}
treenode slot;
for (int n=1;n&amp;lt;=numsizes;n++){
    slot=slotholder.subnodes&lt;N&gt;;
    slot.subnodes["size"].value=sizes&lt;N&gt;;
    slot.subnodes["loc"].value=loc;
    loc+=sizes&lt;N&gt;;
}
slot=slotholder.last;
slot.subnodes["size"].value=width-loc;
slot.subnodes["loc"].value=loc;&lt;/N&gt;&lt;/N&gt;&lt;/N&gt;&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 24 May 2022 08:39:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/how-i-can-change-the-number-of-slots-by-level-by-bay-and-not-by/m-p/13509264#M22648</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2022-05-24T08:39:04Z</dc:date>
    </item>
  </channel>
</rss>

