Select 3d polylines with multiple numeric filters

Discussion in 'AutoCAD' started by Jon, Oct 8, 2004.

  1. Jon

    Jon Guest

    Problem: Multiple numeric filters for selecting polylines.
    I need to select 3d polylines, which means my filters are
    0 - "POLYLINE"
    70 - 8

    but I also need to select closed 3d polylines as well (9).
    I have tried
    -4 "<or"
    70 8
    70 9
    -4 "or>"
    but to no avail.
    Also tried
    70 "8,9" thinking it may be like "Line,Polyline" but that didn't work
    either.
    70 array(8,9) but no good either

    Can I set up a filter that will allow multiple numeric filters or should I
    let the user select all polylines and scan thru the selection set for the 3d
    ones?

    Thanks,

    Jon
     
    Jon, Oct 8, 2004
    #1
  2. Jon

    Jürg Menzi Guest

    Hi Jon

    Use bitwise masked equals:
    0 "POLYLINE"
    -4 "&="
    70 1
    -4 "&="
    70 8
    to select all closed 3d polylines...

    Cheers
     
    Jürg Menzi, Oct 8, 2004
    #2
  3. Jon

    Jon Guest

    Thanks for the reply Jürg,
    I would like to select 3d polylines whether they are closed or open, not
    just closed polylines. These bitwise operators twit my brain.

    Regards,

    Jon
     
    Jon, Oct 8, 2004
    #3
  4. Jon

    Jürg Menzi Guest

    Welcome...¦-)
    In this case...
    0 "POLYLINE"
    -4 "&="
    70 8

    Cheers
     
    Jürg Menzi, Oct 8, 2004
    #4
  5. Jon

    Jon Guest

    Thanks Jürg, that worked a treat.

    Jon

     
    Jon, Oct 8, 2004
    #5
  6. Jon

    Jürg Menzi Guest

    Glad to help you...¦-)

    Cheers
     
    Jürg Menzi, Oct 8, 2004
    #6
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.