@Kent1Cooper wrote:
.... you can add more to it to make it into a command definition, and save it to a file, so you can load that and type in the defined command name to use it. Is that what you're after?
Something like this [untested]:
(defun C:ASAF (/ st); = All Styles Arial Font
(while (setq st (tblnext "STYLE" (not st)))
(setq st (entget (tblobjname "STYLE" (cdr (assoc 2 st)))))
(entmod (subst '(3 . "Arial") (assoc 3 st) st))
); while
(princ)
); defun
Change the ASAF if you want a different command name, and change the blue parts as appropriate if you want a different font applied to all Styles.
Save that into a file called something meaningful like AllStylesArialFont.lsp, in some folder location that is listed in the OPTIONS command / Files tab / Support File Search Path list. Use APPLOAD to load it, and type whatever you end up with as a command name [the part following the C:] to run it.
It could also be modified to ask for the font you want used in all Styles, or to ask but offer a default value.
Kent Cooper, AIA