<?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: Creating multiple duplicate layers in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/creating-multiple-duplicate-layers/m-p/12517431#M22539</link>
    <description>&lt;P&gt;Two tips.&lt;/P&gt;
&lt;P&gt;If you have a few of them, a nice trick is to rename the layer (F2 could help) and confirm the name by , (comma) instead of enter.&lt;/P&gt;
&lt;P&gt;If you have plenty of layers to rename, open another copy of your file, use Rename, and then copy objects back to the main drawing and remove them (or Design Center to copy just layers).&lt;/P&gt;</description>
    <pubDate>Wed, 24 Jan 2024 10:17:38 GMT</pubDate>
    <dc:creator>ВeekeeCZ</dc:creator>
    <dc:date>2024-01-24T10:17:38Z</dc:date>
    <item>
      <title>Creating multiple duplicate layers</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/creating-multiple-duplicate-layers/m-p/12515973#M22537</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;Is there a way to duplicate a group of layers in the layer manager? And if yes, what is the best way to update the layer name text for these duplicate layers at the same time with the same change? What I'm trying to do is copy all the layers I've highlighted in the image attached and then change out the text that says, "CS301" to "CS302".&amp;nbsp; Thanks in advance for the help.&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="layers.JPG" style="width: 528px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1317461iC7741BF262EDA57E/image-size/large?v=v2&amp;amp;px=999" role="button" title="layers.JPG" alt="layers.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 16:41:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/creating-multiple-duplicate-layers/m-p/12515973#M22537</guid>
      <dc:creator>lbellino4</dc:creator>
      <dc:date>2024-01-23T16:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: Creating multiple duplicate layers</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/creating-multiple-duplicate-layers/m-p/12516119#M22538</link>
      <description>&lt;P&gt;The following is a kludge but it works.&amp;nbsp; I'm sure that someone can offer a more straightforward solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first task is to get a list of the layer names you want to create.&amp;nbsp; To do this you can give the&lt;STRONG&gt; -layer&lt;/STRONG&gt; command followed by&lt;STRONG&gt; ?&lt;/STRONG&gt; then &lt;STRONG&gt;*&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;For example,&amp;nbsp; if your drawing contains layers layer1 through layer5 the result would look like this.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="leeminardi_0-1706032242685.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1317483i3C6727E89B256BC7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="leeminardi_0-1706032242685.png" alt="leeminardi_0-1706032242685.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Let's say that you would like to create new layers named "LayerNew1" though "LayerNew5".&lt;/P&gt;&lt;P&gt;Select and copy to the clipboard the 5 lines containing the layer properties and paste them into MS Word or Notepad++. Use the Replace function to make your changes to the layer names.&amp;nbsp; For exaple, replace "er" with "erNew". Now position the cursor before the quote mark " of the first line and hold down the Alt key. Then drag down selecting just the names of the layers you want to duplicate.&amp;nbsp; Holding down the Alt key enables the partial selection of a row.&amp;nbsp; Use Ctrl-C to copy the selected text to the clipboard.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="leeminardi_2-1706032845479.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1317488i3B5332D90CB59FE3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="leeminardi_2-1706032845479.png" alt="leeminardi_2-1706032845479.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In AutoCAD type the follwing and then give Ctrl_V to paste the names for the new layers.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(setq a (list &lt;/LI-CODE&gt;&lt;P&gt;Finish this step with two closing parantheses )).&lt;/P&gt;&lt;P&gt;Now run the lisp program MakeLayers&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun c:MakeLayers (/ n i)
  (setq	n (length a)
	i 0
  )
  (while (&amp;lt; i n)
    (command "-layer" "m" (nth i a) "")
    (setq i (+ i 1))
  )
  (princ)
)&lt;/LI-CODE&gt;&lt;P&gt;Enjoy!&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;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jan 2024 18:09:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/creating-multiple-duplicate-layers/m-p/12516119#M22538</guid>
      <dc:creator>leeminardi</dc:creator>
      <dc:date>2024-01-23T18:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: Creating multiple duplicate layers</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/creating-multiple-duplicate-layers/m-p/12517431#M22539</link>
      <description>&lt;P&gt;Two tips.&lt;/P&gt;
&lt;P&gt;If you have a few of them, a nice trick is to rename the layer (F2 could help) and confirm the name by , (comma) instead of enter.&lt;/P&gt;
&lt;P&gt;If you have plenty of layers to rename, open another copy of your file, use Rename, and then copy objects back to the main drawing and remove them (or Design Center to copy just layers).&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2024 10:17:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/creating-multiple-duplicate-layers/m-p/12517431#M22539</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2024-01-24T10:17:38Z</dc:date>
    </item>
  </channel>
</rss>

