- (defun c:tt ()
- (setq n2 (getvar "DIMSCALE"))
- (setq pt1 (getpoint "\n指定做法层第一点: "))
- (setq pt3 (getpoint pt1 "\n指定做法标注点: "))
- (setq pt4 (getpoint pt3 "\n指定标注方向点: "))
- (setq BNO (getstring "\n输入做法: "))
- (setq rad (angle pt3 pt1))
- (setq len (* 5 n2))
- (setvar "osmode" 0)
- (command "qleader" pt1 pt3 pt4 "" BNO nil)
- (while (setq pt2 (getpoint pt1 "\n指定做法层下一点<退出>: "))
- (setq tx (getstring "\n输入做法: "))
- (setq pt1 pt2)
- (setq pt3 (polar pt3 rad len))
- (setq pt4 (polar pt4 rad len))
- (command ".qleader" pt1 pt3 pt4 "" tx nil)
- )
- (princ)
- )
|