 - (defun c:tt ()
- (while (and (setq p1 (getpoint "\n指定第一点: "))
- (setq p2 (getpoint p1 "\n指定第二点: "))
- (setq p3 (getpoint p2 "\n指定第三点: "))
- )
- (command "pline" p1 "w" "0.2" "" p2 "")
- (command "offset" "4" (entlast) p3 "")
- (setq s1 (entlast)
- p3 (vlax-curve-getEndPoint s1)
- p4 (vlax-curve-getStartPoint s1)
- pt (inters p1 p3 p2 p4)
- )
- (entmake (list '(0 . "TEXT")
- (cons 1 "道路")
- (cons 10 pt)
- (cons 40 1.5)
- (cons 41 1)
- (cons 7 "HZDX")
- (cons 8 "TK")
- (cons 71 0)
- (cons 72 1)
- (cons 73 2)
- (cons 11 pt)
- )
- )
- )
- (princ)
- )
|