<?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: List of Layers in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-layers/m-p/8566562#M93332</link>
    <description>&lt;P&gt;Of course, I am. And we all know that... Or if the OP don't, it's just a little motivation to look into help and explore things himself.&lt;/P&gt;</description>
    <pubDate>Fri, 01 Feb 2019 13:41:23 GMT</pubDate>
    <dc:creator>ВeekeeCZ</dc:creator>
    <dc:date>2019-02-01T13:41:23Z</dc:date>
    <item>
      <title>List of Layers</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-layers/m-p/8566458#M93326</link>
      <description>&lt;P&gt;I'm just trying to get a list of layers in a drawing to a variable, that I can manipulate and perform layer commands.&lt;/P&gt;
&lt;P&gt;I thought (laylist) or (layerlist) functions that have been created would work, or vla-get-layers would work, but I'm not able to get the returned info to a list format.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 13:02:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-layers/m-p/8566458#M93326</guid>
      <dc:creator>kpennell</dc:creator>
      <dc:date>2019-02-01T13:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: List of Layers</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-layers/m-p/8566480#M93327</link>
      <description>&lt;DIV style="font-size: 1.1em; font-family: 'Artifakt'; line-height: 1.3em; margin: 15px 100px 80px 100px;"&gt;
&lt;P&gt;Here is a &lt;A href="https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/get-list-of-all-layers-in-lisp/m-p/822263#M47921" target="_blank" rel="noopener"&gt;nice short function&lt;/A&gt; to do that.&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 01 Feb 2019 13:12:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-layers/m-p/8566480#M93327</guid>
      <dc:creator>rkmcswain</dc:creator>
      <dc:date>2019-02-01T13:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: List of Layers</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-layers/m-p/8566494#M93328</link>
      <description>&lt;P&gt;Or your vla-get-layers&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(vlax-for l (vla-get-layers doc)
    (setq layers (cons (vla-get-name l) layers)))&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Feb 2019 13:20:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-layers/m-p/8566494#M93328</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2019-02-01T13:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: List of Layers</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-layers/m-p/8566521#M93329</link>
      <description>&lt;DIV style="box-shadow: 8px 8px; font-size: 12px; font-style: italic; color: #336699; font-family: verdana; margin: 5px 50px 25px 50px; padding: 8px; border: 1px dotted #336699;"&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365"&gt;@ВeekeeCZ&lt;/a&gt; wrote:&lt;BR /&gt;(vlax-for l (vla-get-layers doc) &lt;BR /&gt;(setq layers (cons (vla-get-name l) layers)))&lt;/DIV&gt;
&lt;DIV style="font-size: 1.1em; font-family: 'Artifakt'; line-height: 1.3em; margin: 15px 100px 80px 100px;"&gt;
&lt;P&gt;You're missing something there. "doc" is undefined.&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 01 Feb 2019 13:31:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-layers/m-p/8566521#M93329</guid>
      <dc:creator>rkmcswain</dc:creator>
      <dc:date>2019-02-01T13:31:11Z</dc:date>
    </item>
    <item>
      <title>Re: List of Layers</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-layers/m-p/8566524#M93330</link>
      <description>&lt;P&gt;Or in your function LayerList and returns a sorted layer list&amp;nbsp;&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;(defun LayerList (/ LL_Return)
   (vl-sort
      (vlax-for LL_Item  (vla-get-Layers (vla-get-ActiveDocument (vlax-get-acad-object)))
         (setq LL_Return (cons (vla-get-Name LL_Item) LL_Return))      
      )
      '&amp;lt;   
   )        
)&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Feb 2019 13:32:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-layers/m-p/8566524#M93330</guid>
      <dc:creator>DannyNL</dc:creator>
      <dc:date>2019-02-01T13:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: List of Layers</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-layers/m-p/8566535#M93331</link>
      <description>&lt;P&gt;This one seems to do the trick.&amp;nbsp; Thanks all for the suggestions, benefits my, and everyone's learning.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 13:34:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-layers/m-p/8566535#M93331</guid>
      <dc:creator>kpennell</dc:creator>
      <dc:date>2019-02-01T13:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: List of Layers</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-layers/m-p/8566562#M93332</link>
      <description>&lt;P&gt;Of course, I am. And we all know that... Or if the OP don't, it's just a little motivation to look into help and explore things himself.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 13:41:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-layers/m-p/8566562#M93332</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2019-02-01T13:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: List of Layers</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-layers/m-p/8568123#M93333</link>
      <description>And one more... all together now:&lt;BR /&gt;&lt;BR /&gt;    ;layer list [no xref or bounded xref names]&lt;BR /&gt;    (vlax-for x (vla-get-layers *DOC*)&lt;BR /&gt;     (if (not (wcmatch (vla-get-name x) "*|*,*$#$*"))&lt;BR /&gt;      (setq la (cons (vla-get-name x) la))))&lt;BR /&gt;    (setq la (vl-sort la '&amp;lt;))&lt;BR /&gt;&lt;BR /&gt;???&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Feb 2019 23:20:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/list-of-layers/m-p/8568123#M93333</guid>
      <dc:creator>scot-65</dc:creator>
      <dc:date>2019-02-01T23:20:58Z</dc:date>
    </item>
  </channel>
</rss>

