<?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: Set all Blocks to &amp;quot;Allow Exploding&amp;quot; macro in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-all-blocks-to-quot-allow-exploding-quot-macro/m-p/13307870#M66445</link>
    <description>&lt;P&gt;Right then, a couple of things.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. My mistake for not thoroughly testing the lisp. It looked as though i was getting the result I and&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2537149"&gt;@jagostinho74&lt;/a&gt;&amp;nbsp;wanted to achieve, but long story short it didn't. My bad, hands up, but here's another AI generated lisp that does work - as far as i can see.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(defun c:MakeBlocksExplodable ()&lt;BR /&gt;(vl-load-com)&lt;BR /&gt;(setq *acad* (vlax-get-acad-object))&lt;BR /&gt;(setq *doc* (vla-get-ActiveDocument *acad*))&lt;BR /&gt;(setq *blocks* (vla-get-Blocks *doc*))&lt;BR /&gt;(vlax-for block *blocks*&lt;BR /&gt;(if (eq (vla-get-IsXRef block) :vlax-false)&lt;BR /&gt;(vla-put-Explodable block :vlax-true)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;(princ "\nAll blocks are now explodable.")&lt;BR /&gt;(princ)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. This is a genuine question without looking for an argument. What's the problem with someone using AI to try and find a solution? "&lt;FONT size="2"&gt;&lt;EM&gt;If you use chatgpt, co-pilot or others, then do it, but spare others.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;EM&gt;If you have any questions, ask chatgpt, co-pilot .."&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 08 Feb 2025 20:19:04 GMT</pubDate>
    <dc:creator>Cladboy</dc:creator>
    <dc:date>2025-02-08T20:19:04Z</dc:date>
    <item>
      <title>Set all Blocks to "Allow Exploding" macro</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-all-blocks-to-quot-allow-exploding-quot-macro/m-p/9938092#M66436</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a DWG w/ several Blocks, some that can be exploded and some that cannot.&lt;/P&gt;&lt;P&gt;Can anyone point to a macro that can set them all to be explodable?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;J&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2020 11:12:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-all-blocks-to-quot-allow-exploding-quot-macro/m-p/9938092#M66436</guid>
      <dc:creator>jagostinho74</dc:creator>
      <dc:date>2020-12-14T11:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: Set all Blocks to "Allow Exploding" macro</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-all-blocks-to-quot-allow-exploding-quot-macro/m-p/9938104#M66437</link>
      <description>&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-make-unexplodable-blocks-explodable/m-p/2107648/highlight/true#M249695" target="_blank"&gt;https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/how-to-make-unexplodable-blocks-explodable/m-p/2107648/highlight/true#M249695&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2020 11:18:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-all-blocks-to-quot-allow-exploding-quot-macro/m-p/9938104#M66437</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2020-12-14T11:18:22Z</dc:date>
    </item>
    <item>
      <title>Re: Set all Blocks to "Allow Exploding" macro</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-all-blocks-to-quot-allow-exploding-quot-macro/m-p/9938239#M66438</link>
      <description>&lt;P&gt;Thank you for the link&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365"&gt;@ВeekeeCZ&lt;/a&gt;&amp;nbsp;but I am not managing to get it to work.&lt;/P&gt;&lt;P&gt;I was keen on adding this to a new toolbar button but I am guessing that it may not work if the code is defining a function?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2020 12:28:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-all-blocks-to-quot-allow-exploding-quot-macro/m-p/9938239#M66438</guid>
      <dc:creator>jagostinho74</dc:creator>
      <dc:date>2020-12-14T12:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set all Blocks to "Allow Exploding" macro</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-all-blocks-to-quot-allow-exploding-quot-macro/m-p/9938382#M66439</link>
      <description>&lt;P&gt;You should learn how to deal with lisp. Look&amp;nbsp;&lt;A href="http://www.lee-mac.com/runlisp.html" target="_self"&gt;HERE&lt;/A&gt;&amp;nbsp;. Then your 'macro' in your toolbar would be just a command name.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The second option is to put the entire lisp into the macro field. It will work, but it's dirty and totally unreadable:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;((lambda () (vl-load-com) (vlax-for b (vla-get-Blocks (vla-get-ActiveDocument (vlax-get-acad-object))) (or (wcmatch (vla-get-Name b) "`**_Space*") (vla-put-explodable b :vlax-true)))(princ)))&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2020 13:29:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-all-blocks-to-quot-allow-exploding-quot-macro/m-p/9938382#M66439</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2020-12-14T13:29:59Z</dc:date>
    </item>
    <item>
      <title>Re: Set all Blocks to "Allow Exploding" macro</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-all-blocks-to-quot-allow-exploding-quot-macro/m-p/9938411#M66440</link>
      <description>&lt;P&gt;thank you&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365"&gt;@ВeekeeCZ&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2020 13:40:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-all-blocks-to-quot-allow-exploding-quot-macro/m-p/9938411#M66440</guid>
      <dc:creator>jagostinho74</dc:creator>
      <dc:date>2020-12-14T13:40:16Z</dc:date>
    </item>
    <item>
      <title>Re: Set all Blocks to "Allow Exploding" macro</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-all-blocks-to-quot-allow-exploding-quot-macro/m-p/13305290#M66441</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2537149"&gt;@jagostinho74&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Appreciate this was a while ago, but, I had a similar issue and ended up at your post above.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using Co-pilot i came up with to the lisp below - if it doesn't work blame Microsoft, not me&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":face_with_tears_of_joy:"&gt;😂&lt;/span&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(defun c:SetExplodable ()
  (setq ss (ssget "X" '((0 . "INSERT")))) ; Select all blocks
  (if ss
    (progn
      (setq i 0)
      (repeat (sslength ss)
        (setq blk (vlax-ename-&amp;gt;vla-object (ssname ss i)))
        (if (vlax-property-available-p blk 'Explodable)
          (vla-put-Explodable blk :vlax-true)
        )
        (setq i (1+ i))
      )
    )
    (princ "\nNo blocks found.")
  )
  (princ)
)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps, albeit a little late to the show.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2025 09:18:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-all-blocks-to-quot-allow-exploding-quot-macro/m-p/13305290#M66441</guid>
      <dc:creator>Cladboy</dc:creator>
      <dc:date>2025-02-07T09:18:10Z</dc:date>
    </item>
    <item>
      <title>Re: Set all Blocks to "Allow Exploding" macro</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-all-blocks-to-quot-allow-exploding-quot-macro/m-p/13306921#M66442</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2769352"&gt;@Cladboy&lt;/a&gt;&amp;nbsp;"&lt;SPAN&gt;if it doesn't work blame Microsoft, not me" I have used Copilot and its success rate is not great, but did you test the code ?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A bit of googling would reveal. "Explodable property is part of AcDbBlockTableRecord object which is block definition." have a look at &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;BeekeeCZ&lt;/SPAN&gt;&lt;/SPAN&gt; post.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Feb 2025 01:28:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-all-blocks-to-quot-allow-exploding-quot-macro/m-p/13306921#M66442</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2025-02-08T01:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Set all Blocks to "Allow Exploding" macro</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-all-blocks-to-quot-allow-exploding-quot-macro/m-p/13307406#M66443</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6254908"&gt;@Sea-Haven&lt;/a&gt;&amp;nbsp;Yes i did test it and it worked for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Feb 2025 12:06:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-all-blocks-to-quot-allow-exploding-quot-macro/m-p/13307406#M66443</guid>
      <dc:creator>Cladboy</dc:creator>
      <dc:date>2025-02-08T12:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: Set all Blocks to "Allow Exploding" macro</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-all-blocks-to-quot-allow-exploding-quot-macro/m-p/13307430#M66444</link>
      <description>&lt;P&gt;like Alan&lt;/P&gt;&lt;P&gt;No, that's impossible. You remembered wrong or posted the wrong code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;If you use chatgpt, co-pilot or others, then do it, but spare others. &lt;/EM&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;EM&gt;If you have any questions, ask chatgpt, co-pilot ..&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Feb 2025 12:34:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-all-blocks-to-quot-allow-exploding-quot-macro/m-p/13307430#M66444</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2025-02-08T12:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: Set all Blocks to "Allow Exploding" macro</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-all-blocks-to-quot-allow-exploding-quot-macro/m-p/13307870#M66445</link>
      <description>&lt;P&gt;Right then, a couple of things.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. My mistake for not thoroughly testing the lisp. It looked as though i was getting the result I and&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2537149"&gt;@jagostinho74&lt;/a&gt;&amp;nbsp;wanted to achieve, but long story short it didn't. My bad, hands up, but here's another AI generated lisp that does work - as far as i can see.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(defun c:MakeBlocksExplodable ()&lt;BR /&gt;(vl-load-com)&lt;BR /&gt;(setq *acad* (vlax-get-acad-object))&lt;BR /&gt;(setq *doc* (vla-get-ActiveDocument *acad*))&lt;BR /&gt;(setq *blocks* (vla-get-Blocks *doc*))&lt;BR /&gt;(vlax-for block *blocks*&lt;BR /&gt;(if (eq (vla-get-IsXRef block) :vlax-false)&lt;BR /&gt;(vla-put-Explodable block :vlax-true)&lt;BR /&gt;)&lt;BR /&gt;)&lt;BR /&gt;(princ "\nAll blocks are now explodable.")&lt;BR /&gt;(princ)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. This is a genuine question without looking for an argument. What's the problem with someone using AI to try and find a solution? "&lt;FONT size="2"&gt;&lt;EM&gt;If you use chatgpt, co-pilot or others, then do it, but spare others.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/FONT&gt;&lt;FONT size="2"&gt;&lt;EM&gt;If you have any questions, ask chatgpt, co-pilot .."&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Feb 2025 20:19:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-all-blocks-to-quot-allow-exploding-quot-macro/m-p/13307870#M66445</guid>
      <dc:creator>Cladboy</dc:creator>
      <dc:date>2025-02-08T20:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set all Blocks to "Allow Exploding" macro</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-all-blocks-to-quot-allow-exploding-quot-macro/m-p/13307985#M66446</link>
      <description>&lt;P&gt;There is nothing wrong with using AI, Copilot or ChatGP, only issue is they have a high failure rate, a lot of code is posted here with "T&lt;STRONG&gt;his is not working can someone fix."&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It very much depends on the task once you get into deeper code requirement like this task, AI struggles. Plenty of failure code has been posted here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I said I have tried Copilot some results good others just ignore.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Feb 2025 22:50:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-all-blocks-to-quot-allow-exploding-quot-macro/m-p/13307985#M66446</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2025-02-08T22:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: Set all Blocks to "Allow Exploding" macro</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-all-blocks-to-quot-allow-exploding-quot-macro/m-p/13738228#M165398</link>
      <description>&lt;P&gt;Make this last one as a lsp file and it works a treat!!! Nice one&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2769352"&gt;@Cladboy&lt;/a&gt;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":face_blowing_a_kiss:"&gt;😘&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jul 2025 11:45:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/set-all-blocks-to-quot-allow-exploding-quot-macro/m-p/13738228#M165398</guid>
      <dc:creator>thinkbdw</dc:creator>
      <dc:date>2025-07-24T11:45:52Z</dc:date>
    </item>
  </channel>
</rss>

