 - ;;验证图元用Entmake产生的必要条件
- (defun C:w3 (/ E EN FLAG LASTENT YAO)
- (defun Mytest (x en)
- (entmake (vl-remove x en))
- )
- (cond ((and (setq e (entsel "\n 图元用Entmake产生的必要条件"))
- (setq e (car e))
- (setq en (entget e))
- )
- (foreach x en
- (setq lastent (entlast))
- (setq Flag (VL-CATCH-ALL-ERROR-P (VL-CATCH-ALL-APPLY 'Mytest (list x en))))
- (cond ((and (equal (entlast) lastent) (not Flag)) (setq yao (cons x yao))))
- )
- )
- )
- (reverse yao)
- )
|