试试这个- (defun c:test (/ i go vlit kz)
- (setq i 0)
- (setq go (vla-get-groups
- (vla-get-Activedocument (vlax-get-acad-object))))
- (repeat (vla-get-count go)
- (if (= (vla-get-count (setq vlit(vla-item go i))) 0)
- (setq kz (cons (vla-get-name vlit) kz))
- )
- (setq i (+ i 1))
- )
- (princ "\n组为空的组是:")(princ (reverse kz))(princ)
- )
|