selecting with color bylayer

Discussion in 'AutoCAD' started by martin, Feb 16, 2004.

  1. martin

    martin Guest

    i'm using this code to select entities with a certain layer and color but
    how can select ones with color bylayer (no 62 part),or may i should filter
    the ss in a another step?

    (setq b1 (assoc 8 obj))
    (setq b2 (assoc 62 obj))
    (setq ss (ssget (list b1 b2)))

    martin
     
    martin, Feb 16, 2004
    #1
  2. martin

    dean_bourke Guest

    (if (null (assoc 62 obj)).......?

    What do you want in the selection set(s) ?

    Dean
     
    dean_bourke, Feb 16, 2004
    #2
  3. martin

    martin Guest

    e.g. selecting polylines on a layer and bylayer color (not one's with a
    given color)
    martin
     
    martin, Feb 17, 2004
    #3
  4. ByLayer = 256 ByBlock = 0
    To filter all entities on color ByLayer: (ssget "X" '((62 . 256)))

    Stephan
     
    Stephan Koster, Feb 17, 2004
    #4
  5. martin

    martin Guest

    this one solved it, thanks
    martin

     
    martin, Feb 17, 2004
    #5
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.