<?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 Select by layer? in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/select-by-layer/m-p/11551231#M47636</link>
    <description>&lt;P&gt;I'm looking for a tool or LISP that works like a cross between SELECTSIMILAR and QSELECT.&lt;/P&gt;&lt;P&gt;I&amp;nbsp;&lt;EM&gt;really&lt;/EM&gt; would like to select elements by layer.&lt;BR /&gt;Qselect is bulky, and requires me to scroll through my list of layers to find the one I want. There is no way to "match" an element to use as a filter with Qselect.&lt;/P&gt;&lt;P&gt;SelectSimilar is a one-click filter, but it will only select the same element TYPE, so if I select a polyline, but other elements of interest are lines and arcs, those won't be selected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to be able to click on an element, and then select all other elements on that level regardless of type.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a Qselect setting that will allow for an existing element to be chosen to set the properties? Is there a SelectSimilar setting that will disregard element type? Is there a LISP out there that will do this one thing?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
    <pubDate>Mon, 14 Nov 2022 15:41:21 GMT</pubDate>
    <dc:creator>mbloswick</dc:creator>
    <dc:date>2022-11-14T15:41:21Z</dc:date>
    <item>
      <title>Select by layer?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/select-by-layer/m-p/11551231#M47636</link>
      <description>&lt;P&gt;I'm looking for a tool or LISP that works like a cross between SELECTSIMILAR and QSELECT.&lt;/P&gt;&lt;P&gt;I&amp;nbsp;&lt;EM&gt;really&lt;/EM&gt; would like to select elements by layer.&lt;BR /&gt;Qselect is bulky, and requires me to scroll through my list of layers to find the one I want. There is no way to "match" an element to use as a filter with Qselect.&lt;/P&gt;&lt;P&gt;SelectSimilar is a one-click filter, but it will only select the same element TYPE, so if I select a polyline, but other elements of interest are lines and arcs, those won't be selected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to be able to click on an element, and then select all other elements on that level regardless of type.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a Qselect setting that will allow for an existing element to be chosen to set the properties? Is there a SelectSimilar setting that will disregard element type? Is there a LISP out there that will do this one thing?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 15:41:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/select-by-layer/m-p/11551231#M47636</guid>
      <dc:creator>mbloswick</dc:creator>
      <dc:date>2022-11-14T15:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: Select by layer?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/select-by-layer/m-p/11551265#M47637</link>
      <description>&lt;P&gt;Have you tried FILTER?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 15:58:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/select-by-layer/m-p/11551265#M47637</guid>
      <dc:creator>dmfrazier</dc:creator>
      <dc:date>2022-11-14T15:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: Select by layer?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/select-by-layer/m-p/11551316#M47638</link>
      <description>&lt;P&gt;Maybe the GETSEL command will work for you?&amp;nbsp; First select object on the layer you want then select object type or * for all.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 16:21:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/select-by-layer/m-p/11551316#M47638</guid>
      <dc:creator>user181</dc:creator>
      <dc:date>2022-11-14T16:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: Select by layer?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/select-by-layer/m-p/11551336#M47639</link>
      <description>&lt;P&gt;Interesting, but not exactly a quick solution for a one-off. I can see setting that sort of thing up in a template file for repetitive tasks/choices. Is there a way to copy Filters from one drawing to another?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 16:32:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/select-by-layer/m-p/11551336#M47639</guid>
      <dc:creator>mbloswick</dc:creator>
      <dc:date>2022-11-14T16:32:52Z</dc:date>
    </item>
    <item>
      <title>Re: Select by layer?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/select-by-layer/m-p/11551337#M47640</link>
      <description>&lt;P&gt;GETSEL is what I'm looking for - thank you!&lt;BR /&gt;It took me a minute to figure it out, because it drops the selection set after selecting the elements. I had to look it up to find out that I then need to Select -&amp;gt; Previous. But so much easier than Qselect!&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 16:34:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/select-by-layer/m-p/11551337#M47640</guid>
      <dc:creator>mbloswick</dc:creator>
      <dc:date>2022-11-14T16:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Select by layer?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/select-by-layer/m-p/11551356#M47641</link>
      <description>&lt;P&gt;&lt;EM&gt;"Interesting, but not exactly a quick solution for a one-off."&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I agree.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;I can see setting that sort of thing up in a template file for repetitive tasks/choices. Is there a way to copy Filters from one drawing to another?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Saved filters are not stored in DWGs. They are stored in a file (filter.nfl), in your AppData...Roaming...Support folder.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 16:41:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/select-by-layer/m-p/11551356#M47641</guid>
      <dc:creator>dmfrazier</dc:creator>
      <dc:date>2022-11-14T16:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Select by layer?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/select-by-layer/m-p/11551539#M47642</link>
      <description>&lt;P&gt;Nice!&lt;/P&gt;&lt;P&gt;So I could set up some filters, and use them across projects. I'll have to look deeper into this one. GETSEL gives me what I need now, but FILTERS has promise.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 17:44:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/select-by-layer/m-p/11551539#M47642</guid>
      <dc:creator>mbloswick</dc:creator>
      <dc:date>2022-11-14T17:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Select by layer?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/select-by-layer/m-p/11551902#M47643</link>
      <description>&lt;P&gt;You can try this lisp of mine. I usually just pre-select some object/s... but it offers some more options...&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 20:16:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/select-by-layer/m-p/11551902#M47643</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2022-11-14T20:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Select by layer?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/select-by-layer/m-p/11551952#M47644</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;I'll give that a whirl.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 20:39:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/select-by-layer/m-p/11551952#M47644</guid>
      <dc:creator>mbloswick</dc:creator>
      <dc:date>2022-11-14T20:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Select by layer?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/select-by-layer/m-p/11552005#M47645</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12642899"&gt;@mbloswick&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;....&lt;/P&gt;
&lt;P&gt;I want to be able to click on an element, and then select all other elements on that level&lt;FONT color="#000000"&gt; [layer &lt;FONT size="2"&gt;&lt;EM&gt;--KC&lt;/EM&gt;&lt;/FONT&gt;]&lt;/FONT&gt; regardless of type.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;....&lt;/SPAN&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;How about something like this?&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(defun C:SAL (/ ent ss); = Select All on Layer [of selected object]
  (defun getobj ()
    (while (not ent)
      (setq ent (car (entsel "\nSelect one object to get all objects on its Layer: ")))
    ); while
  ); defun
  (cond ; OBJECT SELECTION
    ( (and
        (setq ss (ssget "_I")); something pre-selected
        (= (sslength ss) 1); only one object
      ); and
      (setq ent (ssname ss 0))
    ); first condition [single pre-selected object]
    ( (ssget "_I"); more than one object selected
      (sssetfirst nil); un-select multiple objects
      (getobj); User select
    ); second condition
    ((getobj)); User select [nothing pre-selected]
  ); cond
  (sssetfirst nil (setq SALSS (ssget "_X" (list (assoc 8 (entget ent))))))
  (prin1)
); defun&lt;/LI-CODE&gt;
&lt;P&gt;If you have a single object selected when you call the command, it uses that.&amp;nbsp; If you have either more than one or no pre-selection, it asks you to select one object.&lt;/P&gt;
&lt;P&gt;It leaves all objects on the Layer selected/highlighted/gripped, so you can call a command directly to apply to them,&amp;nbsp;&lt;EM&gt;and&lt;/EM&gt;&amp;nbsp;it puts them into a non-localized variable called SALSS that you can use as you like afterwards.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 21:03:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/select-by-layer/m-p/11552005#M47645</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2022-11-14T21:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Select by layer?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/select-by-layer/m-p/11552713#M47646</link>
      <description>&lt;P&gt;You can use the &lt;A href="https://sites.google.com/site/avcplugins/palette" target="_blank" rel="noopener"&gt;AVC Properties Palette&lt;/A&gt; plugin. If you click on the layer property of any object, then a button with a magnifying glass appears next to the field - this is a search for all objects with the same property value (in this case, the same layer). In this case, all objects of the layer will be selected regardless of their type.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Nov 2022 06:10:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/select-by-layer/m-p/11552713#M47646</guid>
      <dc:creator>AVCPlugins</dc:creator>
      <dc:date>2022-11-15T06:10:33Z</dc:date>
    </item>
  </channel>
</rss>

