<?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 Apply Layer to object directly via Layer Properties Manager? in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/apply-layer-to-object-directly-via-layer-properties-manager/m-p/11931243#M37297</link>
    <description>&lt;P&gt;Hi there. I have kind of a small problem but didnt find any solution anywhere.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I simple want to change the layer of a object. The problem is: The template Im using provide 350 layers and even they are sorted well it always takes time to find the right one when i go to the dropdown list.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As Im just using about 10 Layers out of this i created a group in the layer Properties Manager but Im not able to apply one of this to my objects. The dropdown list in the Properties still shows all layers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is the command laymcur (Make Current) where you can set the current layer to the selected object but i would need exactly the opposite. So make the object the current layer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or is there a commant so the dropdown list shows only the layer of my selected layer group?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for help. This would me save a lot of time...&lt;/P&gt;</description>
    <pubDate>Sun, 30 Apr 2023 07:30:30 GMT</pubDate>
    <dc:creator>Stefan.Wieser.ecoMAP</dc:creator>
    <dc:date>2023-04-30T07:30:30Z</dc:date>
    <item>
      <title>Apply Layer to object directly via Layer Properties Manager?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/apply-layer-to-object-directly-via-layer-properties-manager/m-p/11931243#M37297</link>
      <description>&lt;P&gt;Hi there. I have kind of a small problem but didnt find any solution anywhere.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I simple want to change the layer of a object. The problem is: The template Im using provide 350 layers and even they are sorted well it always takes time to find the right one when i go to the dropdown list.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As Im just using about 10 Layers out of this i created a group in the layer Properties Manager but Im not able to apply one of this to my objects. The dropdown list in the Properties still shows all layers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is the command laymcur (Make Current) where you can set the current layer to the selected object but i would need exactly the opposite. So make the object the current layer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or is there a commant so the dropdown list shows only the layer of my selected layer group?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for help. This would me save a lot of time...&lt;/P&gt;</description>
      <pubDate>Sun, 30 Apr 2023 07:30:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/apply-layer-to-object-directly-via-layer-properties-manager/m-p/11931243#M37297</guid>
      <dc:creator>Stefan.Wieser.ecoMAP</dc:creator>
      <dc:date>2023-04-30T07:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Apply Layer to object directly via Layer Properties Manager?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/apply-layer-to-object-directly-via-layer-properties-manager/m-p/11931277#M37298</link>
      <description>&lt;P&gt;&lt;FONT style="vertical-align: inherit;"&gt;&lt;FONT style="vertical-align: inherit;"&gt;请看一下这段录音。&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Apr 2023 23:31:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/apply-layer-to-object-directly-via-layer-properties-manager/m-p/11931277#M37298</guid>
      <dc:creator>WeTanks</dc:creator>
      <dc:date>2023-04-30T23:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: Apply Layer to object directly via Layer Properties Manager?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/apply-layer-to-object-directly-via-layer-properties-manager/m-p/11931424#M37299</link>
      <description>&lt;P&gt;In short, as demonstrated in&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/9739235"&gt;@WeTanks&lt;/a&gt;'s video, use the pull-down in the &lt;STRONG&gt;ribbon&lt;/STRONG&gt; [which shows those Layers that currently show in the Layer Manager, where you can have a filter applied] rather than the one in the Properties palette [which shows all Layers].&lt;/P&gt;</description>
      <pubDate>Sun, 30 Apr 2023 11:10:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/apply-layer-to-object-directly-via-layer-properties-manager/m-p/11931424#M37299</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2023-04-30T11:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: Apply Layer to object directly via Layer Properties Manager?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/apply-layer-to-object-directly-via-layer-properties-manager/m-p/11931726#M37300</link>
      <description>&lt;P&gt;Once you learned how to quickly select the layer you want current here’s the code to run to let you select objects that you want to change to the current layer:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;(defun c:ch2clay ( / ss i ent )
(princ"\nSelect Objects to change to current Layer")
(setq ss (ssget) i 0)
(while (&amp;lt; i (sslength ss))
(setq ent (entget (ssname ss i)))
(setq ent (subst (cons 8 (getvar "clayer")) (assoc 8 ent) ent))
(entmod ent)
(setq i (+ i 1))
)
(princ (strcat "\n" (itoa i) " Objects changed to current Layer [" (getvar "clayer") "]"))
(princ)
) ; defun&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Apr 2023 16:29:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/apply-layer-to-object-directly-via-layer-properties-manager/m-p/11931726#M37300</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2023-04-30T16:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: Apply Layer to object directly via Layer Properties Manager?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/apply-layer-to-object-directly-via-layer-properties-manager/m-p/11932018#M37301</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1137264"&gt;@paullimapa&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;.... select objects that you want to change to the current layer:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;....
(setq ss (ssget) i 0)
(while (&amp;lt; i (sslength ss))
(setq ent (entget (ssname ss i)))
(setq ent (subst (cons 8 (getvar "clayer")) (assoc 8 ent) ent))
(entmod ent)
(setq i (+ i 1))
)
....&lt;/LI-CODE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You &lt;FONT size="2"&gt;[can if you want, but]&lt;/FONT&gt; don't need to change them all &lt;EM&gt;individually,&lt;/EM&gt; but can do them all together:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;(defun c:ch2clay ( / ss i ent )
  (prompt "\nSelect Objects to change to current Layer")
  (setq ss (ssget "_:L"))
  (command "_.chprop" ss "" "_layer" (getvar 'clayer) "")
  (prompt (strcat "\n" (itoa (sslength ss)) " Objects changed to current Layer [" (getvar "clayer") "]"))
  (princ)
) ; defun​&lt;/LI-CODE&gt;
&lt;P&gt;[I also limited it to things not on locked Layers.&amp;nbsp; I could also be made to check whether there's a selection before proceeding, etc.]&lt;/P&gt;</description>
      <pubDate>Sun, 30 Apr 2023 20:48:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/apply-layer-to-object-directly-via-layer-properties-manager/m-p/11932018#M37301</guid>
      <dc:creator>Kent1Cooper</dc:creator>
      <dc:date>2023-04-30T20:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: Apply Layer to object directly via Layer Properties Manager?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/apply-layer-to-object-directly-via-layer-properties-manager/m-p/11932072#M37302</link>
      <description>&lt;P&gt;ch2clay = LAYCUR ?&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="WeTanks_0-1682890409501.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1208554i146F47348AE98D81/image-size/medium?v=v2&amp;amp;px=400" role="button" title="WeTanks_0-1682890409501.png" alt="WeTanks_0-1682890409501.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Apr 2023 21:33:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/apply-layer-to-object-directly-via-layer-properties-manager/m-p/11932072#M37302</guid>
      <dc:creator>WeTanks</dc:creator>
      <dc:date>2023-04-30T21:33:29Z</dc:date>
    </item>
    <item>
      <title>Re: Apply Layer to object directly via Layer Properties Manager?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/apply-layer-to-object-directly-via-layer-properties-manager/m-p/11932078#M37303</link>
      <description>&lt;P&gt;thanks for pointing that out..I knew there was a command that did it but I just couldn't remember.&lt;/P&gt;</description>
      <pubDate>Sun, 30 Apr 2023 21:38:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/apply-layer-to-object-directly-via-layer-properties-manager/m-p/11932078#M37303</guid>
      <dc:creator>paullimapa</dc:creator>
      <dc:date>2023-04-30T21:38:01Z</dc:date>
    </item>
    <item>
      <title>Re: Apply Layer to object directly via Layer Properties Manager?</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/apply-layer-to-object-directly-via-layer-properties-manager/m-p/11932105#M37304</link>
      <description>&lt;P&gt;There is also a way to apply the same filter to the properties pallete as well.... but can't remember the setting.... sorry.&lt;/P&gt;&lt;P&gt;That being said my preference is to leave the properties pallette to where it shows ALL the layers and have the drop down in the&amp;nbsp; ribbon coordinated with the layer filters. That way you always have a place to grab a layer from that is not in the filter but also have the convenience of using the filter.&lt;/P&gt;</description>
      <pubDate>Sun, 30 Apr 2023 21:55:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/apply-layer-to-object-directly-via-layer-properties-manager/m-p/11932105#M37304</guid>
      <dc:creator>payingtoomuch</dc:creator>
      <dc:date>2023-04-30T21:55:23Z</dc:date>
    </item>
  </channel>
</rss>

