 - (defun c:tt ()
- (setq tx "LMLWS101"
- tx (strcase tx)
- ss (ssget "X" (list '(0 . "TEXT")))
- lst '()
- i -1
- )
- (while (setq s1 (ssname ss (setq i (1+ i))))
- (setq t1 (strcase (xyp-DXF 1 s1)))
- (if (equal t1 tx)
- (setq lst (cons s1 lst))
- )
- )
- (if (> (length lst) 1)
- (alert "当前点号有重复!")
- )
- (princ)
- )
|