Whoops, the block I was testing it on was called "2"... your test will be as
follows:
(setq HAS-ATTS
(if (= 2 (cdr (assoc 70 (tblsearch "block" "enm"))))
"YES"
"NO"
)
)
--
Sincerely,
Craig P. Black
------------------------------------------------------
A little song, a little dance...
A little seltzer down your pants...
"Craig P. Black" wrote in message
news:5749021@discussion.autodesk.com...
(setq HAS-ATTS (if (= 2 (cdr (assoc 70 (tblsearch "block" "2")))) "YES"
"NO"))
Needs a few error traps, I'm sure...
--
Sincerely,
Craig P. Black
------------------------------------------------------
A little song, a little dance...
A little seltzer down your pants...
"Marcel Janmaat" wrote in message
news:5748989@discussion.autodesk.com...
Hi,
Is there a fast and simple way to ditermine whether a block has attributes
or not?
(command "ddatte" enm) generates an error when "enm" has no attributes.
M