select block by attribute value?

Discussion in 'AutoCAD' started by GertB, Dec 8, 2003.

  1. GertB

    GertB Guest

    I am currently using a lisp routine to work on some of the blocks in
    drawings I receive, and the blocks are selected very simply :

    (setq ss (ssget "X" (list (cons 2 "blocketyblock"))))

    Now I have a drawing with only 1 block def, where all blocks are
    differentiated only by the value of an attribute called "type".

    How do I refine my selection to only include blocks where the "type"
    attribute has a certain value?

    All input greatly appreciated.

    GertB
     
    GertB, Dec 8, 2003
    #1
  2. GertB

    Tom Berger Guest

    Attributes are entities by themselves. Search for ATTRIB entities.

    Tom Berger
     
    Tom Berger, Dec 8, 2003
    #2
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.