modify_dimension
Change a specific dimension on a feature or mate in SOLIDWORKS, updating its value in millimeters or degrees.
Instructions
Change a single dimension on a feature in the active part or assembly.
Args: feature_name: Exact name of the feature, e.g. "Boss-Extrude1" — or a mate name ("Distance1") when an ensamble is active. dimension_name: Exact name of the dimension within the feature, e.g. "D1". new_value_mm: New value in millimeters (degrees for angle dims, including angle mates).
Returns the updated feature state.
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": {
"feature_name": "<feature_name>",
"dimension_name": "<dimension_name>",
"new_value_mm": "<new_value_mm>"
},
"name": "modify_dimension"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| feature_name | Yes | ||
| new_value_mm | Yes | ||
| dimension_name | Yes |