2218| 13
|
[提问] 如何从多类型的选择集中提取以字母开头的文字内容? |
2明经币
最佳答案(defun c:tt (/ ss ent i Text c1 newss)
(setq ss (ssget))
(setq newss (ssadd))
(setq i 0)
(while (< i (sslength ss))
(setq ent (ssname ss i))
(if (= (cdr (assoc 0 (entget ent))) "TEXT")
(progn
(setq Text (cdr (assoc 1 (entget ent))))
(setq c1 (substr Text 1 1))
(if
(or (and (> c1 "@") (< c1 "["))
(and (> c1 "`") (< c1 "{"))
)
(ssadd ent newss) ...
| ||
| ||
| |
| ||
| ||
| ||
| ||
| ||
| ||
| ||