 - (defun c:tt ()
- ;; tt(拷贝文字随线角度)
- (if (and (setq s1 (car (entsel "\n选择文字: ")))
- (xyp-Etype s1 "TEXT")
- )
- (progn
- (redraw s1 3)
- (while (and (setq e (entsel "\n选择对齐线: "))
- (setq s2 (car e))
- (xyp-curve-check s2)
- (setq p0 (vlax-curve-getclosestpointto s2 (cadr e)))
- (setq rad (xyp-Rad2Real (xyp-Get-AngleAtPoint s2 p0) 1))
- )
- ;;(xyp-Cross p0 300 0)
- (xyp-CopyMove s1 (xyp-9pt s1 5) p0)
- (xyp-SubUpd (entlast) 50 rad)
- )
- (redraw s1 4)
- )
- )
- (princ)
- )
|