 - ;;;1、只有一边会相交,若可能双边的话自加判断
- ;;;2、可以用pedit命令连接断线,自理
- (defun c:tt(/ SS interp)
- (setq ss(ssget))
- (setq interp
- (vlax-safearray->list
- (vlax-variant-value
- (vla-IntersectWith
- (vlax-ename->vla-object (setq e1(ssname ss 0)))
- (vlax-ename->vla-object (setq e2(ssname ss 1)))
- acExtendBoth
- )
- )
- )
- )
- (entmake (list(CONS 0 "LINE")(cons 10(vlax-curve-getclosestpointto e1 interp))(cons 11 interp)))
- (entmake (list(CONS 0 "LINE") (cons 10(vlax-curve-getclosestpointto e2 interp))(cons 11 interp)))
- (PRINC)
- )
-
|