<?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: How to select all objects on a particular layer in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/how-to-select-all-objects-on-a-particular-layer/m-p/5504388#M340433</link>
    <description>&lt;P&gt;Use QSELECT to select all object in a layer, then use pull-down layer toolbar to change their layer in one go.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/153749i0D251577AC3B083B/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="Capture.PNG" title="Capture.PNG" /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Feb 2015 05:10:53 GMT</pubDate>
    <dc:creator>3wood</dc:creator>
    <dc:date>2015-02-12T05:10:53Z</dc:date>
    <item>
      <title>How to select all objects on a particular layer</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-select-all-objects-on-a-particular-layer/m-p/5503882#M340431</link>
      <description>&lt;P&gt;I want to move all objects from one layer to another.&lt;/P&gt;&lt;P&gt;How do I go about that?&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2015 19:54:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-select-all-objects-on-a-particular-layer/m-p/5503882#M340431</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-11T19:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to select all objects on a particular layer</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-select-all-objects-on-a-particular-layer/m-p/5503894#M340432</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;I want to move all objects from one layer to another.&lt;/P&gt;
&lt;P&gt;How do I go about that?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;One simple way [among many possibilities]:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;(command&lt;/P&gt;
&lt;P&gt;&amp;nbsp; "_.chprop"&lt;/P&gt;
&lt;P&gt;&amp;nbsp; (ssget "_X" (list (cons 8 "&lt;EM&gt;&lt;FONT color="#00ccff"&gt;YourSourceLayerNa&lt;/FONT&gt;&lt;FONT color="#00ccff"&gt;m&lt;/FONT&gt;&lt;FONT color="#00ccff"&gt;e&lt;/FONT&gt;&lt;/EM&gt;")))&lt;FONT color="#ff00ff"&gt;; find everything on the Layer&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; "" &lt;FONT color="#ff00ff"&gt;; complete selection&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; "_layer"&lt;/P&gt;
&lt;P&gt;&amp;nbsp; "&lt;FONT color="#00ccff"&gt;&lt;EM&gt;YourTargetLayerName&lt;/EM&gt;&lt;/FONT&gt;"&lt;/P&gt;
&lt;P&gt;&amp;nbsp; "" &lt;FONT color="#ff00ff"&gt;; end Chprop command&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;); command&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That assumes the source Layer is not locked.&amp;nbsp; And it does only things in the current space, but if you want things in &lt;EM&gt;all&lt;/EM&gt; spaces [Model and all Paper-space Layouts], that is also possible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you don't need it automated, QSELECT and the Properties box will do the same for you with no routine, and hardly any more effort on the User's part.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or, if you want to completely remove the source Layer from the drawing, use LAYMRG.&lt;/P&gt;</description>
      <pubDate>Wed, 11 Feb 2015 20:03:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-select-all-objects-on-a-particular-layer/m-p/5503894#M340432</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2015-02-11T20:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to select all objects on a particular layer</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-select-all-objects-on-a-particular-layer/m-p/5504388#M340433</link>
      <description>&lt;P&gt;Use QSELECT to select all object in a layer, then use pull-down layer toolbar to change their layer in one go.&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://forums.autodesk.com/t5/image/serverpage/image-id/153749i0D251577AC3B083B/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="Capture.PNG" title="Capture.PNG" /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Feb 2015 05:10:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-select-all-objects-on-a-particular-layer/m-p/5504388#M340433</guid>
      <dc:creator>3wood</dc:creator>
      <dc:date>2015-02-12T05:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to select all objects on a particular layer</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-select-all-objects-on-a-particular-layer/m-p/5505838#M340434</link>
      <description>&lt;P&gt;Thank you to you both. "qselect" was exactly what I was looking for.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Feb 2015 02:10:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-select-all-objects-on-a-particular-layer/m-p/5505838#M340434</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-02-13T02:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to select all objects on a particular layer</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-select-all-objects-on-a-particular-layer/m-p/6744502#M340435</link>
      <description>&lt;P&gt;Hi, could you translate this code to vba&amp;nbsp;please? Thanks in advance. I hope you could.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2016 21:32:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-select-all-objects-on-a-particular-layer/m-p/6744502#M340435</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-12T21:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to select all objects on a particular layer</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-select-all-objects-on-a-particular-layer/m-p/6744557#M340436</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;P&gt;Hi, could you translate this code to vba&amp;nbsp;please? ....&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I can't.&amp;nbsp; Maybe someone who knows VBA will see this and pitch in.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2016 22:04:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-select-all-objects-on-a-particular-layer/m-p/6744557#M340436</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2016-12-12T22:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to select all objects on a particular layer</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-select-all-objects-on-a-particular-layer/m-p/6744743#M340437</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;FONT color="#000080"&gt;&amp;gt;&amp;gt; could you translate this code to vba&amp;nbsp;please&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Here it is, without testing and without warrenty &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Const FromLayer As String = "Layer1"         'layer from which the entities have to be selected
Const DestLayer As String = "Layer2"         'new/destination layer for that entities

Const pSelSetName As String = "mySelSet"

Public Sub chLay()
   Dim tCounter As Integer

   Dim tSelSet As AcadSelectionSet
   Dim tDxfCodes(0) As Integer
   Dim tDxfValues(0) As Variant
   
   'create SelectionSet
   On Error Resume Next
   Set tSelSet = ThisDrawing.SelectionSets.Item(pSelSetName)
   If (Not (tSelSet Is Nothing)) Then
      tSelSet.Clear
   Else
      Err.Clear
      Set tSelSet = ThisDrawing.SelectionSets.Add(pSelSetName)
   End If
   
   'create selection filter
   tDxfCodes(0) = 8
   tDxfValues(0) = FromLayer
      
   'create selection
   Call tSelSet.Select(acSelectionSetAll, , , tDxfCodes, tDxfValues)
   If (Err.Number = 0) And (tSelSet.Count &amp;gt; 0) Then
   
      'Create Layer, just make sure it exists
      Dim tLayer As AcadLayer
      Set tLayer = ThisDrawing.Layers.Add(DestLayer)
      
      'now go through the selectionset and change the layer of the objects
      Dim tEnt As AcadEntity
      For Each tEnt In tSelSet
         tEnt.Layer = DestLayer
         tCounter = tCounter + 1
      Next
      
      Call MsgBox("Entities modified: " &amp;amp; CStr(tCounter))
      
   Else
      Call MsgBox("Error selecting objects." &amp;amp; vbCrLf &amp;amp; Err.Description)
   End If
End Sub
&lt;/PRE&gt;
&lt;P&gt;- alfred -&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2016 23:52:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-select-all-objects-on-a-particular-layer/m-p/6744743#M340437</guid>
      <dc:creator>Alfred.NESWADBA</dc:creator>
      <dc:date>2016-12-12T23:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to select all objects on a particular layer</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-select-all-objects-on-a-particular-layer/m-p/6746259#M340438</link>
      <description>&lt;P&gt;Thank you, Alfred. Thanks a lot&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2016 16:04:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-select-all-objects-on-a-particular-layer/m-p/6746259#M340438</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-13T16:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to select all objects on a particular layer</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-select-all-objects-on-a-particular-layer/m-p/8163715#M340439</link>
      <description>&lt;P&gt;How can I select things in all places?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2018 00:50:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-select-all-objects-on-a-particular-layer/m-p/8163715#M340439</guid>
      <dc:creator>bobbyrubyii</dc:creator>
      <dc:date>2018-07-30T00:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to select all objects on a particular layer</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-select-all-objects-on-a-particular-layer/m-p/8164487#M340440</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2898507"&gt;@bobbyrubyii&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;How can I select things in all places?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Thaw and unlock all layers then hit Ctrl+A.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2018 11:13:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-select-all-objects-on-a-particular-layer/m-p/8164487#M340440</guid>
      <dc:creator>RobDraw</dc:creator>
      <dc:date>2018-07-30T11:13:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to select all objects on a particular layer</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-select-all-objects-on-a-particular-layer/m-p/8164490#M340441</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I want to move all objects from one layer to another.&lt;/P&gt;&lt;P&gt;How do I go about that?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You don't have to select the objects. Merge the layer to the desired one. There are a couple of ways to do this.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2018 11:15:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-select-all-objects-on-a-particular-layer/m-p/8164490#M340441</guid>
      <dc:creator>RobDraw</dc:creator>
      <dc:date>2018-07-30T11:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to select all objects on a particular layer</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/how-to-select-all-objects-on-a-particular-layer/m-p/8165140#M340442</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2898507"&gt;@bobbyrubyii&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;How can I select things in all places?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The (ssget "_X") thing will find all of them, but if you want to change their Layer, it will be necessary to either step through them and use (vla) or (subst)/(entmod) methods to change it for things not in the current space, or to change the current space to where each one is, and change its Layer there.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use &lt;FONT color="#000000"&gt;&lt;STRONG&gt;LAYMRG&lt;/STRONG&gt;&lt;/FONT&gt; [see end of Message 2, and Message 11], as long as you're aware of the differences:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LAYMRG will &lt;EM&gt;remove the source Layer from the drawing&lt;/EM&gt;, whereas other methods won't [a disadvantage if you want to keep that Layer around].&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LAYMRG will also change the Layer of &lt;EM&gt;nested objects&lt;/EM&gt;, i.e.&amp;nbsp;pieces of Block definitions, which the other methods won't [a definite advantage if you need that].&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jul 2018 15:07:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/how-to-select-all-objects-on-a-particular-layer/m-p/8165140#M340442</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2018-07-30T15:07:31Z</dc:date>
    </item>
  </channel>
</rss>

