lisp全部文本改宋体字型_[推荐]修改任何文字(包括属性块、有名无名块)

转发一好用程序,可修改任何文字,唯独不能修改尺寸文字,望原创作者或各位高手能修改一下。

LISP:

;自定义UnDo范围

(defun EF:UNDOBegin ()

(setvar "CMDECHO" 0 )

(command "_.undo" "_group")

(princ)

) ;end defun

(defun EF:UNDOEnd()

(setvar "CMDECHO" 0)

(command "_.undo" "_end")

(princ)

) ;end defun

(defun c:tt( / dcl_id1 oba ob1 obn obt ptn otxt txt sty styno lay cyn layno hig wid ang col cnu etlst style layer)

(graphscr)

(EF:UNDOBegin)

(setq olderr *error*)

(defun *error*(msg)

(princ "\n*ERROR*...")

(princ msg)

(princ)

);end defun error.

(defun set_color ( conm / costr )

(defun map_color ( ckey mno )

(start_image ckey)

(fill_image 0 0 (DimX_tile ckey) (DimY_tile ckey) mno)

(end_image)

) ;end defun

(cond ((= 0 conm)(setq costr "Byblock"))

((= 1 conm)(setq costr "Red"))

((= 2 conm)(setq costr "Yellow"))

((= 3 conm)(setq costr "Green"))

((= 4 conm)(setq costr "Cyan"))

((= 5 conm)(setq costr "Bule"))

((= 6 conm)(setq costr "Magenta"))

((= 7 conm)(setq costr "color"))

((= 256 conm)(setq costr "Bylayer"))

( t (setq costr ""))

) ;end cond

(cond ((= 0 col) (map_color "col" 7))

((= 256 col)(map_color "col" (cdr (assoc 62 (tblsearch "layer" lay)))))

(t (map_color "col" conm))

) ;end cond

(if (= 256 conm)

(set_tile "cnu" (s

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值