<?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: Component boundingBox in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/component-boundingbox/m-p/6635374#M19183</link>
    <description>&lt;P&gt;The bounding box from any type of entity is returned as a Box3D object.&amp;nbsp; The Box3D object returns the min and max points.&amp;nbsp;&amp;nbsp;The code below will get the length, width, and height where the length is the size along the X axis, width is the size along Y axis, and the height is the size along the Z axis.&amp;nbsp; box is a variable that references a Box3D object.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;length = box.maxPoint.x - box.minPoint.x
width = box.maxPoint.y - box.minPoint.y
height = box.maxPoint.z - box.minPoint.z
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You also say that you want to get the bounding box of a component, which is&amp;nbsp;possible, but I suspect you really want the bounding box of an occurrence, which is also possible.&amp;nbsp; To understand the difference you can read this &lt;A href="http://help.autodesk.com/view/NINVFUS/ENU/?guid=GUID-88A4DB43-CFDD-4CFF-B124-7EE67915A07A" target="_self"&gt;topic in the API Help&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Thu, 20 Oct 2016 17:46:57 GMT</pubDate>
    <dc:creator>ekinsb</dc:creator>
    <dc:date>2016-10-20T17:46:57Z</dc:date>
    <item>
      <title>Component boundingBox</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/component-boundingbox/m-p/6634400#M19182</link>
      <description>&lt;P&gt;How can i get a components bounding box length, width and height?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 12:43:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/component-boundingbox/m-p/6634400#M19182</guid>
      <dc:creator>macmanpb</dc:creator>
      <dc:date>2016-10-20T12:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: Component boundingBox</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/component-boundingbox/m-p/6635374#M19183</link>
      <description>&lt;P&gt;The bounding box from any type of entity is returned as a Box3D object.&amp;nbsp; The Box3D object returns the min and max points.&amp;nbsp;&amp;nbsp;The code below will get the length, width, and height where the length is the size along the X axis, width is the size along Y axis, and the height is the size along the Z axis.&amp;nbsp; box is a variable that references a Box3D object.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;length = box.maxPoint.x - box.minPoint.x
width = box.maxPoint.y - box.minPoint.y
height = box.maxPoint.z - box.minPoint.z
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You also say that you want to get the bounding box of a component, which is&amp;nbsp;possible, but I suspect you really want the bounding box of an occurrence, which is also possible.&amp;nbsp; To understand the difference you can read this &lt;A href="http://help.autodesk.com/view/NINVFUS/ENU/?guid=GUID-88A4DB43-CFDD-4CFF-B124-7EE67915A07A" target="_self"&gt;topic in the API Help&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 17:46:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/component-boundingbox/m-p/6635374#M19183</guid>
      <dc:creator>ekinsb</dc:creator>
      <dc:date>2016-10-20T17:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Component boundingBox</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/component-boundingbox/m-p/6635839#M19184</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/116141"&gt;@ekinsb﻿&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am happy! I was on the right track, but i used the Component.boundaryBox points. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One question. I have measured the component with Fusion UI "Inspect" tool.&lt;/P&gt;
&lt;P&gt;My component is 150.00 x 87.00 x 20.00.&lt;/P&gt;
&lt;P&gt;But the calculated boundary points are 150.02 x 87.01 x 20.03.&lt;/P&gt;
&lt;P&gt;Is that because&amp;nbsp;i used the Component instead of the Occurrence object?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope my english is understandable &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 20:10:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/component-boundingbox/m-p/6635839#M19184</guid>
      <dc:creator>macmanpb</dc:creator>
      <dc:date>2016-10-20T20:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Component boundingBox</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/component-boundingbox/m-p/6635908#M19185</link>
      <description>&lt;P&gt;A bounding box isn't guaranteed to be a tight fit to the graphics. &amp;nbsp;The only guarantee is that the object is entirely contained within the bounding box. &amp;nbsp;Because of this it's best not to use the bounding box for measurements. &amp;nbsp;It's typically used when you need to compare multiple entities and the bounding box is an efficient first check to see if those entities possibly overlap before doing more complex calculations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Although for simple graphics I would expect it to be a tight fit. &amp;nbsp;I think we need to look into this and seem why it's not tighter. &amp;nbsp;Technically, what you're getting back is correct because the occurrence is contained within the bounding box but it would be better to be tighter when possible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2016 20:35:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/component-boundingbox/m-p/6635908#M19185</guid>
      <dc:creator>ekinsb</dc:creator>
      <dc:date>2016-10-20T20:35:45Z</dc:date>
    </item>
  </channel>
</rss>

