- (defun c:tt () (setq kd (getdist "\n宽度:<60>"))
- (if (= kd nil)
- (setq kd 60)
- )
- (setvar "osmode" 0)
- (while (setq pt0 (getpoint "\n基准点: "))
- (setq pt1 (polar pt0 (* pi 0.5) 10))
- (setq pt2 (polar pt1 (* pi 0) 100))
- (setq pt3 (polar pt2 (* pi 1.5) kd))
- (setq pt4 (polar pt3 (* pi 1) 150))
- (setq pt5 (polar pt4 (* pi 0.5) kd))
- (command "pline" pt2 pt3 pt4 pt5 "c")
- (setq s1 (entlast))
- (bpoly pt0)
- (command "erase" s1 "")
- )
- (princ)
- )
|