Drawing: Apply Drafting Standard
drawing_apply_standardApply an ISO or ANSI drafting standard to the current drawing: create or set its dimension style, text style, units, and optional mech layers in one call.
Instructions
One call for the common case: the standard's dimension style (created
if missing, then current), its text style (created if missing, then
current), the shared units, and with layers the mech layer set (ANSI
layer naming is company-specific, so both standards share it).
Every item reports created or already present; settings.changed
names only the variables that moved, so a second call reports nothing.
An existing ISO-25 / ANSI style is reused as it is, not reset — use
dimstyle_modify to change one. Refuses an unknown standard, or a units
variable it cannot read back, before any write; the underlying style
refusals (dimstyle_create, textstyle_create) apply unchanged. In the
lean profile (Task 13).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| units | No | Also write INSUNITS mm, LUNITS/AUNITS decimal, LTSCALE 1, DIMSCALE 1 | |
| layers | No | Also bootstrap the mech layer set with ISO 128 lineweights | |
| standard | Yes | iso (ISO-25 / ISOCP, decimal comma) | ansi (ANSI / ROMANS, decimal point) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||