Get Dimension
get_dimensionReads a named dimension from the active SolidWorks model's active configuration, returning its value and units; find dimension names with list_model_dimensions.
Instructions
Read one dimension of the active model by its full name, e.g. "D1@Sketch1".
Find names with list_model_dimensions. It reads the active configuration's
value; activate_configuration to read another. Needs: an open part or
assembly. Read-only. Returns: dimension with name, value and units: "mm" for a
length, "deg" for an angle, and null for a count (such as a pattern's
instance count).
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": {
"input_data": "<input_data>"
},
"name": "get_dimension"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_data | Yes | The dimension. Give `name` (or `dimension_name`), e.g. "D1@Boss-Extrude1". |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||