Hello there,
i wrote a Code to check, if the Block have attributes and when not select a other one.
Just want to now if there is a better why.
(defun Multipass (/ blk ans)
(while
(= nil
(Assoc 66
(entget
(setq
blk (ssname
(Progn
(while
(if (Setq blk (ssget "_:S" '((0 . "INSERT"))))
nil
T
)
)
blk
)
0
)
)
)
)
)
)
(setq ans (attget->user blk)
)
)