<?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: Unknown type Slot in declaration of variable in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/unknown-type-slot-in-declaration-of-variable/m-p/13550709#M55444</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi Tomi,&lt;/P&gt;&lt;P&gt;The class name is actually &lt;EM&gt;Storage.Slot&lt;/EM&gt;. Unfortunately FlexSim highlights &lt;EM&gt;Slot&lt;/EM&gt; so it seems like valid code but it should actually be&lt;/P&gt;&lt;PRE&gt;Storage.Slot MySlot = getSlot("1--01-1-1");&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 30 Nov 2020 10:02:13 GMT</pubDate>
    <dc:creator>mischa_spelt</dc:creator>
    <dc:date>2020-11-30T10:02:13Z</dc:date>
    <item>
      <title>Unknown type Slot in declaration of variable</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/unknown-type-slot-in-declaration-of-variable/m-p/13550708#M55443</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 20.2.3 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;I'd like to write a code to get a storage slot for a Item. I can't get the syntax right. Why the following gives me an error:&lt;/P&gt;
 &lt;P&gt;Slot MySlot; // This gives an error: "Unknown type Slot in declaration of variable MySlot"&lt;/P&gt;
 &lt;P&gt;Slot = getSlot("1--01-1-1");&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 30 Nov 2020 09:28:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/unknown-type-slot-in-declaration-of-variable/m-p/13550708#M55443</guid>
      <dc:creator>tomi_kosunen</dc:creator>
      <dc:date>2020-11-30T09:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown type Slot in declaration of variable</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/unknown-type-slot-in-declaration-of-variable/m-p/13550709#M55444</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi Tomi,&lt;/P&gt;&lt;P&gt;The class name is actually &lt;EM&gt;Storage.Slot&lt;/EM&gt;. Unfortunately FlexSim highlights &lt;EM&gt;Slot&lt;/EM&gt; so it seems like valid code but it should actually be&lt;/P&gt;&lt;PRE&gt;Storage.Slot MySlot = getSlot("1--01-1-1");&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 30 Nov 2020 10:02:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/unknown-type-slot-in-declaration-of-variable/m-p/13550709#M55444</guid>
      <dc:creator>mischa_spelt</dc:creator>
      <dc:date>2020-11-30T10:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown type Slot in declaration of variable</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/unknown-type-slot-in-declaration-of-variable/m-p/13550710#M55445</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/469/mischa.s.html" nodeid="469"&gt;@Mischa Spelt&lt;/A&gt;&lt;/P&gt;
 &lt;P&gt;Thanks for the answer. I was able to get the syntax right but still i can't get the model right. I'd like to route all Items to certain slot thru ProcessFlow. How do I do that? I don't know what there should be in the Unload-Station field.&lt;/P&gt;
 &lt;P&gt;Pls see the attached model&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/temp/34744-asrs-test.fsm" target="_blank"&gt;asrs_test.fsm&lt;/A&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 30 Nov 2020 10:21:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/unknown-type-slot-in-declaration-of-variable/m-p/13550710#M55445</guid>
      <dc:creator>tomi_kosunen</dc:creator>
      <dc:date>2020-11-30T10:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: Unknown type Slot in declaration of variable</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/unknown-type-slot-in-declaration-of-variable/m-p/13550711#M55446</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;For the unload station, you should use the rack that the slot belongs to. Since the slot is a reference to a variable in the Rack's attribute tree, you can simply use&lt;/P&gt;&lt;PRE&gt;ownerobject( token.Slot )&lt;/PRE&gt;&lt;P&gt;as the station:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="34745-1606731911624.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1504353i2552CE40C88CD91D/image-size/large?v=v2&amp;amp;px=999" role="button" title="34745-1606731911624.png" alt="34745-1606731911624.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, just calling getSlot doesn't assign the item to the slot. It's better if you use the Find Slot activity from the Warehousing section of the library, as that will make a reservation:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="34736-1606732152230.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1504355iB090B46CDF3441FD/image-size/large?v=v2&amp;amp;px=999" role="button" title="34736-1606732152230.png" alt="34736-1606732152230.png" /&gt;&lt;/span&gt;As in this updated model: &lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/temp/34737-asrs-test-ms.fsm" target="_blank"&gt;asrs-test-MS.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 30 Nov 2020 10:29:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/unknown-type-slot-in-declaration-of-variable/m-p/13550711#M55446</guid>
      <dc:creator>mischa_spelt</dc:creator>
      <dc:date>2020-11-30T10:29:43Z</dc:date>
    </item>
  </channel>
</rss>

