select block by attribute value?

GertB

Usenet Archive
Joined
Dec 8, 2003
Messages
1
Reaction score
0
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
 
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?

Attributes are entities by themselves. Search for ATTRIB entities.

Tom Berger
 

Latest threads

Back
Top