set_units
Sets the default length unit (mm, inch, cm, or m) used when a SOLIDWORKS tool input omits a unit, keeping modeling dimensions consistent.
Instructions
Set the default length unit, mm, inch, cm or m, used when a tool's unit input is left out.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"unit": "<unit>"
},
"name": "set_units"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | Yes | New default length unit |