sw_add_equation
Drive a SolidWorks dimension using an expression of global variables or other dimensions to create parametric relationships and control model geometry.
Instructions
Drive a dimension with an expression of global variables / other dimensions.
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": {
"dimension": "<dimension>",
"expression": "<expression>"
},
"name": "sw_add_equation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | No | Document title or path. Defaults to the active document. | |
| dimension | Yes | Dimension to drive, e.g. 'D1@Boss-Extrude1'. | |
| expression | Yes | e.g. '"span" / 2' or '"wall" * 2 + 3'. Quote names. |