Add Sketch Dimension
add_sketch_dimensionAdds driving dimensions to sketch entities—linear, angular, radial, diameter, or ellipse axis—to fix sizes, fully define the sketch, and enable later edits via set_dimension.
Instructions
Add a driving dimension to sketch entities: linear, angular, radial, diameter or an ellipse axis.
Use it to fix a size so the sketch is fully defined and can be changed later
with set_dimension. Entities are the ids the add_* tools returned; two
connected lines for angular, a circle or arc for radial or diameter, an
ellipse for major_axis or minor_axis (value is the whole axis; the
dimension runs from the centre, so it shows half). No dialog opens. Needs: an open sketch (create_sketch). Changes: adds the dimension and
resizes the geometry to value. Returns: dimension with id, type, value
and the entities.
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_sketch_dimension"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_data | Yes | The dimension. `entity1` and `value` (mm, or degrees for angular) are required; `entity2` and `dimension_type` (linear) have defaults. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||