Add Drawing Dimension
add_dimensionAdds a reference dimension to an active SolidWorks drawing view using sheet-coordinate points on edges or vertices; measures distance, length, angle, radius, or diameter.
Instructions
Add one dimension to a drawing view, between edges picked by points on the sheet.
Give points in sheet mm on a view's edges or vertices (read view outlines with
check_drawing). Two parallel edges give their distance; one edge its length;
a circle's edge its radius or diameter; two lines their angle. For the model's
own dimensions use insert_model_dimensions instead. Needs: an open, active
drawing. Changes: adds a reference dimension. Returns: dimension with name,
value and units (mm, deg for angular).
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": "add_dimension"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_data | Yes | The dimension. `dimension_type`, `entity1_point` and `position` are required; `entity2_point` for two entities. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||