<?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: maximum dimensions from 3d objects in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/maximum-dimensions-from-3d-objects/m-p/12583560#M20640</link>
    <description>&lt;P&gt;If you are trying to determine the minimum diameter sphere (i.e., the maximum dimension) of a 3D object then &lt;A href="https://en.wikipedia.org/wiki/Bounding_sphere" target="_blank" rel="noopener"&gt;Ritter's bounding sphere&lt;/A&gt; algorithm may give good results. Note that point "z" is the furthest distance from point y other than point x.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Feb 2024 16:31:23 GMT</pubDate>
    <dc:creator>leeminardi</dc:creator>
    <dc:date>2024-02-26T16:31:23Z</dc:date>
    <item>
      <title>maximum dimensions from 3d objects</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/maximum-dimensions-from-3d-objects/m-p/12582556#M20633</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;how can I get maximum dimensions from 3D objects to table in layout and use its for division, multiplication, addition...?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 08:28:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/maximum-dimensions-from-3d-objects/m-p/12582556#M20633</guid>
      <dc:creator>mitoborecek</dc:creator>
      <dc:date>2024-02-26T08:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: maximum dimensions from 3d objects</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/maximum-dimensions-from-3d-objects/m-p/12582915#M20634</link>
      <description>&lt;P&gt;I have this routine:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(defun C:BB (/ minpt maxpt); Bounding Box of selected object
  (vla-getboundingbox (vlax-ename-&amp;gt;vla-object (car (entsel))) 'minpt 'maxpt)
  (setq
    box (list (vlax-safearray-&amp;gt;list minpt) (vlax-safearray-&amp;gt;list maxpt))
    delta (mapcar '- (cadr box) (car box))
  ); setq
  (prompt
    (strcat
      "\nBounding Box [in 'box' variable]: " (vl-princ-to-string box) ";"
      "\nExtents: X direction " (rtos (car delta))
      "; Y direction " (rtos (cadr delta))
      "; Z direction " (rtos (caddr delta)) "."
    ); strcat
  ); prompt
  (princ)
)&lt;/LI-CODE&gt;
&lt;P&gt;That leaves you with the maximum dimensions [the extents of the bounding box] in the &lt;STRONG&gt;delta&lt;/STRONG&gt; variable.&amp;nbsp; You can extract them from that in the same way that the&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt; (prompt)&lt;/FONT&gt; &lt;/STRONG&gt;&lt;/FONT&gt;function does, minus the&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt; (rtos)&lt;/FONT&gt; &lt;/STRONG&gt;&lt;/FONT&gt;wrappers, for use in your calculations.&amp;nbsp; [I leave it to you to deal with putting them in a Table if needed.]&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 11:36:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/maximum-dimensions-from-3d-objects/m-p/12582915#M20634</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2024-02-26T11:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: maximum dimensions from 3d objects</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/maximum-dimensions-from-3d-objects/m-p/12583023#M20635</link>
      <description>&lt;P&gt;but some 3d objects are turned about 45°.&lt;/P&gt;&lt;P&gt;Will it work?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 12:42:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/maximum-dimensions-from-3d-objects/m-p/12583023#M20635</guid>
      <dc:creator>mitoborecek</dc:creator>
      <dc:date>2024-02-26T12:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: maximum dimensions from 3d objects</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/maximum-dimensions-from-3d-objects/m-p/12583116#M20636</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14980185"&gt;@mitoborecek&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;but some 3d objects are turned about 45°.&amp;nbsp; Will it work?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Unfortunately, it will give you only the overall extents in the directions of the XYZ axes.&amp;nbsp; If you have, for example, a rectangular prism [such as the BOX command makes] rotated in the XY plane at your 45° [or any other non-orthogonal angle], and you want to know the length of a rotated edge, I don't know of any way to get that, except with a DIST command and Osnapping to corners.&amp;nbsp; For some things, that kind of dimension can be calculated from their entity data in one way or another [the length of a Line, for example, at whatever angle including into the 3rd dimension].&amp;nbsp; But for 3D Solids, entity data is &lt;EM&gt;completely inscrutable&lt;/EM&gt; -- there's no way to extract things like XYZ locations of corners [when there even &lt;EM&gt;are&lt;/EM&gt;&amp;nbsp;any discernible specific locations like corners] to calculate distances from, etc.&amp;nbsp; For an &lt;EM&gt;orthogonally&lt;/EM&gt; oriented box you can get them, &lt;EM&gt;not&lt;/EM&gt; because you have access to coordinate information about the corners as defining the 3D Solid, but only because in that case they happen to coincide with the bounding box.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 13:37:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/maximum-dimensions-from-3d-objects/m-p/12583116#M20636</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2024-02-26T13:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: maximum dimensions from 3d objects</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/maximum-dimensions-from-3d-objects/m-p/12583222#M20637</link>
      <description>&lt;P&gt;OK, Thank You for Your time and&amp;nbsp;explanation&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 14:17:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/maximum-dimensions-from-3d-objects/m-p/12583222#M20637</guid>
      <dc:creator>mitoborecek</dc:creator>
      <dc:date>2024-02-26T14:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: maximum dimensions from 3d objects</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/maximum-dimensions-from-3d-objects/m-p/12583245#M20638</link>
      <description>&lt;P&gt;I found that rectangle have information about area, if I add for every my 3d object rectangle, is there any way to export/add areas informations of all polygons at once to table?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 14:53:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/maximum-dimensions-from-3d-objects/m-p/12583245#M20638</guid>
      <dc:creator>mitoborecek</dc:creator>
      <dc:date>2024-02-26T14:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: maximum dimensions from 3d objects</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/maximum-dimensions-from-3d-objects/m-p/12583316#M20639</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14980185"&gt;@mitoborecek&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;. if I add for every my 3d object rectangle, is there any way to export/add surface of all polygons at once?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I am finding that in the&lt;FONT face="courier new,courier" color="#000000"&gt;&lt;STRONG&gt; (getpropertyvalue)&lt;/STRONG&gt; &lt;/FONT&gt;world, &lt;EM&gt;3D Solids have an "Area" property&lt;/EM&gt;, which seems in quickie trial to accurately show their overall surface area [not, for example, their area in plan view, or other possibility].&amp;nbsp; Try putting this in at the Command: line:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;(getpropertyvalue (car (entsel "\nSelect a 3D Solid: ")) "Area")&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;So that could be added up from multiple Solids by applying to their entity names pulled from a selection set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But it doesn't help you with the dimensions issue.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 15:12:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/maximum-dimensions-from-3d-objects/m-p/12583316#M20639</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2024-02-26T15:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: maximum dimensions from 3d objects</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/maximum-dimensions-from-3d-objects/m-p/12583560#M20640</link>
      <description>&lt;P&gt;If you are trying to determine the minimum diameter sphere (i.e., the maximum dimension) of a 3D object then &lt;A href="https://en.wikipedia.org/wiki/Bounding_sphere" target="_blank" rel="noopener"&gt;Ritter's bounding sphere&lt;/A&gt; algorithm may give good results. Note that point "z" is the furthest distance from point y other than point x.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 16:31:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/maximum-dimensions-from-3d-objects/m-p/12583560#M20640</guid>
      <dc:creator>leeminardi</dc:creator>
      <dc:date>2024-02-26T16:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: maximum dimensions from 3d objects</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/maximum-dimensions-from-3d-objects/m-p/12583658#M20641</link>
      <description>&lt;P&gt;here is example&lt;/P&gt;&lt;P&gt;white are 3d objects&lt;/P&gt;&lt;P&gt;red are polygons/rectangels&amp;nbsp;here I can get areas&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;left and right part need area like 1510x1000 - Therefore red rectagel is bigger then 3d part&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="kucera7m_0-1708967506157.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1330495i7B25038405E1FB43/image-size/medium?v=v2&amp;amp;px=400" role="button" title="kucera7m_0-1708967506157.png" alt="kucera7m_0-1708967506157.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 17:14:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/maximum-dimensions-from-3d-objects/m-p/12583658#M20641</guid>
      <dc:creator>mitoborecek</dc:creator>
      <dc:date>2024-02-26T17:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: maximum dimensions from 3d objects</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/maximum-dimensions-from-3d-objects/m-p/12583700#M20642</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14980185"&gt;@mitoborecek&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;here is example....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;[In that case, with something built of multiple thin wall and roof pieces, if you want something like the area of that outside wall [the red rectangle minus the triangle cut off by the roof], I assume the&lt;FONT color="#000000"&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt; (getpropertyvalue &lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="courier new,courier"&gt;&lt;EM&gt;{entity}&lt;/EM&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt; "Area")&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;approach is not going to do it for you.&amp;nbsp; It gets the &lt;EM&gt;entire&lt;/EM&gt; surface area of a 3D Solid, including front and back and all edges of parts such as what your image looks like it's made of.&amp;nbsp; But Exploding it and looking at the areas of resulting Regions should work in that case.]&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 17:35:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/maximum-dimensions-from-3d-objects/m-p/12583700#M20642</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2024-02-26T17:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: maximum dimensions from 3d objects</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/maximum-dimensions-from-3d-objects/m-p/12583757#M20643</link>
      <description>&lt;P&gt;no, no&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need area of red rectangle because part without triangel have to made from rectange, so i need count rectangle&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 18:13:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/maximum-dimensions-from-3d-objects/m-p/12583757#M20643</guid>
      <dc:creator>mitoborecek</dc:creator>
      <dc:date>2024-02-26T18:13:11Z</dc:date>
    </item>
  </channel>
</rss>

