马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
用Modent 修改符号表,最后仅进行一次Regen。
- ;|
- 说明:safnt 重新定义图中所有字型定义,
- 需要XDRX_API支持,ONLY for 2000+
- |;
- (defun c:safnt (/ n stl $old_stl)
- (xdrx_sysvar_push "textstyle")
- (setq stl ($xdlsp_symbol->list "style"))
- (setq
- $old_stl (mapcar
- '(lambda (x)
- (list (car x)
- (last x)
- (if (/= (cdr (assoc 4 (entget (last x)))) "")
- (strcat
- (cdr
- (assoc 3
- (entget (last x))
- )
- )
- ","
- (cdr
- (assoc 4
- (entget (last x))
- )
- )
- )
- (cdr (assoc 3 (entget (last x))))
- )
-
- )
- ;stl
- )
- stl
- )
- )
- ;;建立词典,随图保存
- (vlax-ldata-put "#myaxis" "style" $old_stl)
- (foreach n $old_stl
- (setq _name (car n)
- e (cadr n)
- _styleshx (last n)
- )
- (if
- (OR (wcmatch _styleshx "*ttf*")
- (not
- (findfile (strcat (cdr (assoc 3 (entget (cadr n)))) ".shx"))
- )
- (not
- (findfile (strcat (cdr (assoc 4 (entget (cadr n)))) ".shx"))
- )
- (wcmatch _styleshx "*pfb")
- )
- (xdrx_setenttodb (cadr n))
- (xdrx_modent 3 "gbenor.shx" 4 "gbcbig.shx")
- )
- )
- (xdrx_object_regen)
- (xdrx_sysvar_pop)
- (xdrx_end)
- (princ)
- )
|