 - (defun c:tt ()
- "曲线中点加文字"
- (xyp-Start)
- (setvar 'WIPEOUTFRAME 0)
- (or tx (setq tx "DN200"))
- (setq tx (Ustr 1 "字符串" tx nil)
- dd (* xyp-sc 300 0.1)
- )
- (while (and (setq s1 (car (entsel "\n选择曲线<退出>: ")))
- (xyp-IsCurve s1)
- )
- (setq pt (xyp-CurveMidPoint s1)
- rad (xyp-AngleAtPoint s1 pt)
- rad (xyp-Rad2Real rad 1)
- s3 (xyp-Text 5 pt tx)
- s3 (xyp-SubUpd s3 50 rad)
- )
- (xyp-TextWipeout s3 dd)
- )
- (xyp-End)
- )
|