- (defun C:QLINE (/ p1 p2 qd a)
- (setvar "cmdecho" 0)
- (command "LAYER" "m" "$$QLine" "C" 4 "" "")
- (initget 1)
- (setq p1 (getpoint "\n点取桥绘制的第一点: "))
- (initget 1)
- (setq p2 (getpoint p1 "\n点取桥绘制的第二点: "))
- (setq qd (getdist "\n桥宽 m<6>: ")
- qd (if qd qd 6)
- sc (getvar "userr1"))
- (setvar "plinewid" 0)
- (setq d (distance p1 p2))
- (command "PLINE"
- (polar p1 (+ (setq a (angle p1 p2)) (* 0.75 pi)) (* 0.2 d))
- P1
- P2
- (polar p2 (+ a (* 0.25 pi)) (* 0.2 d))
- ""
- "Move"
- (entlast)
- ""
- p1
- (polar p1 (+ a (* 0.5 pi)) qd)
- "MIRROR"
- (entlast)
- ""
- p1
- p2
- "n"
- )
- (setvar "plinewid" 0)
- (setvar "clayer" "0")
- (princ)
- )
|