<?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: Automatic LAYDEL command in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/automatic-laydel-command/m-p/7266263#M117021</link>
    <description>&lt;P&gt;Thanks gpcattaneo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Script works well ! By the way, do you know why first drawing can't be open ? I got error&amp;nbsp;(Active drawing is first in list). But if I close that first drawing, it works fine !&lt;/P&gt;&lt;P&gt;But now I can't insert my schematic symbol drawn on layer ''revision 2''&lt;/P&gt;&lt;P&gt;I tried creating new ''revision 2'' layer and it works. But it is impossible to insert any symbol created on layer ''revision 2''.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have idea of what's happening ?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 31 Jul 2017 17:24:09 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-07-31T17:24:09Z</dc:date>
    <item>
      <title>Automatic LAYDEL command</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/automatic-laydel-command/m-p/7265850#M117019</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a script ''Deletelayer.scr'' that I wish to use to delete a particular layer on multiple drawings.&lt;/P&gt;&lt;P&gt;It looks like this:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;(command "-laydel" "_n" "Révision 2" "" "_y")&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;;end(it is important to leave this empty line)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that layer ''revision 2'' doesn't exist in every drawing so I'm looking for a solution to ignore those drawings that don't have that layer and keep deleting layer ''revision 2'' on drawings that contain it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With AutoCAD Electrical 2016, ''Projects'', ''Utilities'', I launch the script but it fails at the first drawing that doesn't contain layer ''revision 2''&lt;/P&gt;&lt;P&gt;Here is command bar result:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Command: wd_scr_msg "========== Drawing 1 of 135 =========="&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Command:&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Command: wd_prj_run_cur_dwg_oem "0" "w_keep" "c_keep" "sx_keep" "0" "" 1 nil "0" "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0" nil nil nil "0" nil&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Command:&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Command: (command "-laydel" "_n" "Révision 2" "" "_y")&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;-laydel&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Select object on layer to delete or [Name]: _n&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Enter layer name or [?]: Révision 2&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Invalid Layer name.&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Enter layer name or [?]:&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Select object on layer to delete or [Name/Undo]: _y&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;*Invalid selection*&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;Expects a point or Last/Name&lt;/EM&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;EM&gt;; error: Function cancelled&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Someone could help ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2017 15:07:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/automatic-laydel-command/m-p/7265850#M117019</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-31T15:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic LAYDEL command</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/automatic-laydel-command/m-p/7265989#M117020</link>
      <description>&lt;P&gt;Try:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(if (tblsearch "layer" "Révision 2") (command "-laydel" "_n" "Révision 2" "" "_y"))&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2017 15:49:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/automatic-laydel-command/m-p/7265989#M117020</guid>
      <dc:creator>gpcattaneo</dc:creator>
      <dc:date>2017-07-31T15:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: Automatic LAYDEL command</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/automatic-laydel-command/m-p/7266263#M117021</link>
      <description>&lt;P&gt;Thanks gpcattaneo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Script works well ! By the way, do you know why first drawing can't be open ? I got error&amp;nbsp;(Active drawing is first in list). But if I close that first drawing, it works fine !&lt;/P&gt;&lt;P&gt;But now I can't insert my schematic symbol drawn on layer ''revision 2''&lt;/P&gt;&lt;P&gt;I tried creating new ''revision 2'' layer and it works. But it is impossible to insert any symbol created on layer ''revision 2''.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have idea of what's happening ?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jul 2017 17:24:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/automatic-laydel-command/m-p/7266263#M117021</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-31T17:24:09Z</dc:date>
    </item>
  </channel>
</rss>

