<?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: CHANGING LAYER PROPERTIES, IGNORING MISSING LAYERS in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/changing-layer-properties-ignoring-missing-layers/m-p/9343202#M112210</link>
    <description>&lt;P&gt;What version are you using, and/or overlay program?&amp;nbsp; I don't have [in 2019, and Help for 2020 doesn't mention, nor do I recall from earlier versions going way back] a LC option in -LAYER, and RGB is not the way to use that kind of color [it's the Color option and then beneath that the Truecolor option].&amp;nbsp; But in any case:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You don't need to make a Layer current in order to assign a color to it.&amp;nbsp; And if you do it by naming the Layer(s), and there is/are no such Layer(s), a message will go by that it didn't find it/them, but it won't crash -- it will just go back to the main prompt.&amp;nbsp; Also, you can combine all of this into &lt;EM&gt;one&lt;/EM&gt;&amp;nbsp; Layer command -- you don't need to complete the command and then start it again, but can just choose further options and carry on.&amp;nbsp; Using my kinds of command options:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-LAYER&lt;/P&gt;
&lt;P&gt;make &lt;EM&gt;&lt;FONT color="#00CCFF"&gt;; this creates it like New option, &lt;/FONT&gt;&lt;/EM&gt;&lt;STRONG&gt;&lt;FONT color="#00CCFF"&gt;and&lt;/FONT&gt;&lt;/STRONG&gt;&lt;EM&gt;&lt;FONT color="#00CCFF"&gt;&amp;nbsp;makes it current in the process -- no Set option required&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;bom&lt;/P&gt;
&lt;P&gt;color Truecolor&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;0,0,255&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;color&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Truecolor&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;0,255,255&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;cut&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;color&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Truecolor&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;255,0,255&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;etch&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;color&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Truecolor&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;255,0,0&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;display&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;color&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Truecolor&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;0,200,200&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;cut2&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Feb 2020 16:17:52 GMT</pubDate>
    <dc:creator>Kent1Cooper</dc:creator>
    <dc:date>2020-02-26T16:17:52Z</dc:date>
    <item>
      <title>CHANGING LAYER PROPERTIES, IGNORING MISSING LAYERS</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/changing-layer-properties-ignoring-missing-layers/m-p/9341069#M112208</link>
      <description>&lt;P&gt;I am workingona script routine to batch run on a large number of files.&amp;nbsp; I want it to rename a couple layers, Change layer colours and add a new layer.&amp;nbsp; I can get it to do all these things, except if a layer is missing.&amp;nbsp; The files that i am importing may not have layer 'c' but i am changing properties for layers 'a,b,c,d,e' Because the script cannot find layer 'c', it crashes the script. How do i tell the script to ignore a layer if it is missing?&amp;nbsp; below is a sample of the script.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;z&lt;/P&gt;&lt;P&gt;e&lt;/P&gt;&lt;P&gt;(if (tblsearch "LAYER" (substr (getvar 'dwgname) 1 (- (strlen (getvar 'dwgname)) 4)))&lt;/P&gt;&lt;P&gt;&amp;nbsp; (command "_rename" "_layer" (substr (getvar 'dwgname) 1 (- (strlen (getvar 'dwgname)) 4)) "cut"))&lt;/P&gt;&lt;P&gt;-rename&lt;/P&gt;&lt;P&gt;La&lt;/P&gt;&lt;P&gt;Scribe-text&lt;/P&gt;&lt;P&gt;Etch&lt;/P&gt;&lt;P&gt;-rename&lt;/P&gt;&lt;P&gt;La&lt;/P&gt;&lt;P&gt;NO KERF _ CUT _ NO LEAD-IN&lt;/P&gt;&lt;P&gt;Cut2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-la&lt;/P&gt;&lt;P&gt;n&lt;/P&gt;&lt;P&gt;bom&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-la&lt;/P&gt;&lt;P&gt;s&lt;/P&gt;&lt;P&gt;bom&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;&lt;P&gt;-la&lt;/P&gt;&lt;P&gt;lc&lt;/P&gt;&lt;P&gt;rgb&lt;/P&gt;&lt;P&gt;0,0,255&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&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lt;P&gt;0,200,200&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 20:27:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/changing-layer-properties-ignoring-missing-layers/m-p/9341069#M112208</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-02-25T20:27:18Z</dc:date>
    </item>
    <item>
      <title>Betreff: CHANGING LAYER PROPERTIES, IGNORING MISSING LAYERS</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/changing-layer-properties-ignoring-missing-layers/m-p/9341079#M112209</link>
      <description>&lt;P&gt;Without programming&lt;/P&gt;
&lt;P&gt;Create layer first&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-LAYER&lt;/P&gt;
&lt;P&gt;THAW&lt;/P&gt;
&lt;P&gt;C&lt;/P&gt;
&lt;P&gt;MAKE&lt;/P&gt;
&lt;P&gt;C&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;RENAME LAYER&lt;/P&gt;
&lt;P&gt;C&lt;/P&gt;
&lt;P&gt;newname&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2020 20:34:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/changing-layer-properties-ignoring-missing-layers/m-p/9341079#M112209</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2020-02-25T20:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: CHANGING LAYER PROPERTIES, IGNORING MISSING LAYERS</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/changing-layer-properties-ignoring-missing-layers/m-p/9343202#M112210</link>
      <description>&lt;P&gt;What version are you using, and/or overlay program?&amp;nbsp; I don't have [in 2019, and Help for 2020 doesn't mention, nor do I recall from earlier versions going way back] a LC option in -LAYER, and RGB is not the way to use that kind of color [it's the Color option and then beneath that the Truecolor option].&amp;nbsp; But in any case:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You don't need to make a Layer current in order to assign a color to it.&amp;nbsp; And if you do it by naming the Layer(s), and there is/are no such Layer(s), a message will go by that it didn't find it/them, but it won't crash -- it will just go back to the main prompt.&amp;nbsp; Also, you can combine all of this into &lt;EM&gt;one&lt;/EM&gt;&amp;nbsp; Layer command -- you don't need to complete the command and then start it again, but can just choose further options and carry on.&amp;nbsp; Using my kinds of command options:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-LAYER&lt;/P&gt;
&lt;P&gt;make &lt;EM&gt;&lt;FONT color="#00CCFF"&gt;; this creates it like New option, &lt;/FONT&gt;&lt;/EM&gt;&lt;STRONG&gt;&lt;FONT color="#00CCFF"&gt;and&lt;/FONT&gt;&lt;/STRONG&gt;&lt;EM&gt;&lt;FONT color="#00CCFF"&gt;&amp;nbsp;makes it current in the process -- no Set option required&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;bom&lt;/P&gt;
&lt;P&gt;color Truecolor&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;0,0,255&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;color&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Truecolor&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;0,255,255&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;cut&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;color&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Truecolor&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;255,0,255&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;etch&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;color&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Truecolor&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;255,0,0&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;display&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;color&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;Truecolor&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;0,200,200&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;cut2&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 16:17:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/changing-layer-properties-ignoring-missing-layers/m-p/9343202#M112210</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2020-02-26T16:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: CHANGING LAYER PROPERTIES, IGNORING MISSING LAYERS</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/changing-layer-properties-ignoring-missing-layers/m-p/9343242#M112211</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; schrieb:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-LAYER&lt;/P&gt;
&lt;P&gt;make &lt;EM&gt;&lt;FONT color="#00CCFF"&gt;; this creates it like New option, &lt;/FONT&gt;&lt;/EM&gt;&lt;STRONG&gt;&lt;FONT color="#00CCFF"&gt;and&lt;/FONT&gt;&lt;/STRONG&gt;&lt;EM&gt;&lt;FONT color="#00CCFF"&gt;&amp;nbsp;makes it current in the process -- no Set option required&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Only if the Layer is not already there &lt;U&gt;&amp;amp;freezed&lt;/U&gt;,&lt;/P&gt;
&lt;P&gt;that's why i answered with the bulletproof way, first thaw, then make:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/71745"&gt;@cadffm&lt;/a&gt;&amp;nbsp; schrieb:&lt;BR /&gt;
&lt;P&gt;Without programming&lt;/P&gt;
&lt;P&gt;Create layer first&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-LAYER&lt;/P&gt;
&lt;P&gt;THAW&lt;/P&gt;
&lt;P&gt;C&lt;/P&gt;
&lt;P&gt;MAKE&lt;/P&gt;
&lt;P&gt;C&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;RENAME LAYER&lt;/P&gt;
&lt;P&gt;C&lt;/P&gt;
&lt;P&gt;newname&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 16:27:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/changing-layer-properties-ignoring-missing-layers/m-p/9343242#M112211</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2020-02-26T16:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: CHANGING LAYER PROPERTIES, IGNORING MISSING LAYERS</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/changing-layer-properties-ignoring-missing-layers/m-p/9343570#M112212</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/71745"&gt;@cadffm&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;....&lt;SPAN style="font-family: inherit;"&gt;&amp;nbsp;first thaw, then make:&lt;/SPAN&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes, that's a good idea if it's possible that it might exist but be frozen, since a frozen Layer cannot be made current as the Make option will want to do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[Why you would Make a Layer and then immediately rename it is beyond me -- just Make it under the desired name in the first place.&amp;nbsp; But if there's some reason to do it that way, there's a Rename &lt;EM&gt;option&lt;/EM&gt;&amp;nbsp; inside the -Layer command, so you don't need to close Layer and open up a Rename &lt;EM&gt;command&lt;/EM&gt;.]&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 18:17:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/changing-layer-properties-ignoring-missing-layers/m-p/9343570#M112212</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2020-02-26T18:17:02Z</dc:date>
    </item>
    <item>
      <title>Re: CHANGING LAYER PROPERTIES, IGNORING MISSING LAYERS</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/changing-layer-properties-ignoring-missing-layers/m-p/9352453#M112213</link>
      <description>&lt;P&gt;Thanks for the help guys.&amp;nbsp; I had to have one of our programmers step in and write it up for me.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 12:34:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/changing-layer-properties-ignoring-missing-layers/m-p/9352453#M112213</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-03-02T12:34:29Z</dc:date>
    </item>
  </channel>
</rss>

