<?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: AcDbFullSubentPath problem with Exploded subentities of AcDbBlockReference in ObjectARX Forum</title>
    <link>https://forums.autodesk.com/t5/objectarx-forum/acdbfullsubentpath-problem-with-exploded-subentities-of/m-p/5365809#M11832</link>
    <description>&lt;P&gt;I don't understand why you have to use explode(), but why not then just put the exploded entities into a temporary database?&lt;/P&gt;</description>
    <pubDate>Tue, 28 Oct 2014 18:17:58 GMT</pubDate>
    <dc:creator>owenwengerd</dc:creator>
    <dc:date>2014-10-28T18:17:58Z</dc:date>
    <item>
      <title>AcDbFullSubentPath problem with Exploded subentities of AcDbBlockReference</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/acdbfullsubentpath-problem-with-exploded-subentities-of/m-p/5365623#M11831</link>
      <description>&lt;P&gt;I am currently using explode to place AcDbBlockReference into the same coordinate space as modelspace and then using a AcBrMesh2dControl to extract meshes.&amp;nbsp; However, this is failing for subentities of&amp;nbsp;a AcDbBlockReference.&amp;nbsp; I believe it is because they have not been inserted into modelspace and thus do not have a valid AcDbFullSubentPath .&amp;nbsp; I would rather not open this drawing for write and insert them into modelspace.&amp;nbsp; If there anyway to construct a valid AcDbFullSubentPath&amp;nbsp;for entities that are held in a AcDbVoidPtrArray.&amp;nbsp; I am also thinking that I may need to iterate over the entities in the block table record and use the block reference transform.&amp;nbsp; I am looking for a good example of this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get an error when I do the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;elementShape = AcBr::kAllTriangles;&lt;/P&gt;&lt;P&gt;&amp;nbsp;AcBrMesh2dControl meshCtrl;&lt;/P&gt;&lt;P&gt;&amp;nbsp;returnValue = meshCtrl.setMinSubdivisionsInU(minSubdivisionsInU);&lt;/P&gt;&lt;P&gt;&amp;nbsp;returnValue = meshCtrl.setMinSubdivisionsInV(minSubdivisionsInV);&lt;/P&gt;&lt;P&gt;&amp;nbsp;returnValue = meshCtrl.setMaxSubdivisions(maxSubdivisions);&lt;/P&gt;&lt;P&gt;&amp;nbsp;returnValue = meshCtrl.setMaxNodeSpacing(maxNodeSpacing);&lt;/P&gt;&lt;P&gt;&amp;nbsp;returnValue = meshCtrl.setAngTol(angTol);&lt;/P&gt;&lt;P&gt;&amp;nbsp;returnValue = meshCtrl.setDistTol(distTol);&lt;/P&gt;&lt;P&gt;&amp;nbsp;returnValue = meshCtrl.setMaxAspectRatio(maxAspectRatio);&lt;/P&gt;&lt;P&gt;&amp;nbsp;returnValue = meshCtrl.setElementShape(elementShape);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AcDbFullSubentPath psubpath;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;psubpath.objectIds().append(pEnt-&amp;gt;id());&amp;nbsp;&amp;nbsp; // pEnt may either belong to modelspace or be an&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // entity created by a block reference explode&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;AcBrEntity *lbrepEntity=NULL;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;lbrepEntity = &lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;new&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt; AcBrBrep();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;returnValue = lbrepEntity-&amp;gt;set(psubpath))&amp;nbsp; // ERROR occurs here!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;SPAN&gt;&lt;SPAN&gt;if (returnValue==eOk) {&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; returnValue = brepMesh.generate(meshFilter)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Oct 2014 17:06:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/acdbfullsubentpath-problem-with-exploded-subentities-of/m-p/5365623#M11831</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-28T17:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: AcDbFullSubentPath problem with Exploded subentities of AcDbBlockReference</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/acdbfullsubentpath-problem-with-exploded-subentities-of/m-p/5365809#M11832</link>
      <description>&lt;P&gt;I don't understand why you have to use explode(), but why not then just put the exploded entities into a temporary database?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Oct 2014 18:17:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/acdbfullsubentpath-problem-with-exploded-subentities-of/m-p/5365809#M11832</guid>
      <dc:creator>owenwengerd</dc:creator>
      <dc:date>2014-10-28T18:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: AcDbFullSubentPath problem with Exploded subentities of AcDbBlockReference</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/acdbfullsubentpath-problem-with-exploded-subentities-of/m-p/5365857#M11833</link>
      <description>&lt;P&gt;I was only using Explode because it worked (transformed subentities and the entities retained all the properties and layering of original entities).&amp;nbsp; I can also continue to recurse into&amp;nbsp;any&amp;nbsp;block references that&amp;nbsp;come out&amp;nbsp;as subentities.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I insert them into a temporary database, do I need to re-create all the layering that was in the original database?&amp;nbsp; I need to maintain the layering for properties.&amp;nbsp; I am doubting&amp;nbsp;the creation of new layers happens automatically in the temporary database.&amp;nbsp; Sorry for my lack of experience, I have this one 3000 line ObjectARX C++ program that I created and maintain so I don't get a lot of exposure to doing things differently than my current implementation.&amp;nbsp; I recently added the ability to process solids (previously just processed wireframe entities) and ran into this meshing problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I wish I could find a good example of iterating over the block table entities&amp;nbsp;and using the block reference&amp;nbsp;transform.&amp;nbsp; There is probably already one out there but I am not finding it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Oct 2014 18:34:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/acdbfullsubentpath-problem-with-exploded-subentities-of/m-p/5365857#M11833</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-28T18:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: AcDbFullSubentPath problem with Exploded subentities of AcDbBlockReference</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/acdbfullsubentpath-problem-with-exploded-subentities-of/m-p/5366035#M11834</link>
      <description>&lt;BLOCKQUOTE&gt;I think that if you used explode() "because it worked", maybe you should post instead with a description of the general problem you're trying to solve and ask for suggestions on better ways to solve it. At least explain why you can't just use the entities in the source database as they are. If you want to proceed with explode(), try adding the exploded entities to a temporary database as I suggested and see what happens.&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;&lt;P&gt;I was only using Explode because it worked (transformed subentities and the entities retained all the properties and layering of original entities).&amp;nbsp; I can also continue to recurse into&amp;nbsp;any&amp;nbsp;block references that&amp;nbsp;come out&amp;nbsp;as subentities.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Oct 2014 19:43:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/acdbfullsubentpath-problem-with-exploded-subentities-of/m-p/5366035#M11834</guid>
      <dc:creator>owenwengerd</dc:creator>
      <dc:date>2014-10-28T19:43:14Z</dc:date>
    </item>
    <item>
      <title>Re: AcDbFullSubentPath problem with Exploded subentities of AcDbBlockReference</title>
      <link>https://forums.autodesk.com/t5/objectarx-forum/acdbfullsubentpath-problem-with-exploded-subentities-of/m-p/5367461#M11835</link>
      <description>&lt;P&gt;Thanks - I'll do that.&amp;nbsp; I can use the entities as is in the database opened for read.&amp;nbsp; I suspect there is no increase in processing time to transform the related block table entities as this already occurs during the explode.&amp;nbsp; I am hoping to find a good example of iterating over the entities and applying the transform. Also, I may try opening the database for write and just not save it.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Oct 2014 12:35:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/objectarx-forum/acdbfullsubentpath-problem-with-exploded-subentities-of/m-p/5367461#M11835</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-10-29T12:35:30Z</dc:date>
    </item>
  </channel>
</rss>

