<?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 Model Background drawcube issue in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/model-background-drawcube-issue/m-p/13865573#M98682</link>
    <description>&lt;P&gt;I am using a drawcube command in my Model Background On Draw trigger to draw phantom pallets at an AGV control point node.&amp;nbsp; This process seems to work fine but as the Y coordinate of the background increases, I am getting drift between the actual draw point and the model Y coordinate.&amp;nbsp; Is this a known issue and how do I fix this?&lt;/P&gt;</description>
    <pubDate>Fri, 24 Oct 2025 15:00:44 GMT</pubDate>
    <dc:creator>wproctorPG49C</dc:creator>
    <dc:date>2025-10-24T15:00:44Z</dc:date>
    <item>
      <title>Model Background drawcube issue</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/model-background-drawcube-issue/m-p/13865573#M98682</link>
      <description>&lt;P&gt;I am using a drawcube command in my Model Background On Draw trigger to draw phantom pallets at an AGV control point node.&amp;nbsp; This process seems to work fine but as the Y coordinate of the background increases, I am getting drift between the actual draw point and the model Y coordinate.&amp;nbsp; Is this a known issue and how do I fix this?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Oct 2025 15:00:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/model-background-drawcube-issue/m-p/13865573#M98682</guid>
      <dc:creator>wproctorPG49C</dc:creator>
      <dc:date>2025-10-24T15:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: Model Background drawcube issue</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/model-background-drawcube-issue/m-p/13869627#M98709</link>
      <description>&lt;P&gt;The location of things drawn in the OnDraw trigger are relative to the local coordinate system of the object the trigger is defined on. You need to use the ".project()" method of the Vec3 class to transform the coordinates of the control point.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Object cp = ...;
Vec3 cpLocation = cp.getLocation(0.5, 0.5, 0).project(cp.up, current);
drawcube(cpLocation.x, cpLocation.y, cpLocation.z, ...);&lt;/LI-CODE&gt;&lt;P&gt;The size of the drawn shapes is also scaled based on the size of the trigger object. To not have this happen use "drawtomodelscale(current)" once before drawing anything in the trigger.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Oct 2025 10:26:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/model-background-drawcube-issue/m-p/13869627#M98709</guid>
      <dc:creator>FelixMoehlmann</dc:creator>
      <dc:date>2025-10-28T10:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Model Background drawcube issue</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/model-background-drawcube-issue/m-p/13869849#M98718</link>
      <description>&lt;P&gt;Thanks for the feedback.&amp;nbsp; I didn't try that method, but I was able to get help from Brandon at FlexSim.&amp;nbsp; The issue ended up being that the background was drawn to scale and I was not applying the scale to the OnDraw commands (just trying to compensate in my position formulas).&amp;nbsp; Once I made the change, the cubes were aligned properly.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Oct 2025 12:13:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/model-background-drawcube-issue/m-p/13869849#M98718</guid>
      <dc:creator>wproctorPG49C</dc:creator>
      <dc:date>2025-10-28T12:13:56Z</dc:date>
    </item>
  </channel>
</rss>

