draw_slot
Adds a straight slot to an open SOLIDWORKS sketch using centre coordinates, centre distance, width and angle, with construction geometry and returned entity IDs.
Instructions
Add a straight slot to the open sketch: two half circles joined by two lines, around a construction centreline. x, y is the slot's centre, centre_distance the distance between the two arc centres, width the slot's width (twice the end radius), angle its direction from +X (0 = horizontal, the default; the result says so). At 0 or 90 degrees it is horizontal or vertical by a relation; centred on the origin it is tied there. In a part its centre distance and end radius (width / 2) become dimensions when the sketch is closed, unless set first: a slot on the origin is then fully defined. At any other angle it also gets a horizontal construction line, and its angle becomes a dimension from that line on closing. Returns the ids of its 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": {
"x": "<x>",
"y": "<y>",
"centre_distance": "<centre_distance>",
"width": "<width>"
},
"name": "draw_slot"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | X of the slot's centre | |
| y | Yes | Y of the slot's centre | |
| unit | No | mm, cm, m, inch or ft | |
| angle | No | Direction of the slot, degrees from +X (default 0) | |
| width | Yes | Width of the slot | |
| centre_distance | Yes | Distance between the centres of the two end arcs |