(setq Tvalue (cdr (assoc 1 ExistingText)))
Thanks but it doesn't work when the lines are inserted to the code:
(defun c:Twidth (/ ExistingText Ent_Twid
Tvalue)
(setq ExistingText (car (entsel "Select a text to change width: ")))
(setq Ent_Twid (entget ExistingText))
(setq Ent_Twid (subst (cons 41 1.5) (assoc 41 Ent_Twid) Ent_Twid))
(entmod Ent_Twid)
(setq Tvalue (cdr (assoc 1 ExistingText)))
(prompt "Tvalue"))