I am trying to change the textstyle associated with a particular dimension style. The code that follows only sets an override for the text style; it does not change the original dimension style. Also, it must be done without using the (command) function. (defun c:fixStyle2 (/ a b c DS SN1 SN2) (setq DS "STANDARD") ; dimension style affected (setq SN1 (strcase "BAD_STYLE")) ; style that I don't want (setq SN2 (strcase "STANDARD")) ; style that I want to change to (setq a (tblobjname "DIMSTYLE" DS)) ; get dimstyle entity name (setq b (entget a)) ; get dimstyle entity data (setq c (cdr (assoc 340 b))) ; get textstyle pointer (if (equal c (tblobjname "STYLE" SN1)) ; compare pointers (entmod (subst (cons 340 (tblobjname "STYLE" SN2)) (assoc 340 b) b ) ) ) (princ) )