马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
 - (defun c:zt ()
- (setq tlist (tblnext "STYLE" T)
- slist nil
- bgfnt nil
- )
- (while tlist
- (setq sname (cdr (assoc 2 tlist)))
- (if (and (/= sname "")
- (/= (logand 16 (cdr (assoc 70 tlist))) 16)
- )
- (setq slist (cons sname slist))
- )
- (setq smpfnt (cdr (assoc 3 tlist)))
- (setq bgfnt (cdr (assoc 4 tlist)))
- (if
- (and (/= bgfnt "")
- (not (or (findfile (strcat bgfnt ".shx")) (findfile bgfnt)))
- )
- (progn
- (princ "\n********")
- (princ sname)
- (princ "********\n")
- (setq tlist(entget(tblobjname "style" sname)))
- (setq tlist (subst (cons 4 "hztxt.shx") (assoc 4 tlist) tlist))
- (princ(entmod tlist))
- )
- )
- (if
- (or (and (/= smpfnt "")
- (not
- (or (findfile (strcat smpfnt ".shx")) (findfile smpfnt))
- )
- )
- (wcmatch smpfnt "*`.ttf")
- )
- (progn
- (princ "\n********")
- (princ sname)
- (princ "********\n")
- (setq tlist(entget(tblobjname "style" sname)))
- (setq tlist (subst (cons 4 "hztxt.shx") (assoc 4 tlist) tlist))
- (setq tlist (subst (cons 3 "txt.shx") (assoc 3 tlist) tlist))
- (princ(entmod tlist))
- (setq tlist_last tlist)
- )
- )
- (setq tlist (tblnext "STYLE"))
- )
- (princ slist)
- (princ)
- )
|