(setq ss (ssget '((0 . "TEXT") (1 . "L=196") (62 . 1) (40 . 5))))
This will create selection set of selected text with content L = 196, color red and height 5 units
Change color according to index color numbers.
To select all similar text use selection mode string "X"
(setq ss (ssget "X" '((0 . "TEXT") (1 . "L=196") (62 . 1) (40 . 5))))
To use in command line let say erase:
Command: ERASE
Select objects: !ss
<Selection set: 43>
2 found
Miljenko Hatlak

Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.