修改字standard体样式,autolisp代码如下:
(defun C:st ( / txts txtstyle)
(setvar "cmdecho" 0)
(setvar "blipmode" 0)
(if (null vlax-dump-object) (vl-load-com) )
(setq txts (vla-get-textstyles (vla-get-activedocument (vlax-get-acad-object))))
(setq TxtStyle (vla-Item txts "standard"))
(vla-put-fontfile TxtStyle "romans.shx")
(vla-put-bigfontfile TxtStyle "extfont.shx")
(princ)
);复制到记事本,以【.lsp】为后缀命名,cad【appload】加载,命令【st】。