只需一步,快速开始
使用道具 举报
这里要这样改下:
(while (/= txt "TEXT") (setq s1 (car (entsel "选择第一个带前后缀的文本 : ")) txt (dxf 0 (entget s1))) ) (setq str (dxf 1 (entget s1)) ;将这部件移到while外面,因如果选择的不是text,则会出错 bb str str-l (strlen str) ll str-l n 0)
本版积分规则 发表回复 回帖后跳转到最后一页
小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 ) ©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途
GMT+8, 2025-2-27 20:08 , Processed in 0.182287 second(s), 23 queries , Gzip On.
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.