<?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 eInvalidExtents of BlockReference's GeometricExtents in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/einvalidextents-of-blockreference-s-geometricextents/m-p/2793054#M63556</link>
    <description>&lt;P&gt;hello everyone.&lt;/P&gt;&lt;P&gt;Today I met a very strange error about GeometricExtents. When execute code like below the exception "eInvalidExtents"&amp;nbsp;will be throw:&lt;/P&gt;&lt;P&gt;//some code to get block reference from drawing&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;Extents3d blockExt = br.GeometricExtents;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But if I changed the code to :&lt;/P&gt;&lt;P&gt;Extents3d blockExt = br.GeometryExtentsBestFit();&lt;/P&gt;&lt;P&gt;the exception gone.I am not really know the differents between the GeometricExtents and GeometryExtentsBestFit,so could anybody tell me why I got the exception when use GeometricExtents. and why it gone when I use GeometryExtentsBestFit.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Oct 2010 07:39:28 GMT</pubDate>
    <dc:creator>sdphg</dc:creator>
    <dc:date>2010-10-11T07:39:28Z</dc:date>
    <item>
      <title>eInvalidExtents of BlockReference's GeometricExtents</title>
      <link>https://forums.autodesk.com/t5/net-forum/einvalidextents-of-blockreference-s-geometricextents/m-p/2793054#M63556</link>
      <description>&lt;P&gt;hello everyone.&lt;/P&gt;&lt;P&gt;Today I met a very strange error about GeometricExtents. When execute code like below the exception "eInvalidExtents"&amp;nbsp;will be throw:&lt;/P&gt;&lt;P&gt;//some code to get block reference from drawing&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;Extents3d blockExt = br.GeometricExtents;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But if I changed the code to :&lt;/P&gt;&lt;P&gt;Extents3d blockExt = br.GeometryExtentsBestFit();&lt;/P&gt;&lt;P&gt;the exception gone.I am not really know the differents between the GeometricExtents and GeometryExtentsBestFit,so could anybody tell me why I got the exception when use GeometricExtents. and why it gone when I use GeometryExtentsBestFit.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2010 07:39:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/einvalidextents-of-blockreference-s-geometricextents/m-p/2793054#M63556</guid>
      <dc:creator>sdphg</dc:creator>
      <dc:date>2010-10-11T07:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: eInvalidExtents of BlockReference's GeometricExtents</title>
      <link>https://forums.autodesk.com/t5/net-forum/einvalidextents-of-blockreference-s-geometricextents/m-p/4295277#M63557</link>
      <description>&lt;LI-SPOILER&gt;&amp;nbsp;&lt;/LI-SPOILER&gt;&lt;P&gt;Has there ever been an answer to the query?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2013 15:29:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/einvalidextents-of-blockreference-s-geometricextents/m-p/4295277#M63557</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-06-11T15:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: eInvalidExtents of BlockReference's GeometricExtents</title>
      <link>https://forums.autodesk.com/t5/net-forum/einvalidextents-of-blockreference-s-geometricextents/m-p/4295439#M63558</link>
      <description>&lt;P&gt;if you searched Object ARX SDK documents (not the reference document for managed API, you need to look into cooresponding classes/methodes/properties in the unmanaged C++ reference document).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the quote ffrom "arxref.chm" on the method geomExtentsBestFit():&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;QUOTE&amp;gt;&lt;/P&gt;&lt;P class="Element10"&gt;When working in non-WCS coordinate systems, the extents returned from &lt;SPAN&gt;AcDbBlockReference::geomExtents()&lt;/SPAN&gt; can be somewhat larger that the actual geometry because &lt;SPAN&gt;AcDbBlockReference::geomExtents()&lt;/SPAN&gt; transforms the contained entities' precomputed extents by the block reference's transformation matrix rather than transforming the entities and computing a new box for the transformed entity set. This results in non-world aligned extent boxes for the entities. This is fast, but will provide an "exaggerated" enclosing extents box.&lt;/P&gt;&lt;P class="Element10"&gt;&lt;SPAN&gt;AcDbBlockReference::geomExtentsBestFit()&lt;/SPAN&gt; avoids this problem by getting copies of all the entities in the referenced block table record, applying &lt;SPAN&gt;parentXform&lt;/SPAN&gt; to them, and then calculating the extents on the resulting entity set. This is slower than the process used by &lt;SPAN&gt;AcDbBlockReference::geomExtents()&lt;/SPAN&gt;, but will result in the tightest fitting &lt;A target="_blank" href="https://forums.autodesk.com/t5/forums/replypage/board-id/152/message-id/AcDbExtents.html"&gt;AcDbExtents&lt;/A&gt; for the enclosed geometry.&lt;/P&gt;&lt;P class="Element10"&gt;This method works recursively for nested block references. When this method is called on the outermost block reference (the normal case for ARX applications), &lt;SPAN&gt;parentXform&lt;/SPAN&gt; should be the identity matrix. For calls on nested block references, parentXform should be the cumulative transformation from the outermost block reference down to the block reference that is referencing the block table record that owns the block reference on which this method is being called.&lt;/P&gt;&lt;P class="Element10"&gt;This method uses the &lt;SPAN&gt;AcDbBlockReference::explode()&lt;/SPAN&gt; method to get copies of the entities. Since the &lt;SPAN&gt;AcDbBlockReference::explode()&lt;/SPAN&gt; does not currently support nonuniform transformations, if the block reference on which this method is called, or any nested block references have nonuniform transformations, then this method cannot succeed and will return &lt;SPAN&gt;Acad::eInvalidInput&lt;/SPAN&gt;.&lt;/P&gt;&lt;P class="Element10"&gt;Returns &lt;SPAN&gt;Acad::eOk&lt;/SPAN&gt; if successful.&lt;/P&gt;&lt;P&gt;&amp;lt;/QUOTE&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think the last paragraph may explain why you get eInvalidInput error: your block is not scaled uniformly, or not explodeable.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2013 17:37:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/einvalidextents-of-blockreference-s-geometricextents/m-p/4295439#M63558</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2013-06-11T17:37:57Z</dc:date>
    </item>
  </channel>
</rss>

