RecipesEdit in bulk
How do I change the height of all text in an AutoCAD drawing at once?
Type "set every text on layer A-ANNO to 2.5 high". cadssistant selects the TEXT and MTEXT on that layer and sets each one's height (group code 40) in one AutoLISP pass, then reports how many it changed. Say "all text in the drawing", "only the 3.5 ones" or "scale text by 0.7" for the variants. Dimension text follows the dimension style, not this; say "dimension text too" and it changes the style's text height instead.
Checked 2026-10-30
set every text on layer A-ANNO to 2.5 high
Paste it into the palette, or pick it from the recipes inside the chat.
What cadssistant does
- Selects TEXT and MTEXT on the layer with one filter, or all of it if you don't name a layer.
- Sets the height of each in a single AutoLISP pass. MTEXT keeps its wrap width; only the character height changes.
- Replies with the count. "Only the ones that are 3.5" adds (40 . 3.5) to the filter; "scale by 0.7" multiplies instead of setting.
The same task in AutoLISP
(progn
(setq ss (ssget "_X" '((0 . "TEXT,MTEXT") (8 . "A-ANNO"))) i 0)
(if ss
(repeat (sslength ss)
(setq ed (entget (ssname ss i)) i (1+ i))
(entmod (subst (cons 40 2.5) (assoc 40 ed) ed))))
(if ss (sslength ss) 0))Group code 40 is the height for both TEXT and MTEXT. Returns the number changed.
Good to know
- 2.5 here is drawing units. For a drawing in metres, say "2.5 mm on paper at 1:100" and it works out 0.25.
- Text inside blocks and attributes don't match TEXT/MTEXT. Say "attributes too" for those.
More in edit in bulk
Command: CADSSISTANT
Works in AutoCAD 2024 and newer on Windows. Free trial, no card, no API key.
Get cadssistant