sch_set_units
Sets the unit system for the active schematic, letting you switch between imperial and metric units for consistent measurement display and editing.
Instructions
Set the unit system for the active schematic.
Calls ISch_Document.SetState_Unit with a TUnit enum value. The
current unit is readable via obj_get_document_info (unit_system field).
Args: unit: one of "mil" , imperial, mils (0.001 in) "inch" , imperial, inches "dxp" , DXP default "auto_imperial" , auto-scaled imperial display "mm" , metric, millimetres "cm" , metric, centimetres "m" , metric, metres "auto_metric" , auto-scaled metric display
Returns: Dictionary confirming the change, with the resulting unit_system ("imperial" or "metric").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||