试试这个:
- (defun c:XrefAlert (/ l)
- (vlax-for blk (vla-get-blocks
- (vla-get-activedocument (vlax-get-acad-object))
- )
- (if (and (eq (vla-get-isXref blk) :vlax-true)
- (= 0 (setq a (vla-get-count blk)))
- )
- (setq l (vl-list* "," (vla-get-name blk) l))
- )
- )
- (if l (alert (strcat "Name of Unloaded Xrefs drawings < " (apply 'strcat (cdr l)) " >")))
- (princ)
- )(vl-load-com)
|