<?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: The issue related to the assigned item in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/the-issue-related-to-the-assigned-item/m-p/13587416#M84097</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;You create a model by code. Then it is a timing issue. If more sources are able to fill rack slots then timing is causing a crutial impact when and which data is present for other model objects. If you are familiar with Porcess Flow, you know that you need to add breath activities to resolve pending data into a state that it can be evaluated. In time units of a model run you are still in time 0, but the order of inserted and executed code has different impact on getting results successfully. Please test on your own, which order of inserted codes leads to a successful model.&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 06 May 2024 15:11:52 GMT</pubDate>
    <dc:creator>joerg_vogel_HsH</dc:creator>
    <dc:date>2024-05-06T15:11:52Z</dc:date>
    <item>
      <title>The issue related to the assigned item</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/the-issue-related-to-the-assigned-item/m-p/13587413#M84094</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 24.0.2 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;&lt;SPAN id="isPasted" style="color: rgb(13, 13, 13); font-family: Söhne, ui-sans-serif, system-ui, -apple-system, "&gt;I want each slot to store only one item. &lt;SPAN id="isPasted" style="color: rgb(13, 13, 13); font-family: Söhne, ui-sans-serif, system-ui, -apple-system, "&gt;I referenced &lt;/SPAN&gt;&lt;SPAN id="isPasted" style="color: rgb(13, 13, 13); font-family: Söhne, ui-sans-serif, system-ui, -apple-system, "&gt;&lt;A rel="nofollow noopener noreferrer" href="https://answers.flexsim.com/questions/87298/how-can-i-store-only-one-item-per-slot-in-the-rack.html" target="_blank"&gt;this question&lt;/A&gt;&lt;/SPAN&gt;&lt;SPAN style="color: rgb(13, 13, 13); font-family: Söhne, ui-sans-serif, system-ui, -apple-system, "&gt;. &lt;/SPAN&gt;Here's my code. How can I modify it to achieve this?&lt;/SPAN&gt;&lt;/P&gt;
 &lt;PRE&gt;&lt;SPAN id="isPasted"&gt;source2.setProperty("Triggers.OnCreation", "Object current = ownerobject(c);\n\
Object item = param(1);\n\
\n\
Map dimensions = current.outObjects[1].getProperty(\"Dimensions\");\n\
int Bay = dimensions.NumBays;\n\
int Level = dimensions.NumLevels;\n\
int Slot = dimensions.SlotsPerBay;\n\
\n\
int i = duniform(1, Bay, 1);\n\
int j = duniform(1, Level, 1);\n\
int k = duniform(1, Slot, 1);\n\
\n\
Storage.Slot slot = current.outObjects[1].as(Storage.Object).getSlot(i, j, k);\n\
if(slot.as(Storage.Slot).slotItems.length &amp;lt; 1) Storage.Item(item).as(Storage.Item).assignedSlot = current.outObjects[1].as(Storage.Object).getSlot(i, j, k);\n\
");&lt;/SPAN&gt;&lt;/PRE&gt;
 &lt;P&gt;&lt;SPAN id="isPasted"&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/82463-model.fsm" target="_blank"&gt;model.fsm&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
 &lt;P&gt;&lt;SPAN id="isPasted"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 May 2024 14:38:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/the-issue-related-to-the-assigned-item/m-p/13587413#M84094</guid>
      <dc:creator>j08j</dc:creator>
      <dc:date>2024-05-06T14:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: The issue related to the assigned item</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/the-issue-related-to-the-assigned-item/m-p/13587414#M84095</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;&lt;A id="isPasted" href="https://answers.flexsim.com/answers/76833/view.html"&gt;https://answers.flexsim.com/answers/76833/view.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 May 2024 14:41:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/the-issue-related-to-the-assigned-item/m-p/13587414#M84095</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2024-05-06T14:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: The issue related to the assigned item</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/the-issue-related-to-the-assigned-item/m-p/13587415#M84096</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;&lt;SPAN id="isPasted" style="color: rgb(13, 13, 13); font-family: Söhne, ui-sans-serif, system-ui, -apple-system, "&gt;I made the following modifications, but there still exists a situation where multiple items are placed in a single slot.&lt;/SPAN&gt;&lt;/P&gt;
 &lt;PRE&gt;source2.setProperty("Triggers.OnCreation", "Object current = ownerobject(c);\n\
Object item = param(1);\n\
\n\
Storage.Item itemStorage = Storage.Item(item);// insert item into storage system\n\
Storage.Slot slotRack = Storage.system.findSlot(\"WHERE slot.slotItems.length &amp;lt; 1 ORDER BY slot.levelID ASC\");// place item by level\n\
itemStorage.assignedSlot = slotRack; //assign storage system item to slot\n\
");&lt;/PRE&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 May 2024 14:59:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/the-issue-related-to-the-assigned-item/m-p/13587415#M84096</guid>
      <dc:creator>j08j</dc:creator>
      <dc:date>2024-05-06T14:59:49Z</dc:date>
    </item>
    <item>
      <title>Re: The issue related to the assigned item</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/the-issue-related-to-the-assigned-item/m-p/13587416#M84097</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;You create a model by code. Then it is a timing issue. If more sources are able to fill rack slots then timing is causing a crutial impact when and which data is present for other model objects. If you are familiar with Porcess Flow, you know that you need to add breath activities to resolve pending data into a state that it can be evaluated. In time units of a model run you are still in time 0, but the order of inserted and executed code has different impact on getting results successfully. Please test on your own, which order of inserted codes leads to a successful model.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 May 2024 15:11:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/the-issue-related-to-the-assigned-item/m-p/13587416#M84097</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2024-05-06T15:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: The issue related to the assigned item</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/the-issue-related-to-the-assigned-item/m-p/13587417#M84098</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/43774/j08j.html" nodeid="43774"&gt;@j08j&lt;/A&gt;, was Joerg Vogel'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>Thu, 16 May 2024 06:23:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/the-issue-related-to-the-assigned-item/m-p/13587417#M84098</guid>
      <dc:creator>Jeanette_Fullmer</dc:creator>
      <dc:date>2024-05-16T06:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: The issue related to the assigned item</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/the-issue-related-to-the-assigned-item/m-p/13587418#M84099</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;I finally succeeded, thank you.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Thu, 16 May 2024 06:45:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/the-issue-related-to-the-assigned-item/m-p/13587418#M84099</guid>
      <dc:creator>j08j</dc:creator>
      <dc:date>2024-05-16T06:45:47Z</dc:date>
    </item>
  </channel>
</rss>

