Set System Variable
system_set_variableSet an AutoCAD system variable such as DIMSCALE or LTSCALE to control drawing behavior. Values are validated against the catalogued range, and read-only variables are refused before any write.
Instructions
Set an AutoCAD system variable (e.g. DIMSCALE, LTSCALE, MEASUREMENT).
Refusals, before anything is written: a value outside the catalogued
range or enum of a known variable, or a write to a read-only variable
(DIMSTYLE, CANNOSCALEVALUE, DWGNAME, …), is refused with the catalogue's
message — system_variable_describe(name) shows the range. A variable the
catalogue does not know is passed through unchanged. The headless engine
additionally refuses registry-saved variables (capability: registry_sysvar) because a file has nowhere to keep them, and names that
ezdxf has no header slot for (a ValueError naming the variable).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | System variable name | |
| value | Yes | New variable value |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||