<?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: -laydel Not working in script file in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/laydel-not-working-in-script-file/m-p/9690263#M97724</link>
    <description>&lt;P&gt;I can't help but wonder why you're making a new Layer and giving it a color, and then immediately getting rid of it.&amp;nbsp; I could understand making it first &lt;EM&gt;if&lt;/EM&gt;&amp;nbsp; LAYDEL gives an error when you call for a non-existent Layer, but that doesn't explain giving it a color.&amp;nbsp; And it could be handled differently, checking whether it exists and then using LAYDEL only if it is in the drawing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway,&amp;nbsp;@Anonymous&amp;nbsp;'s suggestion appears to be accounting for the fact that Block names &lt;EM&gt;can have spaces in them&lt;/EM&gt;&amp;nbsp; [there was a time when they couldn't, but it's been pretty long since they could, so you'd need to be in a rather old version for the space after the name to end it].&lt;/P&gt;</description>
    <pubDate>Thu, 13 Aug 2020 19:43:03 GMT</pubDate>
    <dc:creator>Kent1Cooper</dc:creator>
    <dc:date>2020-08-13T19:43:03Z</dc:date>
    <item>
      <title>-laydel Not working in script file</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/laydel-not-working-in-script-file/m-p/9689924#M97719</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I have a create a small script file to run in Electrical project to do delete specific layer but it is not working for me.&lt;/P&gt;&lt;P&gt;I know i have made mistake in it and solution is there can u please help me?&lt;/P&gt;&lt;P&gt;find attached sample file for my script. for your info rename file format to ".scr".&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 16:35:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/laydel-not-working-in-script-file/m-p/9689924#M97719</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-13T16:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: -laydel Not working in script file</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/laydel-not-working-in-script-file/m-p/9690070#M97720</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where is the cad File, please&amp;nbsp; attach&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Hari Nair [Master From Lost Nalanda]&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.facebook.com/Software-Training-468180813743441/?modal=suggested_action&amp;amp;notif_id=1596475319494204&amp;amp;notif_t=page_user_activity&amp;amp;ref=notif" target="_blank" rel="noopener nofollow noopener noreferrer noopener noreferrer noopener noreferrer"&gt;Facebook&lt;/A&gt;|&lt;A href="https://www.youtube.com/channel/UCw0z4oN_dmioIAqGzE2yZKw" target="_blank" rel="noopener nofollow noopener noreferrer noopener noreferrer noopener noreferrer"&gt;Youtube&lt;/A&gt;|&lt;A href="http://gmail.com/" target="_blank" rel="noopener nofollow noopener noreferrer noopener noreferrer noopener noreferrer"&gt;Gmail&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 17:51:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/laydel-not-working-in-script-file/m-p/9690070#M97720</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-13T17:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: -laydel Not working in script file</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/laydel-not-working-in-script-file/m-p/9690100#M97721</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;filedia 0&lt;BR /&gt;-layer n Rev_cloud1&lt;BR /&gt;-layer c T 255,255,0 Rev_cloud1&lt;BR /&gt;-laydel n Rev_cloud1 y&lt;BR /&gt;filedia 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Hari Nair [Master From Lost Nalanda]&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.facebook.com/Software-Training-468180813743441/?modal=suggested_action&amp;amp;notif_id=1596475319494204&amp;amp;notif_t=page_user_activity&amp;amp;ref=notif" target="_blank" rel="noopener nofollow noopener noreferrer noopener noreferrer noopener noreferrer"&gt;Facebook&lt;/A&gt;|&lt;A href="https://www.youtube.com/channel/UCw0z4oN_dmioIAqGzE2yZKw" target="_blank" rel="noopener nofollow noopener noreferrer noopener noreferrer noopener noreferrer"&gt;Youtube&lt;/A&gt;|&lt;A href="http://gmail.com/" target="_blank" rel="noopener nofollow noopener noreferrer noopener noreferrer noopener noreferrer"&gt;Gmail&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 18:07:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/laydel-not-working-in-script-file/m-p/9690100#M97721</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-13T18:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: -laydel Not working in script file</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/laydel-not-working-in-script-file/m-p/9690132#M97723</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try the Text.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Hari Nair [Master From Lost Nalanda]&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.facebook.com/Software-Training-468180813743441/?modal=suggested_action&amp;amp;notif_id=1596475319494204&amp;amp;notif_t=page_user_activity&amp;amp;ref=notif" target="_blank" rel="noopener nofollow noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer"&gt;Facebook&lt;/A&gt;|&lt;A href="https://www.youtube.com/channel/UCw0z4oN_dmioIAqGzE2yZKw" target="_blank" rel="noopener nofollow noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer"&gt;Youtube&lt;/A&gt;|&lt;A href="http://gmail.com/" target="_blank" rel="noopener nofollow noopener noreferrer noopener noreferrer noopener noreferrer noopener noreferrer"&gt;Gmail&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 18:22:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/laydel-not-working-in-script-file/m-p/9690132#M97723</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-13T18:22:57Z</dc:date>
    </item>
    <item>
      <title>Re: -laydel Not working in script file</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/laydel-not-working-in-script-file/m-p/9690263#M97724</link>
      <description>&lt;P&gt;I can't help but wonder why you're making a new Layer and giving it a color, and then immediately getting rid of it.&amp;nbsp; I could understand making it first &lt;EM&gt;if&lt;/EM&gt;&amp;nbsp; LAYDEL gives an error when you call for a non-existent Layer, but that doesn't explain giving it a color.&amp;nbsp; And it could be handled differently, checking whether it exists and then using LAYDEL only if it is in the drawing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyway,&amp;nbsp;@Anonymous&amp;nbsp;'s suggestion appears to be accounting for the fact that Block names &lt;EM&gt;can have spaces in them&lt;/EM&gt;&amp;nbsp; [there was a time when they couldn't, but it's been pretty long since they could, so you'd need to be in a rather old version for the space after the name to end it].&lt;/P&gt;</description>
      <pubDate>Thu, 13 Aug 2020 19:43:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/laydel-not-working-in-script-file/m-p/9690263#M97724</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2020-08-13T19:43:03Z</dc:date>
    </item>
    <item>
      <title>Re: -laydel Not working in script file</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/laydel-not-working-in-script-file/m-p/9690981#M97725</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for reply,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I run attached file it stuck here to ask select name of layer and not execute script to end.&lt;/P&gt;&lt;P&gt;Do I need to do&amp;nbsp; extra setting for run scripte file?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="skypatel0503_1-1597386895947.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/807207iF31805E86BDC4B79/image-size/medium?v=v2&amp;amp;px=400" role="button" title="skypatel0503_1-1597386895947.png" alt="skypatel0503_1-1597386895947.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 06:36:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/laydel-not-working-in-script-file/m-p/9690981#M97725</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-14T06:36:24Z</dc:date>
    </item>
    <item>
      <title>Re: -laydel Not working in script file</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/laydel-not-working-in-script-file/m-p/9691076#M97726</link>
      <description>&lt;P&gt;Stop scripting, [edit: Stop your Try&amp;amp;Error to write a Script, do it step by step and you will solve the problem]&lt;/P&gt;
&lt;P&gt;sitting in front of autocad do the workflow (only by using the keyboard)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and write down all keystrokes.&lt;/P&gt;
&lt;P&gt;If you like to confirm your input, use ENTER, not Space.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Follow the workflow until the command ended.&lt;/P&gt;
&lt;P&gt;Then write it down as Script,&lt;/P&gt;
&lt;P&gt;instead of ENTER, make a linebreak in your script.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nothing less, nothing more.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After you run your script, press [F2] to see that all the worksteps working fine, or to see at which point it failed.&lt;/P&gt;
&lt;P&gt;In the same time you will see what to fix.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 08:03:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/laydel-not-working-in-script-file/m-p/9691076#M97726</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2020-08-14T08:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: -laydel Not working in script file</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/laydel-not-working-in-script-file/m-p/9691154#M97727</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Hari Nair [Master From Lost Nalanda]&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.facebook.com/Software-Training-468180813743441/?modal=suggested_action&amp;amp;notif_id=1596475319494204&amp;amp;notif_t=page_user_activity&amp;amp;ref=notif" target="_blank" rel="noopener nofollow noopener noreferrer noopener noreferrer noopener noreferrer"&gt;Facebook&lt;/A&gt;|&lt;A href="https://www.youtube.com/channel/UCw0z4oN_dmioIAqGzE2yZKw" target="_blank" rel="noopener nofollow noopener noreferrer noopener noreferrer noopener noreferrer"&gt;Youtube&lt;/A&gt;|&lt;A href="http://gmail.com/" target="_blank" rel="noopener nofollow noopener noreferrer noopener noreferrer noopener noreferrer"&gt;Gmail&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 08:35:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/laydel-not-working-in-script-file/m-p/9691154#M97727</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-14T08:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: -laydel Not working in script file</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/laydel-not-working-in-script-file/m-p/9691210#M97728</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;try this&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;My idea: Please test it yourself before you post it!&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;EM&gt;It is unnecessarily confusing if someone has problems sending them further incorrect answers.&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT size="2"&gt;&lt;EM&gt;(and I'm sure the scripts don't work for you either)&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-Remove file, you don't need filedia in a script, useless&lt;/P&gt;
&lt;P&gt;-Check the the part between the 2. and the 3. line, there is your first mistake&lt;/P&gt;
&lt;P&gt;(note also: You don't need to exit the -layer command between New and Color setting)&lt;/P&gt;
&lt;P&gt;- The second mistake is in line7, the is a blank where you don't need a blank.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Aug 2020 09:14:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/laydel-not-working-in-script-file/m-p/9691210#M97728</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2020-08-14T09:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: -laydel Not working in script file</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/laydel-not-working-in-script-file/m-p/9692801#M97729</link>
      <description>&lt;P&gt;Great problem solved but I noticed one think.&lt;/P&gt;&lt;P&gt;Can you please tell why did you use "_N" instead of "N"?&lt;/P&gt;&lt;P&gt;Because in AutoCAD we press simple N in command line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you again&lt;/P&gt;</description>
      <pubDate>Sat, 15 Aug 2020 03:55:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/laydel-not-working-in-script-file/m-p/9692801#M97729</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-15T03:55:29Z</dc:date>
    </item>
  </channel>
</rss>

