只需一步,快速开始
請問各位高手,
點選圖面物件取得群組名稱的LISP該如何寫?
使用道具 举报
(entget(car(entsel)))
不知是不是你要的
psufngah发表于2010-9-5 22:03:00(entget(car(entsel))) 不知是不是你要的
感謝樓上的回覆問題,
我已找到答案, 如下:
(dxf 3 (entget (dxf 330 (entget (dxf 330 (entget (car (entsel))))))))
pizg发表于2010-9-5 23:02:00感謝樓上的回覆問題, 我已找到答案, 如下: (dxf 3 (entget (dxf 330 (entget (dxf 330 (entget (car (entsel))))))))
选择对象: ; 错误: no function definition: DXF
请问楼上的好象不是在dwg里找。是吗?
请指教
谢谢
461045462发表于2010-9-6 6:16:00选择对象: ; 错误: no function definition: DXF 请问楼上的好象不是在dwg里找。是吗? 请指教 谢谢
Dxf 為自訂函數, 如下:
(Defun Dxf(code ent)
(cdr (assoc code ent))
)
试了一下,一个组为AA,另一个组为BB,执行结果都是“AA”,为何没有“BB”?
感謝7樓的高手回覆問題,
您的做法才是正確的.
關於本主題, 以下有詳細的討論:
http://forums.autodesk.com/t5/Visual-LISP-AutoLISP-and-General/Lisp-routine-to-get-GROUP-NAME/m-p/14...
http://forums.autodesk.com/t5/Visual-LISP-AutoLISP-and-General/Get-group-name-of-an-entity/m-p/15262...
本版积分规则 发表回复 回帖后跳转到最后一页
小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 ) ©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途
GMT+8, 2025-2-23 14:14 , Processed in 0.205295 second(s), 26 queries , Gzip On.
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.