- ;; 断线查错 需要e派工具箱(XCAD)的支持:http://yunpan.cn/QXQKsW9gAPmpF
- (defun c:tt ()
- (xyp-CMDLA0)
- (xyp-MkLaCo "TEST" 1)
- (setq ukw (UKWORD 1 "1 2" "1-闭合/2-检查" ukw)
- i -1
- )
- (if (setq ss (ssget '((0 . "*polyLINE"))))
- (if (= ukw "1")
- (command "pedit" "m" ss "" "c" "")
- (while (setq s1 (ssname ss (setq i (1+ i))))
- (if (not (xyp-Curve-Close s1))
- (setq s2 (xyp-circle (vlax-curve-getStartPoint s1) 100)
- s3 (xyp-circle (vlax-curve-getEndPoint s1) 100)
- )
- )
- )
- )
- )
- (xyp-CMDLA1)
- )
|