 - [FONT=courier new](load "xyp_lib.vlx") ;版本 V.20060305(2166)
- ;|下载和加载通用函数(可在签名栏直接下载后放到搜索路径下)
- 利用以下任何一种方式(首选第一种)即可加载和运行通用函数内的所有子程序:
- ★1·在acad.lsp中增加(load"xyp_lib.vlx")
- ■2·在每个程序内增加(load"xyp_lib.vlx")
- ■3·在command下,输入(load"xyp_lib.vlx")
- ■4·在菜单.mnl中增加(load"xyp_lib.vlx")
- ■5·将xyp_lib.vlx文件直接拽到cad屏幕
- [COLOR=red] ★通用函数下载地址:[/COLOR]
- [url]http://www.xdcad.net/forum/attachment.php?s=&postid=1606661[/url]
- |;
- ;;;改某层文字的字型
- (defun c:test ()
- (CMDLA0)
- (while (not (setq s1 (entsel "\n任选一个层实体: "))))
- (setq s1 (car s1)
- la (xyp-get-dxf 8 s1)
- ss (ssget "X" (list (cons 0 "TEXT") (cons 8 la)))
- stylst (xyp-get-tblnext "STYLE")
- i -1
- )
- (princ "\n")
- (princ stylst)
- (SETQ STR (USTR 7 "\n输入新的字体名称" STR NIL))
- (if (member (strcase str nil) stylst)
- (while (setq s1 (ssname ss (setq i (1+ i))))
- (sub_upd s1 7 str)
- )
- )
- (CMDLA1)
- )[/FONT]
|