Styles: Modify Dimension Style
dimstyle_modifyModify DIM* variables on an existing dimension style, validating whitelist, ranges, and referenced blocks before writing. Returns changed variables and flags dimensions needing rerender.
Instructions
Change variables on an existing dimension style.
changed names only the variables that actually moved — re-setting a
value to itself is not a change. dimensions_using_style lists the
dimensions already drawn with it; headlessly rerender_required: true
says they still show the old style until redrawn (AutoCAD re-renders on
the next regen). Refuses a missing style, an empty overrides, a key
outside the whitelist, a value outside its range, a DIMTXSTY that does
not exist, a user arrowhead block the drawing does not define — all
before any write. On the live engine, editing a non-current style makes
it current for the duration of the call and the previous style is
restored — also when a write fails midway (its unsaved overrides are
discarded, which is AutoCAD's own DIMSTYLE rule).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Existing dimension style name | |
| overrides | Yes | DIM* variables to change, e.g. {DIMDEC: 3, DIMTXT: 3.5} |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||