set_units
Sets the active SolidWorks document’s linear unit system to mm, cm, m, in, or ft, then verifies the setting and reports an error if readback does not match.
Instructions
Set the active document's linear unit system.
Accepts mm, cm, m, in or ft (plus common aliases
such as inch or millimeters). The setting is applied and then
read back from the document; if the readback disagrees the tool
reports an error rather than a false success.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_data | Yes | The target unit system. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||