Add Sketch Constraint
add_sketch_constraintAdd geometric or dimensional constraints to sketch entities, enforcing relationships like coincidence, distance, angle, and tangency for precise parametric modeling.
Instructions
Add a constraint to a sketch.
type: Coincident, Horizontal, Vertical, Distance, DistanceX, DistanceY, Radius, Diameter, Equal, Parallel, Perpendicular, Tangent, Block, Symmetric, Angle. refs: list of [geom_idx, vertex_role] pairs. vertex_role: 0=edge, 1=start, 2=end, 3=center. value: numeric value (mm or radians) for dimensional constraints.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| refs | Yes | ||
| type | Yes | ||
| value | No | ||
| sketch | Yes |