<?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: Layer filter for Used layers NOT in xrefs? in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layer-filter-for-used-layers-not-in-xrefs/m-p/9104676#M82579</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/538193"&gt;@MbMinx&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Depending on the xref method used to link with your primary file your layers will be organized this way.&amp;nbsp;&lt;/SPAN&gt;It seems you may want to &lt;A href="https://knowledge.autodesk.com/support/autocad-architecture/learn-explore/caas/CloudHelp/cloudhelp/2018/ENU/AutoCAD-Architecture/files/GUID-68BF04AD-9F26-4FAA-89E5-E9BD06A82849-htm.html" target="_blank" rel="noopener"&gt;utilize Grouping Layers maybe&lt;/A&gt;&amp;nbsp;then freeze/turn off that group.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please&lt;STRONG&gt;&amp;nbsp;&lt;SPAN style="color: #008000;"&gt;"Accept Solution"&lt;/SPAN&gt;&lt;/STRONG&gt;&amp;nbsp;if a reply or replies have helped resolve the issue or answered&amp;nbsp;your question, to help others in the community.&lt;/P&gt;</description>
    <pubDate>Wed, 23 Oct 2019 22:21:26 GMT</pubDate>
    <dc:creator>natasha.l</dc:creator>
    <dc:date>2019-10-23T22:21:26Z</dc:date>
    <item>
      <title>Layer filter for Used layers NOT in xrefs?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layer-filter-for-used-layers-not-in-xrefs/m-p/9104114#M82577</link>
      <description>&lt;P&gt;I apologize if there is a post for this already. My search mojo has been failing me recently.&lt;/P&gt;&lt;P&gt;I have a layer properties filter for "All used layers" and for "All non-Xref layers". No, I'm not sure where they came from...What I WANT is a filter for "All used, non-Xref layers". I know how to filter for used layers, but I don't know how to filter out the Xrefs.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;MaryB&lt;/P&gt;&lt;P&gt;C3D 2020&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2019 18:12:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layer-filter-for-used-layers-not-in-xrefs/m-p/9104114#M82577</guid>
      <dc:creator>MbMinx</dc:creator>
      <dc:date>2019-10-23T18:12:24Z</dc:date>
    </item>
    <item>
      <title>Re: Layer filter for Used layers NOT in xrefs?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layer-filter-for-used-layers-not-in-xrefs/m-p/9104585#M82578</link>
      <description>You can just make your own, here is an easy to follow tutorial &lt;A href="https://cadsetterout.com/autocad-tutorials/take-charge-of-autocad-with-layer-filters/" target="_blank"&gt;https://cadsetterout.com/autocad-tutorials/take-charge-of-autocad-with-layer-filters/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Oct 2019 21:36:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layer-filter-for-used-layers-not-in-xrefs/m-p/9104585#M82578</guid>
      <dc:creator>pendean</dc:creator>
      <dc:date>2019-10-23T21:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: Layer filter for Used layers NOT in xrefs?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layer-filter-for-used-layers-not-in-xrefs/m-p/9104676#M82579</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/538193"&gt;@MbMinx&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Depending on the xref method used to link with your primary file your layers will be organized this way.&amp;nbsp;&lt;/SPAN&gt;It seems you may want to &lt;A href="https://knowledge.autodesk.com/support/autocad-architecture/learn-explore/caas/CloudHelp/cloudhelp/2018/ENU/AutoCAD-Architecture/files/GUID-68BF04AD-9F26-4FAA-89E5-E9BD06A82849-htm.html" target="_blank" rel="noopener"&gt;utilize Grouping Layers maybe&lt;/A&gt;&amp;nbsp;then freeze/turn off that group.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please&lt;STRONG&gt;&amp;nbsp;&lt;SPAN style="color: #008000;"&gt;"Accept Solution"&lt;/SPAN&gt;&lt;/STRONG&gt;&amp;nbsp;if a reply or replies have helped resolve the issue or answered&amp;nbsp;your question, to help others in the community.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2019 22:21:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layer-filter-for-used-layers-not-in-xrefs/m-p/9104676#M82579</guid>
      <dc:creator>natasha.l</dc:creator>
      <dc:date>2019-10-23T22:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Layer filter for Used layers NOT in xrefs?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layer-filter-for-used-layers-not-in-xrefs/m-p/9104779#M82580</link>
      <description>No, that doesn't sound like it to me.&lt;BR /&gt;&lt;BR /&gt;Our template drawing has a lot of layers pre-created for us. It's a lot of&lt;BR /&gt;layers... Then I attach xrefs, and all those layers show up in my layer&lt;BR /&gt;manager as well. And I'm looking at a list of hundreds and hundreds of&lt;BR /&gt;layers.&lt;BR /&gt;&lt;BR /&gt;I tend to do my work in about a dozen layers, and I switch back and forth&lt;BR /&gt;across them as I do my thing. I want a filter in the layer manager so that&lt;BR /&gt;it will only show me a list of the layers used in my active file. That&lt;BR /&gt;would be a very short list, and I wouldn't have to keep scrolling up and&lt;BR /&gt;down to get what I want.&lt;BR /&gt;&lt;BR /&gt;I can see a filter for all used layers, which includes all of the layers&lt;BR /&gt;used in all the xrefs...I can see a filter for all non-xref layers, which&lt;BR /&gt;shows me every layer in my active file. I can't figure out how to make a&lt;BR /&gt;filter so that the layer manager will only show me the layers in my active&lt;BR /&gt;file that have been used. This isn't a static group - it should change on&lt;BR /&gt;the fly as I add and delete elements as I go along.&lt;BR /&gt;&lt;BR /&gt;Or is there a way I can sort the layer manager so that the used, active&lt;BR /&gt;file levels are first in the list?&lt;BR /&gt;&lt;BR /&gt;MaryB&lt;BR /&gt;</description>
      <pubDate>Wed, 23 Oct 2019 23:33:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layer-filter-for-used-layers-not-in-xrefs/m-p/9104779#M82580</guid>
      <dc:creator>MbMinx</dc:creator>
      <dc:date>2019-10-23T23:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Layer filter for Used layers NOT in xrefs?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layer-filter-for-used-layers-not-in-xrefs/m-p/9105051#M82581</link>
      <description>&lt;P&gt;You can create a New Group Filter and add the objects which you will be working on. Below screencast shows how its done.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="iframe-container"&gt;&lt;IFRAME width="640" height="590" src="https://screencast.autodesk.com/Embed/Timeline/cec3c94e-131d-49eb-a455-3c9552a8d394" frameborder="0" scrolling="no" allowfullscreen="allowfullscreen" webkitallowfullscreen="webkitallowfullscreen"&gt;&lt;/IFRAME&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 04:22:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layer-filter-for-used-layers-not-in-xrefs/m-p/9105051#M82581</guid>
      <dc:creator>vinodkl</dc:creator>
      <dc:date>2019-10-24T04:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: Layer filter for Used layers NOT in xrefs?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layer-filter-for-used-layers-not-in-xrefs/m-p/9105917#M82582</link>
      <description>&lt;P&gt;I can do that, but I don't see which property can be selected to determine whether the layer is in the active file, or in an xref (any xref).&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 12:25:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layer-filter-for-used-layers-not-in-xrefs/m-p/9105917#M82582</guid>
      <dc:creator>MbMinx</dc:creator>
      <dc:date>2019-10-24T12:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Layer filter for Used layers NOT in xrefs?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layer-filter-for-used-layers-not-in-xrefs/m-p/9105941#M82583</link>
      <description>&lt;P&gt;I don't want a static group of elements, just like I don't want a static group of layers.&lt;/P&gt;&lt;P&gt;I want a layer filter so that when I look at my layer manager (or my list of layers on the ribbon) I only see the ones I am working with, and none of the others.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want a layer filter so that the list of layers shown in the layer manager can be dynamic as I keep working. If I draw something onto a new layer, I want that layer to be included in the list automatically. If I attach a new xref, I want those levels to be excluded from the list automatically. And if I need to see those other layers, I can just select a different filter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not interested in the display of elements. I'm interested in paring down the list of layers I see in my layer manager. I'm coming over from another software package, and this doesn't SEEM like it should be this big a deal.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 12:33:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layer-filter-for-used-layers-not-in-xrefs/m-p/9105941#M82583</guid>
      <dc:creator>MbMinx</dc:creator>
      <dc:date>2019-10-24T12:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: Layer filter for Used layers NOT in xrefs?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layer-filter-for-used-layers-not-in-xrefs/m-p/9106021#M82584</link>
      <description>&lt;P&gt;I guess your not ready to try out any of suggestion offered to you. Without trying out any of the suggestion your just replying back. Once you create a group filter and make that as current it will only display those layers in the ribbon. When someone offers assistance you should make sure you try and then reply back. Cause we people are being paid over here to offer you assistance.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 12:55:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layer-filter-for-used-layers-not-in-xrefs/m-p/9106021#M82584</guid>
      <dc:creator>vinodkl</dc:creator>
      <dc:date>2019-10-24T12:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Layer filter for Used layers NOT in xrefs?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layer-filter-for-used-layers-not-in-xrefs/m-p/9106163#M82585</link>
      <description>&lt;P&gt;I HAVE tried that, and that's why I'm asking about PROPERTY filters.&lt;/P&gt;&lt;P&gt;All of the GROUP filters I have generated have been static. New layers that I use do not get added in automatically. The group is only what I selected at that point in time. I want to use properties so that the layers on the list will adjust automatically as I work along.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or is there a setting that makes a group filter dynamic?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 13:41:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layer-filter-for-used-layers-not-in-xrefs/m-p/9106163#M82585</guid>
      <dc:creator>MbMinx</dc:creator>
      <dc:date>2019-10-24T13:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Layer filter for Used layers NOT in xrefs?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layer-filter-for-used-layers-not-in-xrefs/m-p/9106331#M82586</link>
      <description>&lt;P&gt;You can use ~*|* to set that up.&lt;/P&gt;
&lt;P&gt;I use a lisp file that I got somewhere on the internet to set that for me.&lt;/P&gt;
&lt;PRE&gt;(defun C:XREFNOT ( / xdict dict xrecname )
 (vl-load-com)
    (setq xdict
        (vlax-vla-object-&amp;gt;ename
            (vla-getextensiondictionary 
                (vla-get-layers 
                    (vla-get-activedocument (vlax-get-acad-object))
                )
            )
        )    
    )
    
    (setq dict
        (if (setq dict (dictsearch xdict "ACAD_LAYERFILTERS"))
            (cdr (assoc -1 dict))
            (dictadd xdict "ACAD_LAYERFILTERS"
                (entmakex
                   '(
                        (0 . "dictionary")
                        (100 . "AcDbDictionary")
                        (280 . 0)
                        (281 . 1)
                    )
                )
            )
        )
    )
    
    (princ
        (if (dictsearch dict (setq xrecname "No_Xref_Layers"))
            (strcat
                "Layer filter named &amp;lt;"
                xrecname
                "&amp;gt; already exists."
            )
            (if
                (dictadd dict xrecname
                    (entmakex
                        (append
                           '(
                                (0 . "xrecord")
                                (100 . "AcDbXrecord")
                                (280 . 1)
                            )    
                            (list (cons 1 xrecname))
                           '(
                                (1 . "~*|*")
                                (1 . "*")
                                (1 . "*")
                                (70 . 0)
                                (1 . "*")
                                (1 . "*")
                                (-3          
                                    (   "ACAD"
                                        (1000 . "( NAME== \"~*|*\" )")
                                    )         
                                )
                            )    
                        )
                    )
                )
                (strcat
                    "Created layer filter named &amp;lt;"
                    xrecname
                    "&amp;gt;."
                )
                "Doh! Something horrible happened. "
            )    
        )    
    )    
  
    (princ)
 
) &lt;/PRE&gt;</description>
      <pubDate>Thu, 24 Oct 2019 14:30:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layer-filter-for-used-layers-not-in-xrefs/m-p/9106331#M82586</guid>
      <dc:creator>GrantsPirate</dc:creator>
      <dc:date>2019-10-24T14:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Layer filter for Used layers NOT in xrefs?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layer-filter-for-used-layers-not-in-xrefs/m-p/9123399#M82587</link>
      <description>&lt;P&gt;There is really simple no-customization solution. Actually simpler than I thought.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Go to the Layers, Layer Setting, make sure that "Indicate Layers In Use" toggle is ticked.&lt;/P&gt;
&lt;P&gt;Then create new layer PROPERTY filter by selecting correct status - Used non-Xref Layer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See described process&amp;nbsp;&lt;A href="https://autode.sk/2r6bucC" target="_blank" rel="noopener"&gt;HERE&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then we could ask&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3986474"&gt;@natasha.l&lt;/a&gt;&amp;nbsp;to move this topic back to the general AutoCAD forums.&lt;/P&gt;</description>
      <pubDate>Sat, 02 Nov 2019 09:37:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layer-filter-for-used-layers-not-in-xrefs/m-p/9123399#M82587</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2019-11-02T09:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Layer filter for Used layers NOT in xrefs?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layer-filter-for-used-layers-not-in-xrefs/m-p/9123450#M82588</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1779365"&gt;@ВeekeeCZ&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;There is really simple no-customization solution. &lt;STRIKE&gt;Actually simpler than I thought.&lt;/STRIKE&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Go to the Layers, Layer Setting, make sure that "Indicate Layers In Use" toggle is ticked.&lt;/P&gt;
&lt;P&gt;Then create new layer PROPERTY filter by selecting correct status - Used non-Xref Layer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See described process&amp;nbsp;&lt;A href="https://autode.sk/2r6bucC" target="_blank" rel="noopener"&gt;HERE&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then we could ask&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/3986474"&gt;@natasha.l&lt;/a&gt;&amp;nbsp;to move this topic back to the general AutoCAD forums.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Well, I was wrong... not simpler as I thought. Filtering just by status isn't probably enough (more info about status icons &lt;A href="http://help.autodesk.com/view/ACD/2020/ENU/?guid=GUID-B297EBD9-D68C-47E1-87CE-1B3798496599" target="_blank" rel="noopener"&gt;HERE&lt;/A&gt;&amp;nbsp;). We still need to exclude xref layers by their names:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;~*|*&lt;/STRONG&gt;&lt;/FONT&gt;&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="image.png" style="width: 478px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/693972i4115C1D2C66079F0/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 02 Nov 2019 11:48:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layer-filter-for-used-layers-not-in-xrefs/m-p/9123450#M82588</guid>
      <dc:creator>ВeekeeCZ</dc:creator>
      <dc:date>2019-11-02T11:48:06Z</dc:date>
    </item>
    <item>
      <title>Re: Layer filter for Used layers NOT in xrefs?</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layer-filter-for-used-layers-not-in-xrefs/m-p/9303183#M82589</link>
      <description>&lt;P&gt;A single line item that can be used in .scr Scripts&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;(command "-LAYER" "filter" "N" "P" "All" "NAME==\"~*|*\"" "All Non-Xref Layers" "x" "")&lt;/PRE&gt;&lt;P&gt;Source &amp;amp; Credit:&amp;nbsp;&lt;A href="https://cadtips.cadalyst.com/layer-tools/create-filter-all-layers-except-xref-layer" target="_blank" rel="noopener"&gt;https://cadtips.cadalyst.com/layer-tools/create-filter-all-layers-except-xref-layer&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2020 12:46:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/layer-filter-for-used-layers-not-in-xrefs/m-p/9303183#M82589</guid>
      <dc:creator>c.haynes-BM</dc:creator>
      <dc:date>2020-02-07T12:46:17Z</dc:date>
    </item>
  </channel>
</rss>

