<?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 Change Tag Layer (color) in a Block in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/change-tag-layer-color-in-a-block/m-p/12773533#M15840</link>
    <description>&lt;P&gt;Hi, I am working in cad files that are exported from ArchiCAD. I am able to change most of the layers to my own system, with the exception of door tags and other tags that are blocks. The tag show as this green color, even after I changed the block to my own layer, and I can't find how to change the tag to my own layer. Can someone help? Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sapiennyc_0-1715722898344.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1362299iB25FF5FD27D68CB3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sapiennyc_0-1715722898344.png" alt="sapiennyc_0-1715722898344.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 14 May 2024 21:47:02 GMT</pubDate>
    <dc:creator>sapien.nyc</dc:creator>
    <dc:date>2024-05-14T21:47:02Z</dc:date>
    <item>
      <title>Change Tag Layer (color) in a Block</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/change-tag-layer-color-in-a-block/m-p/12773533#M15840</link>
      <description>&lt;P&gt;Hi, I am working in cad files that are exported from ArchiCAD. I am able to change most of the layers to my own system, with the exception of door tags and other tags that are blocks. The tag show as this green color, even after I changed the block to my own layer, and I can't find how to change the tag to my own layer. Can someone help? Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sapiennyc_0-1715722898344.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1362299iB25FF5FD27D68CB3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sapiennyc_0-1715722898344.png" alt="sapiennyc_0-1715722898344.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 21:47:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/change-tag-layer-color-in-a-block/m-p/12773533#M15840</guid>
      <dc:creator>sapien.nyc</dc:creator>
      <dc:date>2024-05-14T21:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: Change Tag Layer (color) in a Block</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/change-tag-layer-color-in-a-block/m-p/12773539#M15841</link>
      <description>&lt;P&gt;Can you share a sample portion of the dwg with these tags and the layer name you prefer them to go onto?&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 21:50:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/change-tag-layer-color-in-a-block/m-p/12773539#M15841</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2024-05-14T21:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Change Tag Layer (color) in a Block</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/change-tag-layer-color-in-a-block/m-p/12773559#M15842</link>
      <description>&lt;P&gt;You can download a copy/paste version of it here. All the ds- layers are my layers, and all the A- layers come from ArchiCAD.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://darrenvinci.net/s/9832-sample.dwg" target="_blank"&gt;https://darrenvinci.net/s/9832-sample.dwg&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 22:04:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/change-tag-layer-color-in-a-block/m-p/12773559#M15842</guid>
      <dc:creator>sapien.nyc</dc:creator>
      <dc:date>2024-05-14T22:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Change Tag Layer (color) in a Block</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/change-tag-layer-color-in-a-block/m-p/12773631#M15843</link>
      <description>&lt;P&gt;Run the attached code and select all to change the attribute layers to match with the corresponding block layer and color to bylayer.&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 23:06:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/change-tag-layer-color-in-a-block/m-p/12773631#M15843</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2024-05-14T23:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: Change Tag Layer (color) in a Block</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/change-tag-layer-color-in-a-block/m-p/12774003#M15844</link>
      <description>&lt;P&gt;How do I run it?&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_sweat:"&gt;😅&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 04:10:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/change-tag-layer-color-in-a-block/m-p/12774003#M15844</guid>
      <dc:creator>sapien.nyc</dc:creator>
      <dc:date>2024-05-15T04:10:07Z</dc:date>
    </item>
    <item>
      <title>Re: Change Tag Layer (color) in a Block</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/change-tag-layer-color-in-a-block/m-p/12774016#M15845</link>
      <description>&lt;P&gt;Save the &lt;STRONG&gt;Attedlab.lsp&lt;/STRONG&gt; to one of the &lt;STRONG&gt;AutoCAD&lt;/STRONG&gt; &lt;STRONG&gt;Support File Search Path&lt;/STRONG&gt; found under command &lt;STRONG&gt;Options&amp;gt;Files&lt;/STRONG&gt; tab&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paullimapa_1-1715746509676.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1362401i5EB2F01382E99747/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paullimapa_1-1715746509676.png" alt="paullimapa_1-1715746509676.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then at command prompt enter:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(load"Attedlab")&lt;/LI-CODE&gt;&lt;P&gt;Then to run the command enter:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Attedlab&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ALL&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Hit &lt;STRONG&gt;Enter&lt;/STRONG&gt; (2x)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 04:16:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/change-tag-layer-color-in-a-block/m-p/12774016#M15845</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2024-05-15T04:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Change Tag Layer (color) in a Block</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/change-tag-layer-color-in-a-block/m-p/12774029#M15846</link>
      <description>&lt;P&gt;wow it did it! thank you so much&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 04:28:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/change-tag-layer-color-in-a-block/m-p/12774029#M15846</guid>
      <dc:creator>sapien.nyc</dc:creator>
      <dc:date>2024-05-15T04:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: Change Tag Layer (color) in a Block</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/change-tag-layer-color-in-a-block/m-p/12774058#M15847</link>
      <description>&lt;P&gt;glad to have helped...cheers!!!&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 04:59:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/change-tag-layer-color-in-a-block/m-p/12774058#M15847</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2024-05-15T04:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: Change Tag Layer (color) in a Block</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/change-tag-layer-color-in-a-block/m-p/12831100#M15848</link>
      <description>&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I kept working on the file's elevations. I used the LSP files you made to change the text to the layer's color and shrink their size. Great! But this time the circles of the tags are still on a different layer from the tag's layer, and each of them is a separate block! Can you help write a LSP that will change the layer of the circles to match the blocks? I placed a cloud around the drawing w/ the issue. Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1137264"&gt;@paullimapa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 23:55:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/change-tag-layer-color-in-a-block/m-p/12831100#M15848</guid>
      <dc:creator>sapien.nyc</dc:creator>
      <dc:date>2024-06-10T23:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: Change Tag Layer (color) in a Block</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/change-tag-layer-color-in-a-block/m-p/12831165#M15849</link>
      <description>&lt;P&gt;I found this lisp routine &lt;STRONG&gt;norm.lsp&lt;/STRONG&gt; that should change all the objects inside blocks to layer 0. Give this a try:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.cadtutor.net/forum/topic/962-lisp-for-changing-all-objects-in-a-block-to-layer-quot0quot/?do=findComment&amp;amp;comment=8758" target="_blank"&gt;https://www.cadtutor.net/forum/topic/962-lisp-for-changing-all-objects-in-a-block-to-layer-quot0quot/?do=findComment&amp;amp;comment=8758&lt;/A&gt;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun c:norm (/ *error* adoc lst_layer func_restore-layers)
 (defun *error* (msg)
   (func_restore-layers)
   (vla-endundomark adoc)
   (princ msg)
   (princ)
   ) ;_ end of defun

 (defun func_restore-layers ()
   (foreach item lst_layer
     (vla-put-lock (car item) (cdr (assoc "lock" (cdr item))))
     (vl-catch-all-apply
       '(lambda ()
          (vla-put-freeze (car item) (cdr (assoc "freeze" (cdr item))))
          ) ;_ end of lambda
       ) ;_ end of vl-catch-all-apply
     ) ;_ end of foreach
   ) ;_ end of defun

 (vl-load-com)
 (vla-startundomark
   (setq adoc (vla-get-activedocument (vlax-get-acad-object)))
   ) ;_ end of vla-startundomark
 (vlax-for item (vla-get-layers adoc)
   (setq lst_layer (cons (list item
                               (cons "lock" (vla-get-lock item))
                               (cons "freeze" (vla-get-freeze item))
                               ) ;_ end of list
                         lst_layer
                         ) ;_ end of cons
         ) ;_ end of setq
   (vla-put-lock item :vlax-false)
   (vl-catch-all-apply '(lambda () (vla-put-freeze item :vlax-false)))
   ) ;_ end of vlax-for
 (vlax-for blk (vla-get-blocks adoc)
   (if (and (equal (vla-get-islayout blk) :vlax-false)
            (equal (vla-get-isxref blk) :vlax-false)
            ) ;_ end of and
     (progn
       (vlax-for subent blk
         (vla-put-layer subent "0")
         (vla-put-color subent 0)
         (vla-put-lineweight subent aclnwtbyblock)
         (vla-put-linetype subent "byblock")
         ) ;_ end of vlax-for
       ) ;_ end of progn
     ) ;_ end of if
   ) ;_ end of vlax-for
 (func_restore-layers)
 (vla-endundomark adoc)
 (princ)
 ) ;_ end of defun&lt;/LI-CODE&gt;&lt;P&gt;Before running &lt;STRONG&gt;norm.lsp&lt;/STRONG&gt; this is how your tag's with circles look like:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paullimapa_0-1718067860485.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1374303i8CEFB133A8B6A529/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paullimapa_0-1718067860485.png" alt="paullimapa_0-1718067860485.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;After running &lt;STRONG&gt;norm.lsp&lt;/STRONG&gt; this is now the look after a &lt;STRONG&gt;REGEN&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="paullimapa_1-1718067930170.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1374304i63B319F56E57FAC7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="paullimapa_1-1718067930170.png" alt="paullimapa_1-1718067930170.png" /&gt;&lt;/span&gt;&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>Tue, 11 Jun 2024 01:05:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/change-tag-layer-color-in-a-block/m-p/12831165#M15849</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2024-06-11T01:05:57Z</dc:date>
    </item>
    <item>
      <title>Re: Change Tag Layer (color) in a Block</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/change-tag-layer-color-in-a-block/m-p/12831235#M15850</link>
      <description>&lt;P&gt;Worked as usual. You are awesome!&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 02:09:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/change-tag-layer-color-in-a-block/m-p/12831235#M15850</guid>
      <dc:creator>sapien.nyc</dc:creator>
      <dc:date>2024-06-11T02:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: Change Tag Layer (color) in a Block</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/change-tag-layer-color-in-a-block/m-p/12831237#M15851</link>
      <description>&lt;P&gt;glad to have helped again...cheers!!!&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2024 02:11:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/change-tag-layer-color-in-a-block/m-p/12831237#M15851</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2024-06-11T02:11:27Z</dc:date>
    </item>
  </channel>
</rss>

