Add Sketch Constraint
add_constraintApplies geometric constraints such as parallel, tangent, or coincident to sketch entities by index, locking sketch geometry in place within Fusion 360.
Instructions
Add a geometric constraint in the active sketch. Entities are referenced by index within the sketch.
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": {
"constraint_type": "<constraint_type>"
},
"name": "add_constraint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity_one | No | Index of the first sketch entity | |
| entity_two | No | Index of the second sketch entity (not needed for fix/horizontal/vertical) | |
| sketch_name | No | Sketch name (default: most recent) | |
| symmetry_line | No | Index of the symmetry line (only for symmetry constraint) | |
| constraint_type | Yes |