Add Sketch Relation
add_sketch_constraintAdds geometric relations such as parallel, tangent, or coincident between sketch entities to lock in design intent and keep sketches defined.
Instructions
Add a geometric relation between sketch entities: horizontal, vertical, parallel, perpendicular, tangent, coincident, concentric, equal, symmetric, collinear or fix.
Use it to hold design intent, then check with check_sketch_fully_defined.
Entities are the ids the add_* tools returned. Needs: an open sketch
(create_sketch). Changes: adds the relation. Returns: constraint with id,
type 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_constraint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_data | Yes | The relation. `entity1` and `relation_type` are required; `entity2` when the relation needs two, and `entity3` (the centreline) only for symmetric. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||