<?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: Get Block geometry in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/get-block-geometry/m-p/13308360#M112</link>
    <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14801"&gt;@Ed__Jobe&lt;/a&gt; ,&lt;BR /&gt;Thank you very much for the brilliant answer and explanation of how blocks work!&lt;BR /&gt;I owe you a beer for this shared knowledge.&lt;/P&gt;</description>
    <pubDate>Sun, 09 Feb 2025 09:14:31 GMT</pubDate>
    <dc:creator>george1985</dc:creator>
    <dc:date>2025-02-09T09:14:31Z</dc:date>
    <item>
      <title>Get Block geometry</title>
      <link>https://forums.autodesk.com/t5/vba-forum/get-block-geometry/m-p/13291885#M110</link>
      <description>&lt;P&gt;Dear Autocad colleagues,&lt;BR /&gt;&lt;BR /&gt;How to get geometry of a Dynamic block instance, via ActiveX API?&lt;BR /&gt;I looked at the &lt;A href="https://help.autodesk.com/view/OARX/2025/ENU/?guid=GUID-88EEBCA3-8AF5-4776-9D54-520B05AB9129" target="_blank" rel="noopener"&gt;BlockReference documentation page&lt;/A&gt;, and there is only Explode() method.&lt;BR /&gt;Sadly this method actually explodes the dynamic block, before returning its geometry items.&lt;BR /&gt;&lt;BR /&gt;So, is it not possible to get Block instance geometry via ActiveX API?&lt;BR /&gt;Not even if we call some Lisp command?&lt;BR /&gt;It can be achieved only via NET Autocad API?&lt;BR /&gt;&lt;BR /&gt;I would be very grateful for any kind of help, as the moment I don't know how to proceed with my project.&lt;BR /&gt;Thank you for the help in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2025 23:27:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/get-block-geometry/m-p/13291885#M110</guid>
      <dc:creator>george1985</dc:creator>
      <dc:date>2025-01-30T23:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Get Block geometry</title>
      <link>https://forums.autodesk.com/t5/vba-forum/get-block-geometry/m-p/13291913#M111</link>
      <description>&lt;P&gt;You need to understand how dynamic blocks and regular blocks work. Let's start with regular blocks. They have a definition object called a &lt;A href="https://help.autodesk.com/view/OARX/2025/ENU/?guid=GUID-E6F7B03B-F5CC-4A18-9C48-BBF1D32A31FD" target="_blank" rel="noopener"&gt;Block&lt;/A&gt;. This stores all the geometry of the block. Then, the insertion or instance of a block is called a &lt;A href="https://help.autodesk.com/view/OARX/2025/ENU/?guid=GUID-88EEBCA3-8AF5-4776-9D54-520B05AB9129" target="_blank" rel="noopener"&gt;BlockReference&lt;/A&gt;. This object only stores the block name and insertion point and rotation. Then the entities of the block definition are drawn at this location. Now, when you have a dynamic block, if you change any of the block properties, an unnamed block is created to represent the transformed block. It has a name that begins with "*U####". The BlockReference will then contain an &lt;A href="https://help.autodesk.com/view/OARX/2025/ENU/?guid=GUID-A87607A4-D7F9-40B3-94B5-B9D88011DEB5" target="_blank" rel="noopener"&gt;EffectiveName&lt;/A&gt; property that is the value of the original block name, not the unnamed block, which will be the Name property. To get the entities of the unnamed block, use the Name property to query the &lt;A href="https://help.autodesk.com/view/OARX/2025/ENU/?guid=GUID-E77CC5AD-74B8-472C-8270-32FD162D5653" target="_blank" rel="noopener"&gt;Blocks&lt;/A&gt; collection. To get the entities of the original block, use the EffectiveName property. When you find the block definition, you use the Block.&lt;A href="https://help.autodesk.com/view/OARX/2025/ENU/?guid=GUID-A5B6ACC4-DCD8-4FE2-AB06-D3C3C349475B" target="_blank" rel="noopener"&gt;Item&lt;/A&gt; method to iterate each item. There are examples of how to do that in this forum. For example, &lt;A href="https://forums.autodesk.com/t5/vba/access-the-objects-in-the-block-definition-object/m-p/8191725" target="_blank" rel="noopener"&gt;this thread&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Sun, 09 Feb 2025 17:52:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/get-block-geometry/m-p/13291913#M111</guid>
      <dc:creator>Ed__Jobe</dc:creator>
      <dc:date>2025-02-09T17:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Get Block geometry</title>
      <link>https://forums.autodesk.com/t5/vba-forum/get-block-geometry/m-p/13308360#M112</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/14801"&gt;@Ed__Jobe&lt;/a&gt; ,&lt;BR /&gt;Thank you very much for the brilliant answer and explanation of how blocks work!&lt;BR /&gt;I owe you a beer for this shared knowledge.&lt;/P&gt;</description>
      <pubDate>Sun, 09 Feb 2025 09:14:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/get-block-geometry/m-p/13308360#M112</guid>
      <dc:creator>george1985</dc:creator>
      <dc:date>2025-02-09T09:14:31Z</dc:date>
    </item>
  </channel>
</rss>

