• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    Drafting Techniques

    Reply
    Contributor
    Posts: 24
    Registered: ‎04-16-2012

    Layer Filters... AND instead of OR

    208 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
    Please use plain text.
    Distinguished Contributor
    Posts: 124
    Registered: ‎05-23-2007

    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*?

    Please use plain text.
    Contributor
    Posts: 24
    Registered: ‎04-16-2012

    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
    Please use plain text.
    Distinguished Contributor
    Posts: 124
    Registered: ‎05-23-2007

    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!

    Please use plain text.
    Active Contributor
    Posts: 44
    Registered: ‎06-28-2008

    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
    Please use plain text.
    *Expert Elite*
    Bob_Zurunkle
    Posts: 846
    Registered: ‎03-24-2011

    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:
    Please use plain text.