Select blocks in layout

simon.weel

Usenet Archive
Joined
Jul 8, 2003
Messages
11
Reaction score
0
Hi,

I want a list of a particular block in a particular layout. This is the code I came up with:

(setq ss1 (ssget "x" '((-4 . "<AND") (2 . "Blockname") (410 . "Layoutname") (-4 . "AND>"))))

Although it works fine, it seems a bit elaborate? Is there a more elegant way?

Greetings,

Simon Weel
 
Simon,

You can drop the ANDs, not required in this case. And do you really want a list?, (ssget) produces a selection set.
 

Latest threads

Back
Top