Originally Posted by
methost
Can you explain what each part of that string does? I think I can take it from there.
Sure. For future reference though, there's a nicely detailed explanation with examples of all the LISP commands in the AutoCAD help files (AlispRef.pdf) and a good free basic tutorial on afralisp.com. I'm glad you're going to try it yourself -you'll learn much better that way, but you may also want to download the LISP files I linked and look through them to see the ways others have gone about it. I didn't look through them at all myself, but there are plenty of people out there who can write code better and more elegantly than I ever could..
Code:
(ssget "x" ;;;creates a selection set, x indicates it should use the entire database
'(;;;begins the list of things to filter for
(0 . "TEXT");;;include text objects
(1 . "STRINGTOSEARCHFOR");;; include objects that have whatever you write here in them
);;;closes filter list
);;;closes ssget
Note that the example I gave only filters for dtext. Presumeably, you will want to add mtext and dimension text as well. You can use the code snippet I gave you the other day to delete blank text as a template.