<?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 LAYFRZ except for changing layer color?? in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/layfrz-except-for-changing-layer-color/m-p/8784356#M139959</link>
    <description>&lt;P&gt;Right now my workflow for changing the color of a layer nested within an xref is to use xlist to find the layer, search the layer in the layer menu, and then change the color from there. Is there a faster way to change a nested layer's color?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm thinking of a command that allows you to select an object (including nested within xrefs) and brings up the color dialogue for that layer, essentially functioning the same way as LAYFRZ.&amp;nbsp; If not, would this be possible to create with a LISP routine? I've never created a LISP routine before, but it may be worth the time investment for me to be able to accomplish this.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 10 May 2019 21:00:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-05-10T21:00:00Z</dc:date>
    <item>
      <title>LAYFRZ except for changing layer color??</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/layfrz-except-for-changing-layer-color/m-p/8784356#M139959</link>
      <description>&lt;P&gt;Right now my workflow for changing the color of a layer nested within an xref is to use xlist to find the layer, search the layer in the layer menu, and then change the color from there. Is there a faster way to change a nested layer's color?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm thinking of a command that allows you to select an object (including nested within xrefs) and brings up the color dialogue for that layer, essentially functioning the same way as LAYFRZ.&amp;nbsp; If not, would this be possible to create with a LISP routine? I've never created a LISP routine before, but it may be worth the time investment for me to be able to accomplish this.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 21:00:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/layfrz-except-for-changing-layer-color/m-p/8784356#M139959</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-10T21:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: LAYFRZ except for changing layer color??</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/layfrz-except-for-changing-layer-color/m-p/8784742#M139960</link>
      <description>&lt;P&gt;Yes, that's exactly task for a LISP routine. And yes, it worth some time spending to learn at least some basics.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun c:XLayerColor (/ e l c)
  
  (if (and (setq e (car (nentsel "\nSelect nested entity: ")))
	   (setq l (cdr (assoc 8 (entget e))))
	   (princ (strcat "\nSelected LAYER: " l))
	   (not (terpri))
	   (setq c (cdr (assoc 62 (tblsearch "LAYER" l))))
	   (setq c (acad_colordlg c nil))
	   )
    (command "_.-layer" "_color" c l ""))
  (princ)
  )&lt;/PRE&gt;
&lt;P&gt;&lt;A href="http://www.lee-mac.com/runlisp.html" target="_blank" rel="noopener"&gt;HERE&lt;/A&gt;&amp;nbsp;is a tutorial how to use LISP.&lt;/P&gt;</description>
      <pubDate>Sat, 11 May 2019 07:41:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/layfrz-except-for-changing-layer-color/m-p/8784742#M139960</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2019-05-11T07:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: LAYFRZ except for changing layer color??</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/layfrz-except-for-changing-layer-color/m-p/8787719#M139961</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365"&gt;@ВeekeeCZ&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;PRE&gt;....&lt;BR /&gt;  (if (and (setq e (car (nentsel "\nSelect nested entity: ")))
	   (setq l (cdr (assoc 8 (entget e))))
	   (princ (strcat "\nSelected LAYER: " l))
....&lt;/PRE&gt;
&lt;P&gt;&lt;A href="http://www.lee-mac.com/runlisp.html" target="_blank" rel="noopener"&gt;...&lt;/A&gt;.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One thing to be careful of:&amp;nbsp; The (nentsel) function "sees" the &lt;EM&gt;deepest-nested level&lt;/EM&gt;&amp;nbsp; of the selected object or nested object.&amp;nbsp; So if you pick on a &lt;EM&gt;Block&lt;/EM&gt; &amp;nbsp;in an Xref, or a Block nested in another Block nested in another Block in an Xref, and the piece of the down-at-the-lowest-level Block on which you pick was originally drawn on Layer 0, what this will do is to change the color of Layer 0, &lt;EM&gt;not&lt;/EM&gt;&amp;nbsp; of the "apparent" Layer on which that Block was inserted.&amp;nbsp; And since Layer 0 is a universalized one [i.e. there's never a&amp;nbsp;nested-in-Xref Layer named YourXrefName&lt;FONT size="4"&gt;|&lt;/FONT&gt;0], it will change the color of Layer 0 &lt;EM&gt;in the current drawing&lt;/EM&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If that could be a concern, it is possible to "step up" in that situation until it encounters a Layer on which something is inserted that &lt;EM&gt;isn't&lt;/EM&gt;&amp;nbsp; 0, and change that one's color instead -- it's in the commands whose names end with &lt;FONT color="#000000"&gt;&lt;STRONG&gt;N&lt;/STRONG&gt;&lt;/FONT&gt; [for &lt;FONT color="#000000"&gt;&lt;STRONG&gt;N&lt;/STRONG&gt;&lt;/FONT&gt;ested] in &lt;FONT color="#000000"&gt;&lt;STRONG&gt;LayerQuellPick.lsp&lt;/STRONG&gt;&lt;/FONT&gt;, &lt;A href="https://cadtips.cadalyst.com/layer-properties/quickly-freeze-and-turn-layers" target="_blank" rel="noopener"&gt;&amp;gt;here&amp;lt;&lt;/A&gt;.&amp;nbsp; You could alter those commands to change the color rather than to turn Off or Freeze.&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 15:20:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/layfrz-except-for-changing-layer-color/m-p/8787719#M139961</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2019-05-13T15:20:14Z</dc:date>
    </item>
  </channel>
</rss>

