add_sketch_relation
Adds a geometric relation such as horizontal, coincident, or tangent between entities in the open SolidWorks sketch, using coordinate points to identify each entity.
Instructions
Adds a geometric relation between sketch entities of the open sketch.
points: [[x, y], ...] one point (sketch coordinates) on each entity involved. vertex: optional, one flag per point; true picks the sketch POINT there (an end point or centre) instead of the line/arc, as needed by coincident and midpoint (point first).
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": {
"relation": "<relation>",
"points": "<points>"
},
"name": "add_sketch_relation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| points | Yes | ||
| vertex | No | ||
| relation | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |