;;不针对天正。可以判断一些代理实体,不全面。 - (defun c:zsum ( / i j)
- (vl-load-com)
- (setq i 0 j 0)
- (vlax-for o (vla-get-blocks (vla-get-activedocument (vlax-get-acad-object)))
- (if (= "AcDbZombieEntity" (vla-get-objectname o))
- (setq i (1+ i))
- )
- (vlax-for o2 o
- (if (= "AcDbZombieEntity" (vla-get-objectname o2))
- (setq j (1+ j))
- )
- )
- )
- (if (or (> i 0)(> j 0)) (alert"\n存在代理实体!"))
- (princ)
- )
|