variable filter-list item
Posted: Thu Sep 20, 2018 8:04 am
I actually find a block in a drawing with :
(setq ss (ssget "_X" '((2 . "blockname"))))
But I want the blockname to be a variable.
So I want to do :
(setq a "blockname") and then
(setq ss (ssget "_X" '((2 . a)))).
But this do not work. I tries : (list a), (setq a) but that doesn't work either
thanks
(setq ss (ssget "_X" '((2 . "blockname"))))
But I want the blockname to be a variable.
So I want to do :
(setq a "blockname") and then
(setq ss (ssget "_X" '((2 . a)))).
But this do not work. I tries : (list a), (setq a) but that doesn't work either
thanks