sw_set_variables
Create or update global design variables that drive parametric SolidWorks models, optionally targeting a specific document or the active one.
Instructions
Create or update global variables (the parameters that drive the design).
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": {
"variables": "<variables>"
},
"name": "sw_set_variables"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | No | Document title or path. Defaults to the active document. | |
| variables | Yes | {'span': 1200, 'chord_root': '"span" / 6'} - numbers in mm, strings are expressions. |