明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

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

[已解答] 怎样实现带过滤的entsel呢?

[复制链接]
发表于 2016-1-14 00:36:50 | 显示全部楼层
xxxycxd 发表于 2016-1-13 23:11
获取选取点是不是需要
(cadr (nth 3 (car (ssnamex (ssget":E:S" '((0 . "TEXT"))) 0)
                ...

没有,:E 可能进子实体了
发表于 2016-1-14 13:36:08 | 显示全部楼层
  1. ;; (uentsel "\n选择单行文本: " "TEXT")
  2. (defun uentsel (msg tp / s1)
  3.   (while (or (not (setq s1 (car (entsel msg))))
  4.              (not (= (cdr (assoc 0 (entget s1))) tp))
  5.          )
  6.   )
  7.   s1
  8. )
发表于 2016-1-14 13:55:52 | 显示全部楼层
xyp1964 发表于 2016-1-14 13:36

老大太有才了,
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-7-15 12:32 , Processed in 0.159332 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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