<?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: Clear flowitems using code in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/clear-flowitems-using-code/m-p/13576524#M75634</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;I am using Flexsim for visualization purpose. On reset model, the data for vizualization are loaded from database. Then I am switching between different views in the model. Each view is made of different flowitems in different slots, so that's why i need to clear warehouse between jumping from one view to another.&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Tue, 12 Sep 2023 12:17:29 GMT</pubDate>
    <dc:creator>VikSin</dc:creator>
    <dc:date>2023-09-12T12:17:29Z</dc:date>
    <item>
      <title>Clear flowitems using code</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/clear-flowitems-using-code/m-p/13576520#M75630</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 23.2.0 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hello, i have model that consists of different rack objects (Warehouse model) and i am creating user command for deleting all flowitems in the warehouse.&lt;BR /&gt;I don't want to use model reset, because on model reset there are some triggers which i don't want to run.&lt;BR /&gt;&lt;BR /&gt;Is there some FlexSim command or way how to achieve it ?&lt;/P&gt;
 &lt;P&gt;Thank you in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 12 Sep 2023 10:30:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/clear-flowitems-using-code/m-p/13576520#M75630</guid>
      <dc:creator>VikSin</dc:creator>
      <dc:date>2023-09-12T10:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Clear flowitems using code</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/clear-flowitems-using-code/m-p/13576521#M75631</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;treenode.subnodes.clear() - a method to destroy subnodes of a container node. Unfortunately you have to call it on every involved rack object. Perhaps you do it with &lt;A rel="noopener noreferrer" href="https://docs.flexsim.com/en/23.2/Reference/CodingInFlexSim/CommandReference/Commands.html#forobjecttreeunder" target="_blank"&gt;forobjecttreeunder&lt;/A&gt; - a command.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 12 Sep 2023 11:14:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/clear-flowitems-using-code/m-p/13576521#M75631</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2023-09-12T11:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: Clear flowitems using code</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/clear-flowitems-using-code/m-p/13576522#M75632</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Thank you Joerg. I was thinking about this solution but also searched for some more universal way. This way I can delete for example all subnodes of the plane object (so all processors, racks etc that are under racks), am I wrong ?&lt;EM&gt; (one of the solution would be to put all racks that I want to clear under one group and clear just this group via subnodes.clear())&lt;/EM&gt;. &lt;BR /&gt;&lt;BR /&gt;However I was thinking if there is some internal command etc ? Because in model reset all flowitems objects are destroyed, so this could be somehow achieved or replicated &lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 12 Sep 2023 11:40:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/clear-flowitems-using-code/m-p/13576522#M75632</guid>
      <dc:creator>VikSin</dc:creator>
      <dc:date>2023-09-12T11:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: Clear flowitems using code</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/clear-flowitems-using-code/m-p/13576523#M75633</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;If you are wanting to reset the model like this, it sounds more like you are running a different scenario.  Have you considered running scenarios via the experimenter?&lt;/DIV&gt;</description>
      <pubDate>Tue, 12 Sep 2023 11:52:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/clear-flowitems-using-code/m-p/13576523#M75633</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2023-09-12T11:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: Clear flowitems using code</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/clear-flowitems-using-code/m-p/13576524#M75634</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;I am using Flexsim for visualization purpose. On reset model, the data for vizualization are loaded from database. Then I am switching between different views in the model. Each view is made of different flowitems in different slots, so that's why i need to clear warehouse between jumping from one view to another.&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 12 Sep 2023 12:17:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/clear-flowitems-using-code/m-p/13576524#M75634</guid>
      <dc:creator>VikSin</dc:creator>
      <dc:date>2023-09-12T12:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Clear flowitems using code</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/clear-flowitems-using-code/m-p/13576525#M75635</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;The code below finds all items that are currently assigned to a slot in a storage object and deletes them.&lt;/P&gt;&lt;PRE&gt;Array slotItems = Storage.system.queryItems("");&lt;BR /&gt;for(int i = 1; i &amp;lt;= slotItems.length; i++)
{
&amp;nbsp; &amp;nbsp; Object item = slotItems&lt;I&gt;.as(Storage.Slot.Item).item;
&amp;nbsp; &amp;nbsp; moveobject(item, model());
&amp;nbsp; &amp;nbsp; item.destroy();
}&lt;/I&gt;&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 12 Sep 2023 13:24:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/clear-flowitems-using-code/m-p/13576525#M75635</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2023-09-12T13:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: Clear flowitems using code</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/clear-flowitems-using-code/m-p/13576526#M75636</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/42487/viksin.html" nodeid="42487"&gt;@VikSin&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>Sun, 17 Sep 2023 01:26:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/clear-flowitems-using-code/m-p/13576526#M75636</guid>
      <dc:creator>Jeanette_Fullmer</dc:creator>
      <dc:date>2023-09-17T01:26:00Z</dc:date>
    </item>
    <item>
      <title>Re: Clear flowitems using code</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/clear-flowitems-using-code/m-p/13576527#M75637</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 That's perfect, thank you :)
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 18 Sep 2023 10:36:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/clear-flowitems-using-code/m-p/13576527#M75637</guid>
      <dc:creator>VikSin</dc:creator>
      <dc:date>2023-09-18T10:36:49Z</dc:date>
    </item>
  </channel>
</rss>

