Is there a routine out there that lets you set the spacing of text from a line?
Hi One Shot,you can to attempt my script
; stfl is stand for spacing text from line
; Design by Ade Suharna <mteybid@yuasabattery.co.id>
; 15 February 2005
; Program no.190/02/2005
; Edit by
(defun c:stfl (/ opt hit fin tx ssn sse str sp gap tb tb1 tlen
ln ssln ssle spl epl gapl)
(prompt "\nSelect a (T)ext ot (L)ine to move it")
(initget " T L")
(setq opt (getkword "\nWHAT DO YOU WANT TO MOVE IT <T or L>; "))
(setq hit "")
(if opt (= opt hit)(alert "\nPlease try again,choose one"))
(setq fin
(cond
((= opt "T")
(progn
(prompt "\nCLICK A TEXT")
(setq tx (ssget '((0 . "TEXT"))))
(setq ssn (ssname tx 0))
(setq sse (entget ssn))
(setq str (cdr (assoc 1 sse)))
(setq sp (cdr (assoc 10 sse)))
(setq gap (getdist "\nENTER NEW GAP FROM LINE: "))
(setq tb (textbox sse))
(setq tb1 (nth 1 tb))
(setq tlen (car tb1))
(setq sp (list (car sp)(+ (cadr sp) gap)(caddr sp)))
(setq ep (list (+ (car sp) tlen)(cadr sp)(caddr sp)))
(entmake
(list
'(0 . "TEXT")
'(8 . "0")
(cons 10 sp)
'(40 . 2.5)
(cons 1 str) ; name of text
'(50 . 0.0) ; text rotation
'(41 . 1.0) ; with factor
'(51 . 0.0) ; oblique angle
'(7 . "Standard") ; text style name
'(71 . 0) ; 2 = backward,4 = upside down
'(72 . 0) ; horizontal justification
'(73 . 0) ; vertical justification
) ; end of list
) ; end of entmake
(command "_erase" tx "")
) ; end of progn
)
((= opt "L")
(progn
(prompt "\nCLICK A LINE")
(setq ln (ssget '((0 . "LINE"))))
(setq ssln (ssname ln 0))
(setq ssle (entget ssln))
(setq spl (cdr (assoc 10 ssle)))
(setq epl (cdr (assoc 11 ssle)))
(setq gapl (getdist "\nENTER NEW GAP FROM TEXT: "))
(setq spl (list (car spl)(- (cadr spl) gapl)(caddr spl)))
(setq epl (list (car epl)(cadr spl)(caddr epl)))
(entmake
(list
'(0 . "LINE")
'(8 . "0")
(cons 10 spl)
(cons 11 epl)
) ; end of list
) ; end of entmake
(command "_erase" ln "")
) ;end of progn
)
) ; end of cond
) ; end of setq
(princ)
)