PDA

View Full Version : ssget with two filters


kyheulon
22-09-2004, 12:16 AM
Everyone,

This works for me....
(setq test (ssget "x" '((2 . "blkname") (410 . "layout1"))))

But I want to be able to use the current layout instead of the "layout1", so I try this with and error of "bad point argument"...
(setq blk (cons 2 "blkname"))
(setq clayout (cons 410 (getvar "ctab")))
(setq test (ssget "x" blk clayout))

Any ideas on how to make this work?

Thanks

YosSa
22-09-2004, 05:45 AM
(setq blokname "MyBlock")
(setq clayout(getvar "CTAB"))
(setq selection (ssget "X"(list(cons 2 blokname)(cons 410 clayout)))))

Should do it