<?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: defining bounding box anchor location in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/defining-bounding-box-anchor-location/m-p/13482364#M1689</link>
    <description>&lt;P&gt;This forum works a little different than our other user forum in that each "Answer" is meant to be an actual answer to the question, not a reply to a previous post. Post-reply conversations are meant to be done in the comments of each answer. This makes answer finding easier for people who are skimming. So I've converted your answers into comments.&lt;/P&gt;</description>
    <pubDate>Mon, 23 May 2016 21:29:25 GMT</pubDate>
    <dc:creator>philboboADSK</dc:creator>
    <dc:date>2016-05-23T21:29:25Z</dc:date>
    <item>
      <title>defining bounding box anchor location</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/defining-bounding-box-anchor-location/m-p/13482356#M1681</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 16.0.1 ]&lt;/I&gt;&lt;/P&gt;&lt;P&gt;I understand that there is a specific location within a 3D object's bounding box that become the anchor location (for determining the object's location). I believe that is it the lower left corner by default. Is there a way to change the anchor location (like put it in the upper middle location of the box)?&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2016 14:47:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/defining-bounding-box-anchor-location/m-p/13482356#M1681</guid>
      <dc:creator>wproctorPG49C</dc:creator>
      <dc:date>2016-05-23T14:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: defining bounding box anchor location</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/defining-bounding-box-anchor-location/m-p/13482357#M1682</link>
      <description>&lt;P&gt;An object's location is stored in the tree by the corner of their unrotated bounding box shown here:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="98-direct-spatials.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1493295iD4D35E013BBC7DDE/image-size/large?v=v2&amp;amp;px=999" role="button" title="98-direct-spatials.png" alt="98-direct-spatials.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When you select the "Direct Spatials" mode for displaying the object's location, Quick Properties shows you the values that are stored in the tree for the location of the object. If you rotate an object, you'll notice that the object's location doesn't change (only its rotation changes):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="99-direct-spatials2.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1493296i899E00EBA27D75FF/image-size/large?v=v2&amp;amp;px=999" role="button" title="99-direct-spatials2.png" alt="99-direct-spatials2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The location edit mode in Quick Properties enables you to specify a location based on a certain reference point. For example, if you specify the upper planar midpoint as the reference point, then the location will be shown as (3.69, -1.5, 2) for the object above, instead of the (0, 0, 0) that is its actual location that is stored in the tree. You can then edit the location based on that reference point instead of the direct spatial location.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="100-planar-mid-point.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1493298iD678412ED0721052/image-size/large?v=v2&amp;amp;px=999" role="button" title="100-planar-mid-point.png" alt="100-planar-mid-point.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The object's location in the tree will still be stored as the "Direct Spatials" values, but this option enables you to enter the location based on a certain reference point.&lt;/P&gt;&lt;P&gt;You can also set the location dynamically based on these reference points using the Set Location pick option:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="101-set-location.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1493297iACAECAD45C080BF3/image-size/large?v=v2&amp;amp;px=999" role="button" title="101-set-location.png" alt="101-set-location.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here, you can specify a reference point similar to the Quick Properties window:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="102-set-location2.png"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1493300i1F16152C633D2654/image-size/large?v=v2&amp;amp;px=999" role="button" title="102-set-location2.png" alt="102-set-location2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The command setloc() also takes 3 optional parameters. If you do not use these parameters, it sets the location directly, based on the "Direct Spatials" mode. If you use these three optional parameters, it sets the location based on a reference point within the yellow bounding box (as specified by 3 factor values between 0 and 1).&lt;/P&gt;&lt;P&gt;You can also use the command setcenter() to set an object's location based on its center point. This would be the same as setloc with 0.5 for each optional parameter:&lt;/P&gt;&lt;PRE&gt;setcenter(object, xloc, yloc, zloc);
setloc(object, xloc, yloc, zloc, 0.5, 0.5, 0.5);&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 May 2016 16:06:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/defining-bounding-box-anchor-location/m-p/13482357#M1682</guid>
      <dc:creator>philboboADSK</dc:creator>
      <dc:date>2016-05-23T16:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: defining bounding box anchor location</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/defining-bounding-box-anchor-location/m-p/13482358#M1683</link>
      <description>&lt;P&gt;Thanks for the clarification on this works. I can see how to change the value. It impacts the location displayed on the screen, but it doesn't seem to have an affect on the dispatch command that I am using "inserttask(ts,TASKTYPE_TRAVELTOLOC,NULL,NULL,x,y,z,0).&lt;/P&gt;
&lt;P&gt;I'm trying to end up with the front center of the Task Executor aligned with the X,Y,Z coordinate when I get to the location but it is still using another location within the object for this task (center?) (I've moved the reference point to several locations to see the affect)&lt;/P&gt;
&lt;P&gt;What point within the object boundary is used when doing a TRAVELTOLOC command?&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2016 18:15:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/defining-bounding-box-anchor-location/m-p/13482358#M1683</guid>
      <dc:creator>wproctorPG49C</dc:creator>
      <dc:date>2016-05-23T18:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: defining bounding box anchor location</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/defining-bounding-box-anchor-location/m-p/13482359#M1684</link>
      <description>&lt;P&gt;The point used in a Travel To Loc task depends on the TaskExecuter. An operator travels differently than an ASRS or a Crane, etc. Can you post a small example that shows what you are actually trying to do?&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2016 18:48:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/defining-bounding-box-anchor-location/m-p/13482359#M1684</guid>
      <dc:creator>philboboADSK</dc:creator>
      <dc:date>2016-05-23T18:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: defining bounding box anchor location</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/defining-bounding-box-anchor-location/m-p/13482360#M1685</link>
      <description>&lt;P&gt;I can use an operator instead of a TaskExecutor if that makes things easier. Essentially I'm creating a piece of equipment that can be flexibly routed anywhere on the field without a path network..&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2016 19:05:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/defining-bounding-box-anchor-location/m-p/13482360#M1685</guid>
      <dc:creator>wproctorPG49C</dc:creator>
      <dc:date>2016-05-23T19:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: defining bounding box anchor location</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/defining-bounding-box-anchor-location/m-p/13482361#M1686</link>
      <description>&lt;P&gt;OK. That does seem to work. Will my vehicle rotation location center then be at the same location? If so, is there a way to move it between the rear wheels? Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2016 19:19:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/defining-bounding-box-anchor-location/m-p/13482361#M1686</guid>
      <dc:creator>wproctorPG49C</dc:creator>
      <dc:date>2016-05-23T19:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: defining bounding box anchor location</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/defining-bounding-box-anchor-location/m-p/13482362#M1687</link>
      <description>&lt;P&gt;&lt;A href="https://answers.flexsim.com/storage/temp/117-combine-basic-te.fsm"&gt;Attached&lt;/A&gt; is a model that uses a BasicTE to customize the offset location so that it drives the front of the yellow box to the location specified in the Travel To Loc task.&lt;/P&gt;&lt;P&gt;You could use this BasicTE as your Combine instead of the TaskExecuter object so that it rotates as normal, but travels to the edge of the yellow box.&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2016 20:48:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/defining-bounding-box-anchor-location/m-p/13482362#M1687</guid>
      <dc:creator>philboboADSK</dc:creator>
      <dc:date>2016-05-23T20:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: defining bounding box anchor location</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/defining-bounding-box-anchor-location/m-p/13482363#M1688</link>
      <description>&lt;P&gt;Thanks Phil. I'll take a look.&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2016 20:54:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/defining-bounding-box-anchor-location/m-p/13482363#M1688</guid>
      <dc:creator>wproctorPG49C</dc:creator>
      <dc:date>2016-05-23T20:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: defining bounding box anchor location</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/defining-bounding-box-anchor-location/m-p/13482364#M1689</link>
      <description>&lt;P&gt;This forum works a little different than our other user forum in that each "Answer" is meant to be an actual answer to the question, not a reply to a previous post. Post-reply conversations are meant to be done in the comments of each answer. This makes answer finding easier for people who are skimming. So I've converted your answers into comments.&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2016 21:29:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/defining-bounding-box-anchor-location/m-p/13482364#M1689</guid>
      <dc:creator>philboboADSK</dc:creator>
      <dc:date>2016-05-23T21:29:25Z</dc:date>
    </item>
  </channel>
</rss>

