<?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: Include Exclude Layer Filter in AutoCAD Forum</title>
    <link>https://forums.autodesk.com/t5/autocad-forum/include-exclude-layer-filter/m-p/5832014#M310521</link>
    <description>Create a command inside the CUI and populate in your favorite area.&lt;BR /&gt;&lt;BR /&gt;Here is the command's Macro:&lt;BR /&gt;^C^C-layer;t;0;s;0;f;*;t;*FIGR*,Def*;f;*DEMO;;&lt;BR /&gt;&lt;BR /&gt;And another one:&lt;BR /&gt;^C^C-layer;t;0;s;0;f;*;t;*DEMO,Def*;;&lt;BR /&gt;&lt;BR /&gt;Add any additional layers after Def* that will be comma separated.&lt;BR /&gt;A semicolon is equal to [Enter].&lt;BR /&gt;If you Off/On your layers, also incorporate/substitute in the macro.&lt;BR /&gt;&lt;BR /&gt;???&lt;BR /&gt;&lt;BR /&gt;And Welcome to this Forum!&lt;BR /&gt;</description>
    <pubDate>Thu, 24 Sep 2015 22:30:59 GMT</pubDate>
    <dc:creator>scot-65</dc:creator>
    <dc:date>2015-09-24T22:30:59Z</dc:date>
    <item>
      <title>Include Exclude Layer Filter</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/include-exclude-layer-filter/m-p/5831263#M310518</link>
      <description>&lt;P&gt;I am trying to write a layer filter that will include all of my layers that contain FIGR and exlude all layers containing DEMO&lt;/P&gt;&lt;P&gt;I am familiar with the ~ and ** syntax but have not been able to use them in conjuction to get the result I am looking for.&lt;/P&gt;&lt;P&gt;I would appreciate your help if you are able to give some.&lt;/P&gt;&lt;P&gt;-JT&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2015 14:23:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/include-exclude-layer-filter/m-p/5831263#M310518</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-24T14:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Include Exclude Layer Filter</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/include-exclude-layer-filter/m-p/5831294#M310519</link>
      <description>By definition, if you only want to see FIGR layers, that will exclude everything else, including DEMO layers.&lt;BR /&gt;&lt;BR /&gt;Or you could have one that excludes DEMO layers, that would include FIGR (and all others).&lt;BR /&gt;&lt;BR /&gt;IOW, once you do ONE of those, the other is not necessary.&lt;BR /&gt;Maybe I'm missing something?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 24 Sep 2015 14:35:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/include-exclude-layer-filter/m-p/5831294#M310519</guid>
      <dc:creator>rkmcswain</dc:creator>
      <dc:date>2015-09-24T14:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: Include Exclude Layer Filter</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/include-exclude-layer-filter/m-p/5831313#M310520</link>
      <description>&lt;P&gt;The result I am looking for is to have a list of all layers that contain FIGR but do not contain DEMO&lt;/P&gt;&lt;P&gt;for example I want to have V-FIGR-RETW but not&amp;nbsp;&lt;SPAN&gt;V-FIGR-RETW-DEMO&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have discovered one solution for this.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I am now using a sub filter to accomplish this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My main filter includes all layers containg FIGR - *FIGR*&lt;/P&gt;&lt;P&gt;And the sub filter excludes the layers containing DEMO - ~*DEMO*&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-JT&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2015 14:44:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/include-exclude-layer-filter/m-p/5831313#M310520</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-24T14:44:03Z</dc:date>
    </item>
    <item>
      <title>Re: Include Exclude Layer Filter</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/include-exclude-layer-filter/m-p/5832014#M310521</link>
      <description>Create a command inside the CUI and populate in your favorite area.&lt;BR /&gt;&lt;BR /&gt;Here is the command's Macro:&lt;BR /&gt;^C^C-layer;t;0;s;0;f;*;t;*FIGR*,Def*;f;*DEMO;;&lt;BR /&gt;&lt;BR /&gt;And another one:&lt;BR /&gt;^C^C-layer;t;0;s;0;f;*;t;*DEMO,Def*;;&lt;BR /&gt;&lt;BR /&gt;Add any additional layers after Def* that will be comma separated.&lt;BR /&gt;A semicolon is equal to [Enter].&lt;BR /&gt;If you Off/On your layers, also incorporate/substitute in the macro.&lt;BR /&gt;&lt;BR /&gt;???&lt;BR /&gt;&lt;BR /&gt;And Welcome to this Forum!&lt;BR /&gt;</description>
      <pubDate>Thu, 24 Sep 2015 22:30:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/include-exclude-layer-filter/m-p/5832014#M310521</guid>
      <dc:creator>scot-65</dc:creator>
      <dc:date>2015-09-24T22:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Include Exclude Layer Filter</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/include-exclude-layer-filter/m-p/5832680#M310522</link>
      <description>&lt;P&gt;You can set up a nested Layer Property Filter.&lt;/P&gt;
&lt;P&gt;&lt;IMG title="FILTER 3.PNG" alt="FILTER 3.PNG" src="https://forums.autodesk.com/t5/image/serverpage/image-id/190765i76C3B2AA97DF36E9/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;Create a filter to include FIGR first, then create another filter under this filter (right-click and select from the&amp;nbsp;short-cut menu)&amp;nbsp;to exclude DEMO.&lt;/P&gt;
&lt;P&gt;&lt;IMG title="FILTER 1.png" alt="FILTER 1.png" src="https://forums.autodesk.com/t5/image/serverpage/image-id/190766iFD6F64B0EFD98F67/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" /&gt;&amp;nbsp; &lt;IMG title="FILTER 2.PNG" alt="FILTER 2.PNG" src="https://forums.autodesk.com/t5/image/serverpage/image-id/190767i22E34CF73FFCC76F/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2015 12:46:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/include-exclude-layer-filter/m-p/5832680#M310522</guid>
      <dc:creator>3wood</dc:creator>
      <dc:date>2015-09-25T12:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: Include Exclude Layer Filter</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/include-exclude-layer-filter/m-p/5832837#M310523</link>
      <description>3wood that is what I ended up using as my solution. It is something that Autodesk could tweak because when I saw New Properties Filter after a right click I thought 'no I want to work with this one not a new one.' My point is that something that said subFilter would be nice and intuitive. However, I am glad that the functionality is there.</description>
      <pubDate>Fri, 25 Sep 2015 14:08:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/include-exclude-layer-filter/m-p/5832837#M310523</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-09-25T14:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: Include Exclude Layer Filter</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/include-exclude-layer-filter/m-p/5833597#M310524</link>
      <description>I got a bad taste when layer filters were first introduced - thus avoiding whenever possible.&lt;BR /&gt;&lt;BR /&gt;An engineer once sent us a 50MB file that had about 220k worth of entities and the bloating&lt;BR /&gt;was due to thousands upon thousands of layer filters (including Chinese characters).&lt;BR /&gt;He was not aware of this.&lt;BR /&gt;&lt;BR /&gt;As part of our file maintenance, where the first occurrence of Qsave, layer filters are purged.&lt;BR /&gt;</description>
      <pubDate>Fri, 25 Sep 2015 22:00:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/include-exclude-layer-filter/m-p/5833597#M310524</guid>
      <dc:creator>scot-65</dc:creator>
      <dc:date>2015-09-25T22:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: Include Exclude Layer Filter</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/include-exclude-layer-filter/m-p/5845023#M310525</link>
      <description>&lt;P&gt;Subfilter is a good name! But we don't have a name of subblock?&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2015 13:29:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/include-exclude-layer-filter/m-p/5845023#M310525</guid>
      <dc:creator>3wood</dc:creator>
      <dc:date>2015-10-05T13:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: Include Exclude Layer Filter</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/include-exclude-layer-filter/m-p/10981005#M310526</link>
      <description>&lt;P&gt;How do you write a sub properties filter into a lisp routine?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've got a lisp to create a layer filter.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 05:49:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/include-exclude-layer-filter/m-p/10981005#M310526</guid>
      <dc:creator>leilani.gnall-gregory</dc:creator>
      <dc:date>2022-03-03T05:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Include Exclude Layer Filter</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/include-exclude-layer-filter/m-p/10981288#M310527</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4790889"&gt;@leilani.gnall-gregory&lt;/a&gt;&amp;nbsp; schrieb:&lt;BR /&gt;
&lt;P&gt;How do you write a sub properties filter into a lisp routine?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Every Layerfilter is a sub-layerfilter, except the "all" filter.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've got a lisp to create a layer filter.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Is this lisp using the api to create layerfilters, or just sends input to the commandline (Command ...)?&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;If you don't know, share this Lispcode&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;API: Share your code first, please&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;COMMAND: Type in..&lt;/P&gt;
&lt;P&gt;-LAYER&amp;lt;enter&amp;gt;&lt;/P&gt;
&lt;P&gt;FILTER&amp;lt;enter&amp;gt;&lt;/P&gt;
&lt;P&gt;NEW&amp;lt;enter&amp;gt;&lt;/P&gt;
&lt;P&gt;Property&amp;lt;enter&amp;gt;&lt;/P&gt;
&lt;P&gt;[F2] read what AutoCAD ask for..!&lt;/P&gt;
&lt;P&gt;If you send "" or "All", you create a sub-filter to filter "All",&lt;/P&gt;
&lt;P&gt;if you send "INCLUDE", you create a sub-filter to filter "INCLUDE" ~&lt;EM&gt; if present&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;
._-layer
_filter
_new
_property

NAME=="*FIGR*"
INCLUDE


._-layer
_filter
_new
_property
INCLUDE
NAME=="~*DEMO*"
EXCLUDE


within the (command function
(command "._-layer" "_filter" "_new" "_property" "" "NAME==\"*FIGR*\"" "INCLUDE" nil)
(command "._-layer" "_filter" "_new" "_property" "INCLUDE" "NAME==\"~*DEMO*\"" "EXCLUDE" nil)

&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 03 Mar 2022 10:16:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/include-exclude-layer-filter/m-p/10981288#M310527</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2022-03-03T10:16:12Z</dc:date>
    </item>
    <item>
      <title>Re: Include Exclude Layer Filter</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/include-exclude-layer-filter/m-p/10981963#M310528</link>
      <description>&lt;P&gt;You can also use &lt;FONT color="#FF0000"&gt;and&lt;/FONT&gt; &amp;amp; &lt;FONT color="#FF0000"&gt;or&lt;/FONT&gt; to create filters like you want without needing a subfilter.&lt;/P&gt;&lt;LI-CODE lang="lisp"&gt;(command "._-layer" "filter" "new" "property" "All" "NAME==\"~DEMO\" and NAME==\"*FIGR*\"" "FIGR No DEMO" "X" nil)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 16:40:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/include-exclude-layer-filter/m-p/10981963#M310528</guid>
      <dc:creator>TomBeauford</dc:creator>
      <dc:date>2022-03-03T16:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: Include Exclude Layer Filter</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/include-exclude-layer-filter/m-p/11542587#M310529</link>
      <description>&lt;P&gt;Following on from the initial question, I'm trying to exclude multiple text strings from my property filter. I created a sub-filter and added both exclusions in, but the sub-filter seems to only work with a single exclusion. When I put two exclusions in the sub-filter, neither of the strings are excluded. Image attached.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Property filtering is a new skill for me, so I'm hoping it's simply a case of me not doing it right.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 02:50:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/include-exclude-layer-filter/m-p/11542587#M310529</guid>
      <dc:creator>leahs6ALC9</dc:creator>
      <dc:date>2022-11-10T02:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: Include Exclude Layer Filter</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/include-exclude-layer-filter/m-p/11542856#M310530</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt;"When I put two exclusions in the sub-filter, neither of the strings are excluded. "&lt;/P&gt;
&lt;P&gt;pure logic&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;~*PATH HATCH&lt;/P&gt;
&lt;P&gt;list all layers, except the layers with 'PATH HATCH' at the end of the name (for example: ENG RD VERGE doesn't match *PATH HATCH)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;~*RD VERGE&lt;/P&gt;
&lt;P&gt;list all layers, except the layers with 'RD VERGE' at the end of the name (for example: ENG RD&amp;nbsp;PATH HATCH doesn't match *RD VERGE)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Result= All layers listed&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is not documented, but you can create such an filter this way:&lt;/P&gt;
&lt;P&gt;~(*PATH HATCH,*RD VERGE)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or for XRef layers only&lt;/P&gt;
&lt;P&gt;~(*|*PATH HATCH,*|*RD VERGE)&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 07:14:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/include-exclude-layer-filter/m-p/11542856#M310530</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2022-11-10T07:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: Include Exclude Layer Filter</title>
      <link>https://forums.autodesk.com/t5/autocad-forum/include-exclude-layer-filter/m-p/11544945#M310531</link>
      <description>&lt;P&gt;I thought that was what was going on. Just didn't know how to get around it. Thanks so much for the workaround. It's exactly what I was looking for.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 23:02:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/autocad-forum/include-exclude-layer-filter/m-p/11544945#M310531</guid>
      <dc:creator>leahs6ALC9</dc:creator>
      <dc:date>2022-11-10T23:02:49Z</dc:date>
    </item>
  </channel>
</rss>

