add_equation
Adds a global variable or equation to a live SolidWorks model and rebuilds it, enabling dimension-driven parametric updates by name.
Instructions
Adds a global variable or an equation and rebuilds. Names go in double quotes, e.g. '"width" = 80' (global variable), '"D1@Boss-Extrude1" = "width" / 2' (drives a dimension). Numbers without units take the document units.
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": {
"equation": "<equation>"
},
"name": "add_equation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| equation | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |