明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
12
返回列表 发新帖
楼主: SWAYWOOD

[求助]块说明和块DXF有关系吗?

    [复制链接]
发表于 2006-6-27 12:20:00 | 显示全部楼层
(entget
  (tblobjname
    "block"
    (cdr (assoc 2 (entget (car (entsel "\n点选匿名块: ")))))
  )
)
 楼主| 发表于 2006-6-27 13:14:00 | 显示全部楼层
哦,原来INSERT和BLOCK间还能这样访问啊
发表于 2006-6-27 14:35:00 | 显示全部楼层

I don't understand why you uploaded a drawing B without an anonymous block. It depends on how you converted your block into an anonymous one. I used the Rename Method and the following code is still working well.

(CDR (ASSOC 4 (TBLSEARCH "BLOCK" (CDR (ASSOC 2 (ENTGET (CAR
(ENTSEL))))))))

 楼主| 发表于 2006-7-24 12:17:00 | 显示全部楼层
You are right sir,the anonymous block still has its name,so we can get the information we want directly.I DID not know this before.Thanks!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-6-21 16:56 , Processed in 0.146172 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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