<?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: Remove all 3D-objects in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/remove-all-3d-objects/m-p/13572747#M72597</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;&lt;PRE&gt;Table.query("DELETE &amp;nbsp;FROM Objects()")&lt;/PRE&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 20 Mar 2023 12:36:35 GMT</pubDate>
    <dc:creator>jason_lightfoot_adsk</dc:creator>
    <dc:date>2023-03-20T12:36:35Z</dc:date>
    <item>
      <title>Remove all 3D-objects</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/remove-all-3d-objects/m-p/13572742#M72592</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 23.0.5 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hello im trying to create a processflow that:&lt;/P&gt;
 &lt;P&gt;1. Simulation starts&lt;/P&gt;
 &lt;P&gt;2. Destroys all objects (queue, processor etc.)&lt;/P&gt;
 &lt;P&gt;3. Create objects from a table (solved)&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;But the first run or if some changes are made in the table I need this "destroy function" to find all objects in the model and return or destroy them all without referencing to a table, specific object or name.&lt;/P&gt;
 &lt;P&gt;Any ideas on how to solve this?&lt;/P&gt;
 &lt;P&gt;Kind regards&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 17 Mar 2023 10:46:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/remove-all-3d-objects/m-p/13572742#M72592</guid>
      <dc:creator>Skovdestudents</dc:creator>
      <dc:date>2023-03-17T10:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Remove all 3D-objects</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/remove-all-3d-objects/m-p/13572743#M72593</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;I would build all object in a container. This can be a plane. Then I can destroy the content of the container node!&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 17 Mar 2023 10:50:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/remove-all-3d-objects/m-p/13572743#M72593</guid>
      <dc:creator>joerg_vogel_HsH</dc:creator>
      <dc:date>2023-03-17T10:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Remove all 3D-objects</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/remove-all-3d-objects/m-p/13572744#M72594</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Good idea! We have an issue with creating the object in the plane though...&lt;/P&gt;
 &lt;P&gt;We create the plane as intended but...&lt;/P&gt;
 &lt;P&gt;We create a processor like this:&lt;/P&gt;
 &lt;P&gt;createinstance(library().find("?Processor"), model());&lt;BR /&gt;&lt;BR /&gt;We have also tried: createinstance(library().find("?Processor"), model().find("Plane"));&lt;BR /&gt;and it does not work.&lt;/P&gt;
 &lt;P&gt;We have also tried the moveobject function but no luck either..&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
 &lt;P&gt;What function can we use to move it to the plane? and if possible also move it to a specific coordinate in the plane, rather than using Vec3?&lt;/P&gt;
 &lt;P&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 20 Mar 2023 10:51:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/remove-all-3d-objects/m-p/13572744#M72594</guid>
      <dc:creator>Skovdestudents</dc:creator>
      <dc:date>2023-03-20T10:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Remove all 3D-objects</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/remove-all-3d-objects/m-p/13572745#M72595</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;It's hard to know what is going wrong without access to the model.&lt;/P&gt;&lt;P&gt;Is the plane itself a subnode of another object? In that case you have to give the whole path or use the "?", like you do to find the processor in the library.&lt;/P&gt;&lt;PRE&gt;createinstance(..., model().find("ContainerObject/Plane");
createinstance(..., model().find("?Plane");&lt;/PRE&gt;&lt;P&gt;Once the object is inside the plane, you can use "object.setLocation" to change its location. This will use the coordinate system of its direct parent node, so in this case, the plane.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1679310743763.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1516118i95BD81944ADA164A/image-size/large?v=v2&amp;amp;px=999" role="button" title="1679310743763.png" alt="1679310743763.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 20 Mar 2023 11:14:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/remove-all-3d-objects/m-p/13572745#M72595</guid>
      <dc:creator>moehlmann_fe</dc:creator>
      <dc:date>2023-03-20T11:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: Remove all 3D-objects</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/remove-all-3d-objects/m-p/13572746#M72596</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;PRE&gt;Object plane=Object.create("VisualTool");
Object.create("Processor").up=plane;&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 20 Mar 2023 12:34:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/remove-all-3d-objects/m-p/13572746#M72596</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2023-03-20T12:34:51Z</dc:date>
    </item>
    <item>
      <title>Re: Remove all 3D-objects</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/remove-all-3d-objects/m-p/13572747#M72597</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;PRE&gt;Table.query("DELETE &amp;nbsp;FROM Objects()")&lt;/PRE&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 20 Mar 2023 12:36:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/remove-all-3d-objects/m-p/13572747#M72597</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2023-03-20T12:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: Remove all 3D-objects</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/remove-all-3d-objects/m-p/13572748#M72598</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 This works like a charm! Huge thanks!
&lt;/DIV&gt;</description>
      <pubDate>Wed, 22 Mar 2023 08:39:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/remove-all-3d-objects/m-p/13572748#M72598</guid>
      <dc:creator>Skovdestudents</dc:creator>
      <dc:date>2023-03-22T08:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: Remove all 3D-objects</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/remove-all-3d-objects/m-p/13572749#M72599</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 This works to some extent for us but the problem is it doesnt seem to be able to find "?Plane" in the way we createinstance (Plane), and we also dont get it to work with looking up name from table such as: "?Table(&lt;X&gt;&lt;Y&gt;.. Thanks for the reply though, question is now answered but will upload the model for future questions in the forum.
&lt;/Y&gt;&lt;/X&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 22 Mar 2023 08:42:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/remove-all-3d-objects/m-p/13572749#M72599</guid>
      <dc:creator>Skovdestudents</dc:creator>
      <dc:date>2023-03-22T08:42:35Z</dc:date>
    </item>
    <item>
      <title>Re: Remove all 3D-objects</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/remove-all-3d-objects/m-p/13572750#M72600</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Thanks a lot!
&lt;/DIV&gt;</description>
      <pubDate>Wed, 22 Mar 2023 08:43:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/remove-all-3d-objects/m-p/13572750#M72600</guid>
      <dc:creator>Skovdestudents</dc:creator>
      <dc:date>2023-03-22T08:43:31Z</dc:date>
    </item>
  </channel>
</rss>

