add_sketch_constraint
Add geometric constraints like coincident, tangent, or perpendicular to sketch entities to define relationships and enforce design intent.
Instructions
Add a geometric constraint to sketch entities. Supported types: coincident, tangent, perpendicular, parallel, horizontal, vertical, equal, concentric, midpoint, colinear, smooth.
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": {
"sketch_index": "<sketch_index>",
"constraint_type": "<constraint_type>",
"entity1_index": "<entity1_index>"
},
"name": "add_sketch_constraint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sketch_index | Yes | Index of the sketch (0-based). | |
| constraint_type | Yes | Type of constraint. | |
| entity1_index | Yes | Index of the first sketch entity (curve or point). | |
| entity2_index | No | Index of the second sketch entity (if required by constraint type). |