Here is a complete, ready-to-use AutoLISP routine that searches your drawing for block attributes containing specific text string patterns.
Because attributes live inside block inserts, this code selects the parent block entities so you can instantly move, copy, erase, or isolate them in AutoCAD.
How to Use It
- Open AutoCAD.
- Type
APPLOADin the command line and hitEnter. - Locate your saved
SelAttribText.lspfile, click Load, and close the window. - Type
SELATTRIBTEXTin the command line to start the command. - Enter the text string you want to hunt down
No-Code Alternative
If you prefer not to use a LISP routine, you can use the built-in AutoCAD FIND command
- Type
FINDin the command line. - Enter your text string in the Find what field.
- Click the List results checkbox and hit Find.
- Highlight all the items in the generated list using
Shift, then click the Create Selection Set icon on the right side of the window

No comments:
Post a Comment