|
|
发表于 2008-1-10 08:40:01
|
显示全部楼层
来自: 中国浙江宁波
# T4 w: p2 f% D! V: T
, v) f6 ?9 k) A4 s: R7 vlisp代码:1 w! \1 ]( E9 ?2 @, K
(setq var (getvar "cmdecho"))
4 R- R3 u( r' y0 | (setvar "cmdecho" 0)+ W) G8 b; m6 O% Y
(command "-style" "standard" "gbtxt.shx,hztxt.shx" "" "" "" "" "" "")/ T0 c8 V. n+ A6 M) H
(command "-style" "单位名称" "gbtxt.shx,hztxt.shx" "" "" "" "" "" "")
* v7 M, U, _4 [. u2 T, [' d (command "-style" "工程字" "gbtxt.shx,hztxt.shx" "" "" "" "" "" "")0 Y5 A) B# M0 h* H( ]# T S' s; o
;;(command "-style" "standard" "txt.shx,bigfont.shx" "" "" "" "" "" ""): A8 ~- M" t4 R/ ~1 |6 C. V
;;(command "-style" "单位名称" "txt.shx,bigfont.shx" "" "" "" "" "" "")9 |; c3 U' p `1 G
;;(command "-style" "工程字" "txt.shx,bigfont.shx" "" "" "" "" "" "")
" w2 Y9 O J0 f' B1 e (setvar "cmdecho" var). t! w0 T' ^& T4 r0 E
(command "_qsave")
7 N8 s* p& K0 n (command "close")
7 d* S4 n. U4 _. j }
/ L) m& T8 N% K) z/ M# Y" c代码放在acad.lsp文件中,将此文件放在CAD的support文件夹中,在“选项”中设置每个文件都加载acad.lsp;使用时只需打开要修改的文件即可;自己电脑上2008版调试通过;建议楼主先备份一个要修改的文件然后做试验,修改后删除acad.lsp再次打开修改后的文件,如果成功无问题后在做批量修改;
! x( l' f6 J0 A: y! Q本程序只作方法指导用,建议楼主使用前仔细调试,因各人电脑及软件差异,制作者不承担由此带来的一切后果! |
评分
-
查看全部评分
|