How would you "get" the value you want to insert into the text override?
Is it something you simply type in on the fly or to you copy it from somewhere?
If you simply type it on the fly, could be done with lisp (simple _dimlinear function):
Code:
(defun c:foo (/ txt cme)
(setq cme (getvar "cmdecho"))
(setvar "cmdecho" 1)
(setq txt (getstring (prompt"TEXT OVERRIDE VALUE?")))
(command "_dimlinear" pause pause "text" txt pause "")
(setvar "cmdecho" cme)
(princ)
)
Just an idea, (a quick crude routine without error trapping etc)