- ;;;连续注标高
- (defun c:lev (/ s s1 k00)
- (setvar "cmdecho" 0)
- (setq s (getreal "\n输入出图比例[1:]<100>:"))
- (if (= s nil)
- (setq s 100)
- )
- (setq s1 (* 300 (/ s 100))
- t0 "%%p0.000"
- a (getpoint "\n输入零点标高插入点 : ")
- )
- (dbg a s1 t0)
- (while (setq a1 (getpoint a "\n输入标高插入点 : "))
- (setq k00 (rtos (/ (- (cadr a1) (cadr a)) 1000) 2 3))
- (dbg a1 s1 k00)
- )
- )(defun dbg (pt1 s1 t0)
- (setq pt2 (list (+ (car pt1) S1) (+ (cadr pt1) S1))
- pt3 (list (- (car pt1) S1) (+ (cadr pt1) S1))
- pt4 (list (car pt1) (+ (cadr pt1) S1))
- pt5 (list (+ (car pt4) (* 5 S1)) (cadr pt4))
- pt6 (list (car pt1) (+ (cadr pt1) (* 1.5 S1)))
- )
- (command "pline" pt2 pt1 pt3 pt5 "")
- (command "text" pt6 s1 "" t0)
- )
|