<?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: Explode block - Input Error in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/explode-block-input-error/m-p/2214766#M20444</link>
    <description>Why are you exploding them? To find what layers a block's objects use, just &lt;BR /&gt;
loop through the Block definition.&lt;BR /&gt;
&lt;BR /&gt;
To answer your question, some blocks cannot be exploded.&lt;BR /&gt;
&lt;BR /&gt;
"fieldguy" &lt;NOMAIL-POST&gt; wrote in message &lt;BR /&gt;
news:5886141@discussion.autodesk.com...&lt;BR /&gt;
I am getting an Invalid Input error as attached.  I am trying to loop&lt;BR /&gt;
through all the blocks in a drawing, and explode to find the layers of all&lt;BR /&gt;
items in the block.&lt;BR /&gt;
There are approx. 860 instances of approx. 450 blocks.  I have tried&lt;BR /&gt;
objectname and objectid but they don't help isolate the problem.  I tried&lt;BR /&gt;
Insertionpoint but that is not a property of entityset.Item(i)&lt;/NOMAIL-POST&gt;</description>
    <pubDate>Wed, 26 Mar 2008 17:46:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-03-26T17:46:46Z</dc:date>
    <item>
      <title>Explode block - Input Error</title>
      <link>https://forums.autodesk.com/t5/vba-forum/explode-block-input-error/m-p/2214765#M20443</link>
      <description>I am getting an Invalid Input error as attached.  I am trying to loop &lt;BR /&gt;
through all the blocks in a drawing, and explode to find the layers of all &lt;BR /&gt;
items in the block.&lt;BR /&gt;
There are approx. 860 instances of approx. 450 blocks.  I have tried &lt;BR /&gt;
objectname and objectid but they don't help isolate the problem.  I tried &lt;BR /&gt;
Insertionpoint but that is not a property of entityset.Item(i)&lt;BR /&gt;
&lt;BR /&gt;
/snip of code&lt;BR /&gt;
&lt;BR /&gt;
intDxfCode(0) = 0&lt;BR /&gt;
varDxfValue(0) = "INSERT"&lt;BR /&gt;
'set entity name DXF code to match block name&lt;BR /&gt;
intDxfCode(1) = 2&lt;BR /&gt;
varDxfValue(1) = oBlock.Name&lt;BR /&gt;
Set entityset = ThisDrawing.SelectionSets.Add("SS1")&lt;BR /&gt;
entityset.Clear&lt;BR /&gt;
'get all instances of block name in the drawing&lt;BR /&gt;
entityset.Select acSelectionSetAll, , , intDxfCode, varDxfValue&lt;BR /&gt;
if entityset.count &amp;gt; 0 then&lt;BR /&gt;
    for i = 0 to entityset.count - 1&lt;BR /&gt;
        explodedobjects = entityset.Item(i).Explode&lt;BR /&gt;
        entityset.Item(i).Delete&lt;BR /&gt;
    next&lt;BR /&gt;
end if&lt;BR /&gt;
&lt;BR /&gt;
/end code snip&lt;BR /&gt;
&lt;BR /&gt;
I am filtering my list to exclude xrefs, layouts, and block names that have &lt;BR /&gt;
"*" in them, like *U123.&lt;BR /&gt;
&lt;BR /&gt;
I need to know why the block won't explode but to do that I have to find &lt;BR /&gt;
which block and where it is.</description>
      <pubDate>Wed, 26 Mar 2008 17:18:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/explode-block-input-error/m-p/2214765#M20443</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-26T17:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Explode block - Input Error</title>
      <link>https://forums.autodesk.com/t5/vba-forum/explode-block-input-error/m-p/2214766#M20444</link>
      <description>Why are you exploding them? To find what layers a block's objects use, just &lt;BR /&gt;
loop through the Block definition.&lt;BR /&gt;
&lt;BR /&gt;
To answer your question, some blocks cannot be exploded.&lt;BR /&gt;
&lt;BR /&gt;
"fieldguy" &lt;NOMAIL-POST&gt; wrote in message &lt;BR /&gt;
news:5886141@discussion.autodesk.com...&lt;BR /&gt;
I am getting an Invalid Input error as attached.  I am trying to loop&lt;BR /&gt;
through all the blocks in a drawing, and explode to find the layers of all&lt;BR /&gt;
items in the block.&lt;BR /&gt;
There are approx. 860 instances of approx. 450 blocks.  I have tried&lt;BR /&gt;
objectname and objectid but they don't help isolate the problem.  I tried&lt;BR /&gt;
Insertionpoint but that is not a property of entityset.Item(i)&lt;/NOMAIL-POST&gt;</description>
      <pubDate>Wed, 26 Mar 2008 17:46:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/explode-block-input-error/m-p/2214766#M20444</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-26T17:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Explode block - Input Error</title>
      <link>https://forums.autodesk.com/t5/vba-forum/explode-block-input-error/m-p/2214767#M20445</link>
      <description>Thank you&lt;BR /&gt;
&lt;BR /&gt;
"Jeff Mishler" &lt;MIFFATSONICDOTNET&gt; wrote in message &lt;BR /&gt;
news:5886183@discussion.autodesk.com...&lt;BR /&gt;
Why are you exploding them? To find what layers a block's objects use, just&lt;BR /&gt;
loop through the Block definition.&lt;BR /&gt;
&lt;BR /&gt;
To answer your question, some blocks cannot be exploded.&lt;BR /&gt;
&lt;BR /&gt;
"fieldguy" &lt;NOMAIL-POST&gt; wrote in message&lt;BR /&gt;
news:5886141@discussion.autodesk.com...&lt;BR /&gt;
I am getting an Invalid Input error as attached.  I am trying to loop&lt;BR /&gt;
through all the blocks in a drawing, and explode to find the layers of all&lt;BR /&gt;
items in the block.&lt;BR /&gt;
There are approx. 860 instances of approx. 450 blocks.  I have tried&lt;BR /&gt;
objectname and objectid but they don't help isolate the problem.  I tried&lt;BR /&gt;
Insertionpoint but that is not a property of entityset.Item(i)&lt;/NOMAIL-POST&gt;&lt;/MIFFATSONICDOTNET&gt;</description>
      <pubDate>Wed, 26 Mar 2008 21:45:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/explode-block-input-error/m-p/2214767#M20445</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-26T21:45:09Z</dc:date>
    </item>
  </channel>
</rss>

