<?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: Closed Layer(s) Delete in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-needed-to-delete-off-layers-with-or-without-content-on/m-p/10655881#M54540</link>
    <description>&lt;DIV style="box-shadow: 8px 8px; font-size: 12px; font-style: italic; color: #336699; font-family: verdana; margin: 5px 50px 25px 50px; padding: 8px; border: 1px dotted #336699;"&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/537692"&gt;@k005&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;No, it's not empty. It's just off. There is no merging.&lt;/P&gt;
&lt;P&gt;I want to delete the closed ones.&lt;/P&gt;
&lt;/DIV&gt;
&lt;DIV style="font-size: 1.1em; font-family: 'ArtifaktElement'; line-height: 1.3em; margin: 15px 100px 80px 100px;"&gt;
&lt;P&gt;It depends.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Typically, you can't delete layers with object on them, but the LAYDEL command can do it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another alternative,&amp;nbsp;lets say you have 200 layers, and you want to get rid of 193 of them. It might be easier in this case to (again, presuming the 193 layers are OFF) - use the WBLOCK command to WBLOCK out the visible objects on the 7 remaining layers to a new DWG file. Then open that new DWG file. Boom. Done.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Wed, 29 Sep 2021 18:19:54 GMT</pubDate>
    <dc:creator>rkmcswain</dc:creator>
    <dc:date>2021-09-29T18:19:54Z</dc:date>
    <item>
      <title>LISP needed to delete OFF layers (with or without content on those layers)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-needed-to-delete-off-layers-with-or-without-content-on/m-p/10655763#M54536</link>
      <description>&lt;P&gt;Hi All;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I delete &lt;STRIKE&gt;closed&lt;/STRIKE&gt;&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;OFF&lt;/STRONG&gt;&lt;/EM&gt; layers?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;***POST TITLE AND BODY EDITED FOR CLARITY***&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2021 18:20:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-needed-to-delete-off-layers-with-or-without-content-on/m-p/10655763#M54536</guid>
      <dc:creator>k005</dc:creator>
      <dc:date>2021-09-29T18:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: Closed Layer(s) Delete</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-needed-to-delete-off-layers-with-or-without-content-on/m-p/10655792#M54537</link>
      <description>&lt;P&gt;What do you mean by closed layers? Do you mean empty layers?&lt;/P&gt;
&lt;P&gt;Use the &lt;A style="color: blue; border-bottom: 1px solid blue; font-weight: 300;" href="https://help.autodesk.com/view/ACD/2022/ENU/?guid=GUID-D68BA47B-A79D-4F58-9715-0569CC24BCEF" target="_blank" rel="noopener"&gt;PURGE&lt;/A&gt; command.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the layer is not empty, then use the &lt;A style="color: blue; border-bottom: 1px solid blue; font-weight: 300;" href="https://help.autodesk.com/view/ACD/2022/ENU/?guid=GUID-7D66940F-EC67-4DEC-89BC-82B887EABD6E" target="_blank" rel="noopener"&gt;LAYMRG&lt;/A&gt; command to merge all objects on that layer to some other existing layer.&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>Wed, 29 Sep 2021 17:42:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-needed-to-delete-off-layers-with-or-without-content-on/m-p/10655792#M54537</guid>
      <dc:creator>rkmcswain</dc:creator>
      <dc:date>2021-09-29T17:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Closed Layer(s) Delete</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-needed-to-delete-off-layers-with-or-without-content-on/m-p/10655796#M54538</link>
      <description>&lt;P&gt;No, it's not empty. It's just off. There is no merging.&lt;/P&gt;&lt;P&gt;I want to delete the closed ones.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2021 17:43:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-needed-to-delete-off-layers-with-or-without-content-on/m-p/10655796#M54538</guid>
      <dc:creator>k005</dc:creator>
      <dc:date>2021-09-29T17:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: Closed Layer(s) Delete</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-needed-to-delete-off-layers-with-or-without-content-on/m-p/10655803#M54539</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/537692"&gt;@k005&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi All;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I delete closed layers?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT size="3"&gt;Not sure what that is? Unused layers? Closed polylines on a specific layer? Layers that are currently off/Frozen?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;How did the barber win the race?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2021 17:46:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-needed-to-delete-off-layers-with-or-without-content-on/m-p/10655803#M54539</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2021-09-29T17:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: Closed Layer(s) Delete</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-needed-to-delete-off-layers-with-or-without-content-on/m-p/10655881#M54540</link>
      <description>&lt;DIV style="box-shadow: 8px 8px; font-size: 12px; font-style: italic; color: #336699; font-family: verdana; margin: 5px 50px 25px 50px; padding: 8px; border: 1px dotted #336699;"&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/537692"&gt;@k005&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;No, it's not empty. It's just off. There is no merging.&lt;/P&gt;
&lt;P&gt;I want to delete the closed ones.&lt;/P&gt;
&lt;/DIV&gt;
&lt;DIV style="font-size: 1.1em; font-family: 'ArtifaktElement'; line-height: 1.3em; margin: 15px 100px 80px 100px;"&gt;
&lt;P&gt;It depends.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Typically, you can't delete layers with object on them, but the LAYDEL command can do it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another alternative,&amp;nbsp;lets say you have 200 layers, and you want to get rid of 193 of them. It might be easier in this case to (again, presuming the 193 layers are OFF) - use the WBLOCK command to WBLOCK out the visible objects on the 7 remaining layers to a new DWG file. Then open that new DWG file. Boom. Done.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 29 Sep 2021 18:19:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-needed-to-delete-off-layers-with-or-without-content-on/m-p/10655881#M54540</guid>
      <dc:creator>rkmcswain</dc:creator>
      <dc:date>2021-09-29T18:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: LISP needed to delete OFF layers (with or without content on those layers)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-needed-to-delete-off-layers-with-or-without-content-on/m-p/10655886#M54541</link>
      <description>&lt;P&gt;Oh, few, if anyone here is going to know that "empty" means "off".&lt;/P&gt;
&lt;P&gt;"Off" or "Frozen" are the correct terms in the Autodesk world.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2021 18:20:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-needed-to-delete-off-layers-with-or-without-content-on/m-p/10655886#M54541</guid>
      <dc:creator>rkmcswain</dc:creator>
      <dc:date>2021-09-29T18:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: LISP needed to delete OFF layers (with or without content on those layers)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-needed-to-delete-off-layers-with-or-without-content-on/m-p/10656010#M54542</link>
      <description>&lt;P&gt;Whoa&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/37212"&gt;@pendean&lt;/a&gt;&amp;nbsp;- when did you get these super powers ?!?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2021 19:09:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-needed-to-delete-off-layers-with-or-without-content-on/m-p/10656010#M54542</guid>
      <dc:creator>rkmcswain</dc:creator>
      <dc:date>2021-09-29T19:09:18Z</dc:date>
    </item>
    <item>
      <title>Re: Closed Layer(s) Delete</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-needed-to-delete-off-layers-with-or-without-content-on/m-p/10656055#M54543</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/564264"&gt;@pbejse&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I turned the layers off.&lt;/P&gt;&lt;P&gt;Here is a situation. This dwg file is a block. Therefore, if I delete the closed layers, when I call the blog to another place, unnecessary layers do not appear.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2021 19:23:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-needed-to-delete-off-layers-with-or-without-content-on/m-p/10656055#M54543</guid>
      <dc:creator>k005</dc:creator>
      <dc:date>2021-09-29T19:23:44Z</dc:date>
    </item>
    <item>
      <title>Re: Closed Layer(s) Delete</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-needed-to-delete-off-layers-with-or-without-content-on/m-p/10656058#M54544</link>
      <description>&lt;P&gt;Yes . It can be this way. But I want to solve this in one go... if possible.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Sep 2021 19:44:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-needed-to-delete-off-layers-with-or-without-content-on/m-p/10656058#M54544</guid>
      <dc:creator>k005</dc:creator>
      <dc:date>2021-09-29T19:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: Closed Layer(s) Delete</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-needed-to-delete-off-layers-with-or-without-content-on/m-p/10658332#M54545</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/537692"&gt;@k005&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I turned the layers off.&lt;/P&gt;
&lt;P&gt;Here is a situation. This dwg file is a block. Therefore, if I delete the closed layers, when I call the blog to another place, unnecessary layers do not appear.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;FONT size="3"&gt;Not sure i understand that&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/537692"&gt;@k005&lt;/a&gt;. The layers that are off is part of the block, you export the block [ with objects on the off layer ] to another file or drawing but only those are shown on screen? meaning delete the objects on "off"&amp;nbsp; layers from that block?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 15:34:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-needed-to-delete-off-layers-with-or-without-content-on/m-p/10658332#M54545</guid>
      <dc:creator>pbejse</dc:creator>
      <dc:date>2021-09-30T15:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: LISP needed to delete OFF layers (with or without content on those layers)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-needed-to-delete-off-layers-with-or-without-content-on/m-p/10658387#M54546</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/537692"&gt;@k005&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;P&gt;How can I delete &lt;STRIKE&gt;closed&lt;/STRIKE&gt;&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;OFF&lt;/STRONG&gt;&lt;/EM&gt; layers?&lt;/P&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;LI-CODE lang="general"&gt;(defun C:LAYOFFDEL (/ lay lname)
  (while (setq lay (tblnext "layer" (not lay)))
    (if
      (and
        (not (wcmatch (setq lname (cdr (assoc 2 lay))) "0,Defpoints"))
        (minusp (cdr (assoc 62 lay))); turned off
      ); and
      (command "_.laydel" "_name" lname "" "_yes")
    ); if
  ); while
  (princ)
); defun&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 30 Sep 2021 15:59:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-needed-to-delete-off-layers-with-or-without-content-on/m-p/10658387#M54546</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2021-09-30T15:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: LISP needed to delete OFF layers (with or without content on those layers)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-needed-to-delete-off-layers-with-or-without-content-on/m-p/10658498#M54547</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;wrote:
&lt;P class="1633019813420"&gt;&lt;SPAN style="font-family: inherit;"&gt;....&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;....
        (minusp (cdr (assoc 62 lay))); turned off
....&lt;/LI-CODE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;That will delete only Layers that are turned &lt;EM&gt;off&lt;/EM&gt;.&amp;nbsp; If you want to do the same with Layers that are on but&amp;nbsp;&lt;EM&gt;frozen&lt;/EM&gt;, that can also be done.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 16:38:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-needed-to-delete-off-layers-with-or-without-content-on/m-p/10658498#M54547</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2021-09-30T16:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: Closed Layer(s) Delete</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-needed-to-delete-off-layers-with-or-without-content-on/m-p/10658512#M54548</link>
      <description>&lt;P&gt;my friend ; The scenario is as follows;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I create a part of the dwg file as a Block,, I get...&lt;/P&gt;&lt;P&gt;I open and edit this created file. Without changing the reference point.&lt;/P&gt;&lt;P&gt;edit ; I turn off unnecessary layers. Therefore, it is necessary to delete the closed ones. Because it's not necessary. If I don't delete it, the dwg I call also creates a problem.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 16:44:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-needed-to-delete-off-layers-with-or-without-content-on/m-p/10658512#M54548</guid>
      <dc:creator>k005</dc:creator>
      <dc:date>2021-09-30T16:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: LISP needed to delete OFF layers (with or without content on those layers)</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-needed-to-delete-off-layers-with-or-without-content-on/m-p/10658536#M54549</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/69526"&gt;@Kent1Cooper&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes. That's exactly it.&lt;/P&gt;&lt;P&gt;Thank you very much. OK.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Sep 2021 16:50:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-needed-to-delete-off-layers-with-or-without-content-on/m-p/10658536#M54549</guid>
      <dc:creator>k005</dc:creator>
      <dc:date>2021-09-30T16:50:59Z</dc:date>
    </item>
  </channel>
</rss>

