Drafting Techniques

Drafting Techniques

Reply
Active Contributor
BlueVue
Posts: 26
Registered: ‎04-16-2012
Message 1 of 6 (255 Views)

Layer Filters... AND instead of OR

255 Views, 5 Replies
04-19-2012 11:55 AM

I'm trying to create a layer filter that only shows me Xref layers except for the LOCATOR layer which has a block we use to align the various Xref's together. Main use is for forcing xref background layers to grey, but want to retain the locators in their original color...

 

First line of the filter: *|*

Second line:~*LOCATOR*

 

The problem is that Acad assumes that multiple lines containing the same attribute are OR statements, not AND. Is there any way to do what I want to do??

================================
Vanilla AutoCAD 2010
Distinguished Contributor
jwjones1
Posts: 128
Registered: ‎05-23-2007
Message 2 of 6 (251 Views)

Re: Layer Filters... AND instead of OR

04-19-2012 12:26 PM in reply to: BlueVue

Have you tried *i*locator* and *locator*i*?

Active Contributor
BlueVue
Posts: 26
Registered: ‎04-16-2012
Message 3 of 6 (249 Views)

Re: Layer Filters... AND instead of OR

04-19-2012 01:52 PM in reply to: jwjones1

jwjones1 wrote:

Have you tried *i*locator* and *locator*i*?


Those two filters (with or without the Excluding ~ symbol) will either give me ONLY the locators, or give me everything BUT the locators, including the non-xref layers (Layer 0, Defpoints, etc)

Not the result I'm looking for...

What I want is Only Xref, and/but Exclude their Locators.

 

================================
Vanilla AutoCAD 2010
Distinguished Contributor
jwjones1
Posts: 128
Registered: ‎05-23-2007
Message 4 of 6 (248 Views)

Re: Layer Filters... AND instead of OR

04-19-2012 02:09 PM in reply to: BlueVue

Ok, helps when I read what you posted.  DOH!

 

Unfortunately, I don't have a good answer for you... I suppose I would turn off the locator layers by...

 

-layer

off

*locator*

 

and then set up a filter to find all the layers with | in them that were on.  Not a very elegant solution.  Hopefully someone else here will have a better answer.

 

Good luck!

Distinguished Contributor
cbaildon001
Posts: 158
Registered: ‎06-28-2008
Message 5 of 6 (187 Views)

Re: Layer Filters... AND instead of OR

07-15-2012 02:24 PM in reply to: BlueVue

Hear hear. I would like an anwser to this one as well.

 

As far as I can find the Layer Filter assumes all statements are OR statements and there is no option to choose whether it is AND or OR.

 

Any ideas or is this one for the wish list?

Caleb Baildon
Surveyor
Opus International Consultants Ltd
Greymouth, New Zealand
Civil3D 2015 - Windows7 64bit
*Expert Elite*
Bob_Zurunkle
Posts: 1,041
Registered: ‎03-24-2011
Message 6 of 6 (173 Views)

Re: Layer Filters... AND instead of OR

07-18-2012 10:08 AM in reply to: cbaildon001

The following will exclude all XREF layers:

~*|*

There's a switch you can flip to invert it to be nothing but XREF layers.

Unfortunately I am not sure how to include a non-XREF layer. If someone has an answer it would be interesting to see :smileyhappy:

If by some odd chance my nattering was useful -- that's great, glad to help. But if it actually solved your issue, then please mark my solution as accepted :smileyhappy:
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.