CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products []
Cesky English Deutsch
 Visitors: 5863 
Plex.Earth connects AutoCAD and Google Earth

CAD tip CAD tip # 7249:

Question CAD 
 %  platform  category 
Q - question

How to select all drawing entities containing a given text?

A - answer To select text objects containing a given text string, use the QSELECT command, choose the object type Text (or Mtext), the property Contents and the operator "* Wildcards". In the field Value then enter the searched text including the wildcard charactes - e.g. *123* selects all text entities containing the string "123"; or A* selects all texts starting with "A" (uppercase).

Similarly you can use the FILTER command and its filter value Text, value and type the text mask in the field X.

Of course you can also use the LISP expression for filtered selection set of objects - e.g. again the texts starting with "A":

(ssget"_X" '((0 . "*TEXT")(1 . "A*")))
100% *  CAD 
9.3.2010    6663×  
Comments   Tell a friend
applies to: AutoCAD · AutoCAD Architecture ·

See also:
Tip 9265:RENAME on steroids - complex renaming of AutoCAD objects.
Tip 7892:How to find blocks with an empty (not-filled-in) attribute?
Tip 7241:Searching text in DWG drawings (without AutoCAD).
Tip 4708:How to find a dot (.), asterisk (*) or question mark (?) in the drawing text?
Tip 3229:How to replace texts in many AutoCAD drawings? (regular expressions)

Back   All CAD Tips All CAD tips&tricks

How to import CEL files (Microstation blocks) into AutoCAD? « | » How to load/install a LISP application in AutoCAD?

Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD:    OS:    Categ: 
Text:  FAQ glossary   

Increase your productivity with our set of BIM add-on functions for Autodesk Revit
CADstudio Revit Tools More info

Please use these tips at your own risk.
CAD Studio (Xanadu) is not responsible for possible problems that may occur as a result of using any of these tips.