明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1469|回复: 2

[讨论] 这个程序为何会这样,如何改?

[复制链接]
发表于 2010-4-23 22:12:00 | 显示全部楼层 |阅读模式

我图上的文字是(地产开发有限公司                      单位:㎡),不知啥原因用了(自动修改字体.LSP)这个程序后,文字变成(地产开发有限公司                      单位:O)

(defun c:ft (/ elist nm en cn enl)
(setq elist (tblnext "STYLE" T))
(while (/= elist nil)
(setq nm (cdr (assoc 2 elist))
en (cdr (assoc 3 elist))
cn (cdr (assoc 4 elist))
enl (strlen en)
)
(if (and
(/= en nil)
(= cn nil)
(= (findfile en) nil)
(= (strcase (substr en (- enl 2))) "SHX")
)
(command "_style" nm "romans.shx" "0.0" "0.8" "" "" "" "")
)
(if (and
(/= cn nil)
(= (findfile cn) nil)
)
(command "_style" nm "romans.shx,hztxt.shx" "0.0" "0.8" "" "" "" "")
)
(setq elist (tblnext "STYLE"))
)
)

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

x
发表于 2010-4-23 23:32:00 | 显示全部楼层
因为那个字体是特殊的,不能随便换。
 楼主| 发表于 2010-4-24 18:37:00 | 显示全部楼层
真的没有更好的方法吗?(或者有使程序把别的都转换,单遇到  单位:㎡的这样字体不转换的方法吗?)
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2024-10-2 01:38 , Processed in 0.169330 second(s), 26 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表