RecipesCount and measure
How do I find all text containing a word in an AutoCAD drawing?
Type "find every text containing REV and highlight it". cadssistant selects the TEXT and MTEXT entities whose contents match *REV* with an ssget wildcard filter, grip-highlights them in the drawing so you can see where they are, and replies with a table of handle, layer and text. Nothing is modified. Follow up with "change them all to REV C" and it edits those same entities.
Checked 2026-10-30
find every text containing REV and highlight it
Paste it into the palette, or pick it from the recipes inside the chat.
What cadssistant does
- Selects TEXT and MTEXT whose string (group code 1) matches *REV* with one ssget filter.
- Grip-highlights the matches in the drawing and reads their handles, layers and contents back.
- Replies with a table. The highlight stays until you press Esc. Say "replace REV B with REV C in those" and it edits the same handles.
The same task in AutoLISP
(progn
(setq ss (ssget "_X" '((0 . "TEXT,MTEXT") (1 . "*REV*"))))
(if ss (sssetfirst nil ss))
(if ss (sslength ss) 0))Selects and grip-highlights the matches; returns how many. MTEXT longer than 250 characters continues in group code 3, which this filter doesn't search.
Good to know
- Wildcards follow wcmatch: * for any run of characters, ? for one, # for a digit, [A-C] for a range.
- Block attributes are not TEXT entities. Say "in attributes too" and it walks each block's ATTRIB entities as well.
More in count and measure
Command: CADSSISTANT
Works in AutoCAD 2024 and newer on Windows. Free trial, no card, no API key.
Get cadssistant