<?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: a relocation problem when replacing the 3D geometry of a resource in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/a-relocation-problem-when-replacing-the-3d-geometry-of-a/m-p/13570643#M71013</link>
    <description>&lt;DIV class="fr-view clearfix"&gt;The bounding box contains the geometry, so just reflect the size.&lt;P&gt;Work out for each object where your reference point (origin) is relative to the object's size and in the layout - then use both in setLocation.&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 14 Feb 2024 15:34:15 GMT</pubDate>
    <dc:creator>jason_lightfoot_adsk</dc:creator>
    <dc:date>2024-02-14T15:34:15Z</dc:date>
    <item>
      <title>a relocation problem when replacing the 3D geometry of a resource</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/a-relocation-problem-when-replacing-the-3d-geometry-of-a/m-p/13570638#M71008</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 24.0.0 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Hello, when I replace the 3D geometry of the resource, it often align the left-top corner of the bounding box, I want it to replace it based on its original location. Is that possible?&lt;/P&gt;
 &lt;P&gt;For example, I import a BasicTE and give the location (0,0,0), you can see its left-top corner is aligned with the (0,0,0). Then I import a self-defined conveyor, and it is still left-top corner aligned with the (0,0,0). But I do not want this, I would like to use the original location of the 3D geometry instead of always aligning the left-top corner? Is that possible?&lt;/P&gt;
 &lt;P&gt;&lt;SPAN class="fr-img-caption fr-fic fr-dib" style="width: 668px;"&gt;&lt;SPAN class="fr-img-wrap"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1.jpg"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1522395i20E8828FFA5DDBBE/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.jpg" alt="1.jpg" /&gt;&lt;/span&gt;&lt;SPAN class="fr-inner"&gt;Image Caption&lt;span class="lia-inline-image-display-wrapper" image-alt="2.jpg"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1522396iDE38CA25541BE17D/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.jpg" alt="2.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 13 Feb 2024 16:03:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/a-relocation-problem-when-replacing-the-3d-geometry-of-a/m-p/13570638#M71008</guid>
      <dc:creator>royjuventus29</dc:creator>
      <dc:date>2024-02-13T16:03:06Z</dc:date>
    </item>
    <item>
      <title>Re: a relocation problem when replacing the 3D geometry of a resource</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/a-relocation-problem-when-replacing-the-3d-geometry-of-a/m-p/13570639#M71009</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;When changing an individual object's shape you're only doing that - you're not aligning its location to a layout. If you want to set object locations relative to each other, load a layout file and do it programmatically.&lt;/P&gt;&lt;P&gt;If all you meant was that the centre of the object should stay in the same position then store that before you change the shape and set it afterwards (use getLocation and setLocation).&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 13 Feb 2024 17:17:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/a-relocation-problem-when-replacing-the-3d-geometry-of-a/m-p/13570639#M71009</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2024-02-13T17:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: a relocation problem when replacing the 3D geometry of a resource</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/a-relocation-problem-when-replacing-the-3d-geometry-of-a/m-p/13570640#M71010</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 &lt;P&gt;Thank you for your answer. I would like to generate a layout in flexsim from an external file. I have the file indicating the geometry and locations of each component. I use script to generate a set of BasicTE with locations, and then I replace the BasicTE geometry with my geometry. Then the problem appears. As my geometry has its own origin frame to build the model, sometimes the origin frame is the bottom center, sometimes it is the middle point of a side line. However, when I replace the 3D geometry in flexsim, it always makes a bounding box and aligns the top-left corner to the location. This way in flexsim makes my geometry cannot locate in the correct location in flexsim. I hope I describe the problem clearly. Is there a solution for this? &lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 13 Feb 2024 17:27:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/a-relocation-problem-when-replacing-the-3d-geometry-of-a/m-p/13570640#M71010</guid>
      <dc:creator>royjuventus29</dc:creator>
      <dc:date>2024-02-13T17:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: a relocation problem when replacing the 3D geometry of a resource</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/a-relocation-problem-when-replacing-the-3d-geometry-of-a/m-p/13570641#M71011</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;It sounds like you just need to output the position of your origin relative to the shape as a Vec3 to use in setLocation()  - it can use the percentage of the size in each axis.&lt;/DIV&gt;</description>
      <pubDate>Tue, 13 Feb 2024 17:31:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/a-relocation-problem-when-replacing-the-3d-geometry-of-a/m-p/13570641#M71011</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2024-02-13T17:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: a relocation problem when replacing the 3D geometry of a resource</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/a-relocation-problem-when-replacing-the-3d-geometry-of-a/m-p/13570642#M71012</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;
 Can you introduce a little bit how a 3D model is created in the software environment of flexsim? For my understanding, we do not give anything about bounding box, only the geometry mesh information, I just want to put the origin frame of the mesh on the location I set, then it should be finished. But I find that in flexsim you create a bounding box automatically, and then align the corner of the bounding box to the location I give. Am I correct? 
&lt;/DIV&gt;</description>
      <pubDate>Wed, 14 Feb 2024 15:07:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/a-relocation-problem-when-replacing-the-3d-geometry-of-a/m-p/13570642#M71012</guid>
      <dc:creator>royjuventus29</dc:creator>
      <dc:date>2024-02-14T15:07:48Z</dc:date>
    </item>
    <item>
      <title>Re: a relocation problem when replacing the 3D geometry of a resource</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/a-relocation-problem-when-replacing-the-3d-geometry-of-a/m-p/13570643#M71013</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;The bounding box contains the geometry, so just reflect the size.&lt;P&gt;Work out for each object where your reference point (origin) is relative to the object's size and in the layout - then use both in setLocation.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 14 Feb 2024 15:34:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/a-relocation-problem-when-replacing-the-3d-geometry-of-a/m-p/13570643#M71013</guid>
      <dc:creator>jason_lightfoot_adsk</dc:creator>
      <dc:date>2024-02-14T15:34:15Z</dc:date>
    </item>
  </channel>
</rss>

