只需一步,快速开始
在使用entget函数时,如果指定了应用名,则可获得扩展数据,诸如:
(entget (entlast) '("DJInfo"))
如果想将应用名用变量代替,我该如何写上述表达式?
使用道具 举报
(setq AppName "DJInfo")
(entget (entlast) (list AppName))
谢谢两位,原来不用quote也可以,我一直以为必须要用 (quote ("DJInfo")) 才行。
本版积分规则 发表回复 回帖后跳转到最后一页
小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 ) ©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途
GMT+8, 2024-5-20 11:50 , Processed in 0.159838 second(s), 27 queries , Gzip On.
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.