<?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 All not exploding all in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/explode-all-not-exploding-all/m-p/13708583#M164985</link>
    <description>&lt;P&gt;This may not solve your problem, but you shouldn't have &lt;STRONG&gt;&lt;EM&gt;double&lt;/EM&gt;&lt;/STRONG&gt; double-quotes around everything.&amp;nbsp; It may work for some entries, but I suspect you're going to get two Enters where you intend only one, which would certainly cause trouble, if not necessarily this particular trouble.&lt;/P&gt;</description>
    <pubDate>Wed, 02 Jul 2025 23:03:38 GMT</pubDate>
    <dc:creator>Kent1Cooper</dc:creator>
    <dc:date>2025-07-02T23:03:38Z</dc:date>
    <item>
      <title>Explode All not exploding all</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/explode-all-not-exploding-all/m-p/13708365#M164981</link>
      <description>&lt;P&gt;Hello all!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to perform what I think is a simple few commands in AutoCAD - I have this placed in my C# file to run through script. If I run it manually in AutoCAD it will explode and extrude which is great but sometimes it only will explode some of the objects but not all. I'm using it on a DWG export from Revit of ACT Grids and it works great a lot of the time but again sometimes it doesn't explode them all and I have to manually go in and explode the object that didn't explode.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was wondering what is the reason for this and if I can adjust the code to be more robust to check if all objects have been exploded and if so then move on to extrude and if not to explode them again until all are exploded and then I can extrude. Hope someone can help! Thank you!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(defun c:JoinExtrudeAll ( )&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;;; Set view to top&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;(command &lt;SPAN&gt;""&lt;/SPAN&gt;_VPOINT&lt;SPAN&gt;""&lt;/SPAN&gt; &lt;SPAN&gt;""&lt;/SPAN&gt;0,0,1&lt;SPAN&gt;""&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;;; Set to layer 0 to avoid lock&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;(command &lt;SPAN&gt;""&lt;/SPAN&gt;_LAYER&lt;SPAN&gt;""&lt;/SPAN&gt; &lt;SPAN&gt;""&lt;/SPAN&gt;S&lt;SPAN&gt;""&lt;/SPAN&gt; &lt;SPAN&gt;""&lt;/SPAN&gt;0&lt;SPAN&gt;""&lt;/SPAN&gt; &lt;SPAN&gt;""""&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;;; Try deleting A-CLNG layer&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;(command &lt;SPAN&gt;""&lt;/SPAN&gt;_LAYDEL&lt;SPAN&gt;""&lt;/SPAN&gt; &lt;SPAN&gt;""&lt;/SPAN&gt;N&lt;SPAN&gt;""&lt;/SPAN&gt; &lt;SPAN&gt;""&lt;/SPAN&gt;A-CLNG&lt;SPAN&gt;""&lt;/SPAN&gt; &lt;SPAN&gt;""""&lt;/SPAN&gt; &lt;SPAN&gt;""&lt;/SPAN&gt;Y&lt;SPAN&gt;""&lt;/SPAN&gt; &lt;SPAN&gt;""""&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;;; First explode attempt&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;(command &lt;SPAN&gt;""&lt;/SPAN&gt;_EXPLODE&lt;SPAN&gt;""&lt;/SPAN&gt; &lt;SPAN&gt;""&lt;/SPAN&gt;ALL&lt;SPAN&gt;""&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;;; Extrude everything&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;(command &lt;SPAN&gt;""&lt;/SPAN&gt;_EXTRUDE&lt;SPAN&gt;""&lt;/SPAN&gt; &lt;SPAN&gt;""&lt;/SPAN&gt;ALL&lt;SPAN&gt;""&lt;/SPAN&gt; &lt;SPAN&gt;""""&lt;/SPAN&gt; &lt;SPAN&gt;""&lt;/SPAN&gt;2&lt;SPAN&gt;""&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;;; Save and close&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;(command &lt;SPAN&gt;""&lt;/SPAN&gt;_QSAVE&lt;SPAN&gt;""&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;(command &lt;SPAN&gt;""&lt;/SPAN&gt;_QUIT&lt;SPAN&gt;""&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&amp;nbsp; &lt;/SPAN&gt;(princ)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2025 19:01:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/explode-all-not-exploding-all/m-p/13708365#M164981</guid>
      <dc:creator>sjelen</dc:creator>
      <dc:date>2025-07-02T19:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Explode All not exploding all</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/explode-all-not-exploding-all/m-p/13708469#M164983</link>
      <description>&lt;P&gt;if you can isolate what objects fail to explode that would be a good start point.&lt;/P&gt;&lt;P&gt;if you're referring to exploding all blocks including nested ones then you may want to look at @hmsilvamore complex explode lisp function here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/recursive-explode-lisp/td-p/5699939" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/recursive-explode-lisp/td-p/5699939&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2025 12:52:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/explode-all-not-exploding-all/m-p/13708469#M164983</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2025-07-03T12:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: Explode All not exploding all</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/explode-all-not-exploding-all/m-p/13708583#M164985</link>
      <description>&lt;P&gt;This may not solve your problem, but you shouldn't have &lt;STRONG&gt;&lt;EM&gt;double&lt;/EM&gt;&lt;/STRONG&gt; double-quotes around everything.&amp;nbsp; It may work for some entries, but I suspect you're going to get two Enters where you intend only one, which would certainly cause trouble, if not necessarily this particular trouble.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jul 2025 23:03:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/explode-all-not-exploding-all/m-p/13708583#M164985</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2025-07-02T23:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: Explode All not exploding all</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/explode-all-not-exploding-all/m-p/13709065#M164988</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12551837"&gt;@sjelen&lt;/a&gt;&amp;nbsp;hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First,&lt;/P&gt;&lt;P&gt;keep in mind that blocks can have nested blocks so calling explode on all objects will explode them at the first level and to deeply explode more, you have to call it again so this one requires a loop.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Second,&lt;/P&gt;&lt;P&gt;if you already have a pline it will be exploded too...do you want that?!&amp;nbsp;maybe filter the selection to blocks only.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thirdly,&lt;/P&gt;&lt;P&gt;for the extrude, filter selection for the objects you want to extrude.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Moshe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2025 08:28:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/explode-all-not-exploding-all/m-p/13709065#M164988</guid>
      <dc:creator>Moshe-A</dc:creator>
      <dc:date>2025-07-03T08:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Explode All not exploding all</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/explode-all-not-exploding-all/m-p/13709540#M164997</link>
      <description>&lt;P&gt;Good morning Kent -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using double quotes because it being inside my C# file if I have just single quotes it messes with a lot of parts of the code and doesn't "close" portions. But thinking about it now, maybe I wrap the whole Lisp file in quotes and maybe that will resolve the issue of using double quotes inside each function. I did also check my Lisp file as it gets saved each time the C# command is run and it appears that it's only single quotes in there as it doesn't pick up the double from the C# file. I will try wrapping it all in quotes just as a test as well.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2025 12:32:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/explode-all-not-exploding-all/m-p/13709540#M164997</guid>
      <dc:creator>sjelen</dc:creator>
      <dc:date>2025-07-03T12:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: Explode All not exploding all</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/explode-all-not-exploding-all/m-p/13709546#M164998</link>
      <description>&lt;P&gt;Good morning Moshe-A - I tried figuring out how to write that loop but I'm having no luck. Would you be able to help me with that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had tried running Explode twice but found that when everything exploded on the first go around and ran the second time I would get an error and the extrude command would not run.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2025 12:39:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/explode-all-not-exploding-all/m-p/13709546#M164998</guid>
      <dc:creator>sjelen</dc:creator>
      <dc:date>2025-07-03T12:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Explode All not exploding all</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/explode-all-not-exploding-all/m-p/13710045#M165002</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12551837"&gt;@sjelen&lt;/a&gt;&amp;nbsp;trying to understand why you're hard-coding a Script in LISP, within a C# .NET plugin (within your VS project/solution)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All of this can be done from C# - even if you didn't want to code the overhead of doing this in API, you can still invoke the necessary commands from .NET API via SendStringToExecute(), etc as needed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In any event, here's how to explode modelspace Blocks in a loop (in LISP):&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;(while (setq ss (ssget "_x" '((0 . "INSERT")(410 . "Model"))))
  (command "._explode" ss)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Lastly, if you're wanting to batch process 2+ drawings at the same time, instead call Core Console to process each drawing in parallel, using your .SCR (or code this as a C# CommandMethod, NETLOAD your assembly &amp;amp; invoke).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTH&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2025 17:34:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/explode-all-not-exploding-all/m-p/13710045#M165002</guid>
      <dc:creator>BlackBox_</dc:creator>
      <dc:date>2025-07-03T17:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: Explode All not exploding all</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/explode-all-not-exploding-all/m-p/13710071#M165003</link>
      <description>&lt;P&gt;Dang ok, I'd love to learn more about how to incorporate it in the C# opposed to having the program execute a scr. file which then runs the Lisp. I'll try the code you sent and give that a try first as I've been able to make it work(mostly) but definitely would like to understand more about what you're describing.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Would you want to discuss that further here or a separate discussion?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2025 17:53:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/explode-all-not-exploding-all/m-p/13710071#M165003</guid>
      <dc:creator>sjelen</dc:creator>
      <dc:date>2025-07-03T17:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Explode All not exploding all</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/explode-all-not-exploding-all/m-p/13710096#M165004</link>
      <description>&lt;P&gt;More information here first would be helpful; there's already a lot of talented folks participating before I chimed in.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, if you didn't know that you could do this all from C#, perhaps it would be prudent to first exhaust the Script/LISP level of capability, before jumping to doing this all in C#. :beer:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Others may have additional questions, but I'm particularly interested to know if you're doing this on active drawing only, or multiple drawings.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the former, cull the Script/LISP from your C# plugin, save it within your SFSP and simply use them as-is (with any enhancements made here, of course) and load/call them as you would any normal Script/LISP on the active document.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If the latter, there are multiple ways to approach batch processing... the fastest I've seen, is to use Core Console to process multiple drawings in parallel.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.augi.com/showthread.php?172630-Assign-Layer-State-to-Viewport&amp;amp;p=1339054#post1339054" target="_blank" rel="noopener"&gt;Here's an example&lt;/A&gt;, using LISP + DOSLib, that loads Core Console using the active session's Profile info (code copied from a 2018 post in another forum that uses BB formatting, revise as needed):&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;(vl-load-com)

(defun c:SCRM() (c:ScriptMultiple))
(defun c:ScriptMultiple (/ app flag dwgs dwgPath script cprofile)
;;;
;;;  AcCoreConsole.exe [/i &amp;lt;input dwg&amp;gt;] /s &amp;lt;script&amp;gt;[/product &amp;lt;product&amp;gt;] [/l &amp;lt;language&amp;gt;]
;;;  [/isolate &amp;lt;userid&amp;gt; &amp;lt;userDataFolder&amp;gt;] [/readonly] [/p[rofile] &amp;lt;profile&amp;gt;] 
;;;
  (if
    (and
      (setq app (findfile "accoreconsole.exe"))
      (setq flag (dos_version))
      (setq dwgs
             (dos_getfilem
               "Select drawing(s) to process:"
               (if *Dwg_LastPath*
                 *Dwg_LastPath*
                 (getvar 'dwgprefix)
               )
               "Drawing files (*.dwg)|*.dwg||"
             )
      )
      (setq *Dwg_LastPath* (car dwgs))
      (setq dwgPath *Dwg_LastPath*)
      (setq dwgs (cdr dwgs))
      (setq script
             (dos_getfiled
               "Select a Script to run:"
               (if *Script_LastPath*
                 *Script_LastPath*
                 "[COLOR="#FF0000"]C:\\ProgramData\\Autodesk\\C3D 2019\\BatchSaveTool\\Scripts[/COLOR]"
               )
               "Script (*.scr)|*.scr||"
             )
      )
      (setq *Script_LastPath* (vl-filename-directory script))
      (setq cprofile (getvar 'cprofile))
    )
     (progn
       (foreach dwg dwgs
         (startapp
           (strcat
             "\""
             app
             "\" /i \""
             dwgPath
             dwg
             "\" /s \""
             script
             "\" /product \"[COLOR="#FF0000"]C3D[/COLOR]\" /p \""
             cprofile
             "\""
           )
         )
       )
     )
     (cond
       (dwgs (prompt "\n** No script selected ** \n"))
       (flag (prompt "\n** No drawing(s) selected ** \n"))
       (app (prompt "\n** DOSLib required ** \n"))
       ((prompt
          "\n** Unable to find \"AcCoreConsole.exe\" in support paths ** \n"
        )
       )
     )
  )
  (princ)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/net-forum/performance-issues-with-pdf-publishing-multiple-layouts-to/m-p/13699863/highlight/true#M85349" target="_blank" rel="noopener"&gt;Here's an example&lt;/A&gt;, using Windows Shell Menu from File Explorer (outside of CAD), to right click --&amp;gt; plot DWG to PDF, using Autopublish (assuming you've set that up for PDF, etc):&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1206685"&gt;@BlackBox_&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;snip&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;What takes PUBLISH (written in ARX not .NET) 30+ minutes to produce PDFs, only takes +/- 3 minutes using Core Console with this Windows Shell menu (and a lot less code! Haha):&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;EM&gt;&lt;FONT color="#999999"&gt;** The size and configuration of a plan set determine the relative time each takes&amp;nbsp;(few multi-layout drawings vs many single-layout drawings, the latter actually takes less time to process).&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;LI-CODE lang="general"&gt;Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\RightClickDwgToPdf]
@="2026 DWG to PDF"
"AppliesTo"=".dwg"
; "Icon"="C:\\Program Files\\Autodesk\\AutoCAD 2026\\accoreconsole.exe"
"HasLUAShield"=""
"Position"="Bottom"

[HKEY_CLASSES_ROOT\*\shell\RightClickDwgToPdf\command]
@="\"C:\\Program Files\\Autodesk\\AutoCAD 2026\\accoreconsole.exe\" /i \"%1\" /ld \"C:\\Program Files\\Autodesk\\AutoCAD 2026\\AecBase.dbx\" /p \"&amp;lt;YourProfileHere&amp;gt;\" /product \"C3D\" /language \"en-US\" /s \"C:\\&amp;lt;YourFilePathHere&amp;gt;\\RightClickDwgToPdf.scr\""&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's the dependent Script:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;;; reload layer state, set other sysvars
(setvar 'automaticpub 1)
(command ".QSAVE")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jul 2025 18:11:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/explode-all-not-exploding-all/m-p/13710096#M165004</guid>
      <dc:creator>BlackBox_</dc:creator>
      <dc:date>2025-07-03T18:11:17Z</dc:date>
    </item>
    <item>
      <title>Re: Explode All not exploding all</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/explode-all-not-exploding-all/m-p/13716216#M165114</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1206685"&gt;@BlackBox_&lt;/a&gt;&amp;nbsp; thank you for sending that over. I must be doing something wrong, I can't get it to run over the elements. Am I supposed to nest it in my explode command or does it completely replace my Explode command? I've tried it both ways on my end and I'm not seeing it work correctly. Would you be able to show me how it falls into my code I provided earlier?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2025 17:28:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/explode-all-not-exploding-all/m-p/13716216#M165114</guid>
      <dc:creator>sjelen</dc:creator>
      <dc:date>2025-07-08T17:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: Explode All not exploding all</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/explode-all-not-exploding-all/m-p/13716315#M165116</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12551837"&gt;@sjelen&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1206685"&gt;@BlackBox_&lt;/a&gt;&amp;nbsp; thank you for sending that over. I must be doing something wrong, I can't get it to run over the elements. Am I supposed to nest it in my explode command or does it completely replace my Explode command? I've tried it both ways on my end and I'm not seeing it work correctly. Would you be able to show me how it falls into my code I provided earlier?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;No worries; here's a working LISP (to be loading into AutoCAD directly, not pasted into your C# VS solution):&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;(defun c:JoinExtrudeAll (/ ss)
  
  ;; Set view to top
  (command "._VPOINT" "0,0,1")

  ;; Set to layer 0 to avoid lock
  (command "._-LAYER" "_s" "0" "_u" "*" "")

  ;; Try deleting A-CLNG layer
  (if (tblsearch "layer" "A-CLNG")
    (command "._-LAYDEL" "_n" "A-CLNG" "" "_y" "")
  )

  ;; First explode attempt
  (command "._EXPLODE" "ALL")

  ;; Loop to explode all Blocks
  (while (setq ss (ssget "_x" '((0 . "INSERT") (410 . "Model"))))
    (command "._explode" ss)
  )

  ;; Extrude everything
  (command "._EXTRUDE" "ALL" "" "2")
  
  ;; Save and close
  (command "._QSAVE")
  (command "._QUIT")
  (princ)
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2025 18:32:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/explode-all-not-exploding-all/m-p/13716315#M165116</guid>
      <dc:creator>BlackBox_</dc:creator>
      <dc:date>2025-07-08T18:32:00Z</dc:date>
    </item>
  </channel>
</rss>

