<?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: Allow exploding outside the block editor in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/allow-exploding-outside-the-block-editor/m-p/7742104#M109338</link>
    <description>&lt;P&gt;Both snippets I posted are LISP and both will work on Window.&lt;/P&gt;
&lt;P&gt;Just replace 'blockName' with the block name.&lt;/P&gt;</description>
    <pubDate>Thu, 01 Feb 2018 07:58:48 GMT</pubDate>
    <dc:creator>_gile</dc:creator>
    <dc:date>2018-02-01T07:58:48Z</dc:date>
    <item>
      <title>Allow exploding outside the block editor</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/allow-exploding-outside-the-block-editor/m-p/7741916#M109334</link>
      <description>&lt;P&gt;i need to change the properties&amp;nbsp; (allow exploding "yes" "no") of block outside the block editor&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 06:33:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/allow-exploding-outside-the-block-editor/m-p/7741916#M109334</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-01T06:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Allow exploding outside the block editor</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/allow-exploding-outside-the-block-editor/m-p/7741976#M109335</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can change the Explodable ActiveX property of the block definition:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(setq doc (vla-get-Activedocument (vlax-get-acad-object)))&lt;BR /&gt;(vla-put-Explodable (vla-Item (vla-get-Blocks doc)  blockName) :vlax-true)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 07:23:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/allow-exploding-outside-the-block-editor/m-p/7741976#M109335</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2018-02-01T07:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: Allow exploding outside the block editor</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/allow-exploding-outside-the-block-editor/m-p/7741997#M109336</link>
      <description>&lt;P&gt;Another way using entmod (this one should also work with MAC)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(setq dxf (entget (cdr (assoc 330 (entget (tblobjname "block" blockName))))))
(entmod (subst '(280 . 1) (assoc 280 dxf) dxf))&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Feb 2018 07:21:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/allow-exploding-outside-the-block-editor/m-p/7741997#M109336</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2018-02-01T07:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: Allow exploding outside the block editor</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/allow-exploding-outside-the-block-editor/m-p/7742044#M109337</link>
      <description>&lt;P&gt;IT IS WINDOWS&lt;/P&gt;&lt;P&gt;HOW IT WILL WORK&lt;/P&gt;&lt;P&gt;NO IDEA&lt;/P&gt;&lt;P&gt;ITS NOT LISP&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 07:34:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/allow-exploding-outside-the-block-editor/m-p/7742044#M109337</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-01T07:34:47Z</dc:date>
    </item>
    <item>
      <title>Re: Allow exploding outside the block editor</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/allow-exploding-outside-the-block-editor/m-p/7742104#M109338</link>
      <description>&lt;P&gt;Both snippets I posted are LISP and both will work on Window.&lt;/P&gt;
&lt;P&gt;Just replace 'blockName' with the block name.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 07:58:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/allow-exploding-outside-the-block-editor/m-p/7742104#M109338</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2018-02-01T07:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: Allow exploding outside the block editor</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/allow-exploding-outside-the-block-editor/m-p/7742193#M109339</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;I thought you were asking for help to write a routine by yourself.&lt;BR /&gt;Looks like you're hoping for a ready-made program instead.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun c:SETEXP (/ name blk btr expl opt)
  (while
    (not
      (and
        (setq name (getstring "\nEnter the block name: "))
        (setq blk (tblobjname "block" name))
      )
    )
     (prompt (strcat "\nBlock '" name "' not found"))
  )
  (setq btr  (entget (cdr (assoc 330 (entget blk))))
        expl (cdr (assoc 280 btr))
  )
  (initget "Yes No")
  (if (setq opt (getkword
                  (strcat "\nSet explodable [Yes/No] &amp;lt;"
                          (if (= 0 expl)
                            "No"
                            "Yes"
                          )
                          "&amp;gt;: "
                  )
                )
      )
    (if (= opt "Yes")
      (if (= 0 expl)
        (entmod (subst '(280 . 1) (assoc 280 btr) btr))
      )
      (if (= 1 expl)
        (entmod (subst '(280 . 0) (assoc 280 btr) btr))
      )
    )
  )
  (princ)
)&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Feb 2018 08:44:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/allow-exploding-outside-the-block-editor/m-p/7742193#M109339</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2018-02-01T08:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Allow exploding outside the block editor</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/allow-exploding-outside-the-block-editor/m-p/7742819#M109340</link>
      <description>&lt;P&gt;waw&lt;/P&gt;&lt;P&gt;its really i am asking&lt;/P&gt;&lt;P&gt;can you modify it-like select multiple block instead of asking the block name&lt;/P&gt;</description>
      <pubDate>Thu, 01 Feb 2018 12:52:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/allow-exploding-outside-the-block-editor/m-p/7742819#M109340</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-01T12:52:21Z</dc:date>
    </item>
    <item>
      <title>Re: Allow exploding outside the block editor</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/allow-exploding-outside-the-block-editor/m-p/7742944#M109341</link>
      <description>&lt;PRE&gt;(defun c:SETEXP (/ distinct setExplodable ss opt i lst)
  
  (defun distinct (l)
    (if l
      (cons (car l) (distinct (vl-remove (car l) l)))
    )
  )
  
  (defun setExplodable (name opt / btr)
    (setq btr (entget (cdr (assoc 330 (entget (tblobjname "block" name))))))
    (entmod (subst (cons 280 opt) (assoc 280 btr) btr))
  )
  
  (if (setq ss (ssget '((0 . "INSERT"))))
    (progn
      (initget 1 "Yes No")
      (setq opt (if (= (getkword "\nSet explodable [Yes/No]: ") "Yes")
                  1
                  0
                )
      )
      (repeat (setq i (sslength ss))
        (setq lst (cons (cdr (assoc 2 (entget (ssname ss (setq i (1- i)))))) lst))
      )
      (foreach n (distinct lst)
        (setExplodable n opt)
      )
    )
  )
  (princ)
)&lt;/PRE&gt;</description>
      <pubDate>Thu, 01 Feb 2018 13:25:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/allow-exploding-outside-the-block-editor/m-p/7742944#M109341</guid>
      <dc:creator>_gile</dc:creator>
      <dc:date>2018-02-01T13:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Allow exploding outside the block editor</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/allow-exploding-outside-the-block-editor/m-p/8228483#M109342</link>
      <description>&lt;P&gt;Excellent, thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Aug 2018 00:08:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/allow-exploding-outside-the-block-editor/m-p/8228483#M109342</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-28T00:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: Allow exploding outside the block editor</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/allow-exploding-outside-the-block-editor/m-p/12977504#M109343</link>
      <description>&lt;P&gt;That is brilliant! Thanks so much. This is going to help me A LOT. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Aug 2024 15:44:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/allow-exploding-outside-the-block-editor/m-p/12977504#M109343</guid>
      <dc:creator>jzweygardt</dc:creator>
      <dc:date>2024-08-23T15:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Allow exploding outside the block editor</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/allow-exploding-outside-the-block-editor/m-p/12982050#M109344</link>
      <description>&lt;P&gt;Just curious, what would it take to modify this so it automatically selects all the blocks and makes them explodeable?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2024 16:57:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/allow-exploding-outside-the-block-editor/m-p/12982050#M109344</guid>
      <dc:creator>jzweygardt</dc:creator>
      <dc:date>2024-08-26T16:57:31Z</dc:date>
    </item>
  </channel>
</rss>

