<?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: Find Slot with Label Query not working in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/find-slot-with-label-query-not-working/m-p/13592443#M88011</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;
 Hi Felix, yes I have tried that. I've added the model to the question. Thanks!
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;Martin&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Thu, 06 Jun 2024 12:31:29 GMT</pubDate>
    <dc:creator>NTC_Martin</dc:creator>
    <dc:date>2024-06-06T12:31:29Z</dc:date>
    <item>
      <title>Find Slot with Label Query not working</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/find-slot-with-label-query-not-working/m-p/13592441#M88009</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 24.1.0 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/temp/83485-warehouse.fsm" target="_blank"&gt;warehouse.fsm&lt;/A&gt;&lt;/P&gt;
 &lt;P&gt;Hi,&lt;/P&gt;
 &lt;P&gt;I've set slot labels on a bay using my model's "On Model Reset" event like so:&lt;/P&gt;
 &lt;PRE&gt;Storage.Object rack = Model.find("Rack25");
&amp;nbsp; Storage.Bay bay = rack.bays[1];
&amp;nbsp; bay.setSlotLabels("Material", "MT55");&lt;/PRE&gt;
 &lt;P&gt;I've been able to verify it applied the labels by printing the label value of the slots in the bay to the output console.&lt;/P&gt;
 &lt;P&gt;But, I have a FindSlot process in a process flow which uses the following query:&lt;/P&gt;
 &lt;PRE&gt;WHERE slot.hasSpace($1.item) AND Material == $1.Material&lt;/PRE&gt;
 &lt;P&gt;It fails to find the slots that have the label. If I remove the where clause, it will find the slots and unload flow items to it. Any ideas?&lt;/P&gt;
 &lt;P&gt;Thanks!&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 05 Jun 2024 20:35:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/find-slot-with-label-query-not-working/m-p/13592441#M88009</guid>
      <dc:creator>NTC_Martin</dc:creator>
      <dc:date>2024-06-05T20:35:29Z</dc:date>
    </item>
    <item>
      <title>Re: Find Slot with Label Query not working</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/find-slot-with-label-query-not-working/m-p/13592442#M88010</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Have you checked that its not the "hasSpace()" check that's the problem? Especially when using a Floor Storage its easy to forget that the height of the storage object is taken into account.&lt;/P&gt;&lt;P&gt;If it's not that we'd probably need to see the model to investigate further.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 06 Jun 2024 06:08:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/find-slot-with-label-query-not-working/m-p/13592442#M88010</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2024-06-06T06:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Find Slot with Label Query not working</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/find-slot-with-label-query-not-working/m-p/13592443#M88011</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Hi Felix, yes I have tried that. I've added the model to the question. Thanks!
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;Martin&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 06 Jun 2024 12:31:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/find-slot-with-label-query-not-working/m-p/13592443#M88011</guid>
      <dc:creator>NTC_Martin</dc:creator>
      <dc:date>2024-06-06T12:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Find Slot with Label Query not working</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/find-slot-with-label-query-not-working/m-p/13592444#M88012</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Your process flow work just fine, but your slot painting doesnt. You can try and manually paint some slots with the label.&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;I think its a timing issue. If I put the code in On Simulation Start on a rack it seems to work just fine&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1717679773432.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1524186i9715B448B540EA0A/image-size/large?v=v2&amp;amp;px=999" role="button" title="1717679773432.png" alt="1717679773432.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 06 Jun 2024 13:08:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/find-slot-with-label-query-not-working/m-p/13592444#M88012</guid>
      <dc:creator>guldbergdk</dc:creator>
      <dc:date>2024-06-06T13:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: Find Slot with Label Query not working</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/find-slot-with-label-query-not-working/m-p/13592445#M88013</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Paint the labels at time zero when you run the model rather than on reset - I think the rack's own reset is clearing out the labels during the reset.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 06 Jun 2024 13:25:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/find-slot-with-label-query-not-working/m-p/13592445#M88013</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2024-06-06T13:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: Find Slot with Label Query not working</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/find-slot-with-label-query-not-working/m-p/13592446#M88014</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;I also just realized that this is probably the issue. "setSlotLabels()" does not set a reset value for the label, it is lost on model reset.&lt;/P&gt;&lt;P&gt;You can use the command below instead. It is what is run when you 'paint' the slot labels and will set reset values.&lt;/P&gt;&lt;PRE&gt;function_s(slot.as(treenode), "paintLabel", "labelName", value, 1);&lt;/PRE&gt;&lt;P&gt;The last parameter I believe controls if only the slot or the whole level, bay, rack is painted. Disclaimer: function_s commands are not documented and do not have guaranteed compatability to other versions.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 06 Jun 2024 13:38:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/find-slot-with-label-query-not-working/m-p/13592446#M88014</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2024-06-06T13:38:10Z</dc:date>
    </item>
    <item>
      <title>Re: Find Slot with Label Query not working</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/find-slot-with-label-query-not-working/m-p/13592447#M88015</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/44004/ntc-martin.html" nodeid="44004"&gt;@Martin&lt;/A&gt;, was Jason Lightfoot'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, 17 Jun 2024 16:41:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/find-slot-with-label-query-not-working/m-p/13592447#M88015</guid>
      <dc:creator>Jeanette_Fullmer</dc:creator>
      <dc:date>2024-06-17T16:41:30Z</dc:date>
    </item>
  </channel>
</rss>

