sw_create_sketch
Create parametric 2D sketches in SolidWorks from lines, shapes, slots, splines, and airfoils, adding patterns, mirrors, and named driving dimensions so models remain editable.
Instructions
Create a 2D sketch: lines, polylines (rounded corners), rectangles, circles, ellipses, arcs, polygons, slots, splines, points, centerlines and airfoils (NACA 4/5-digit or .dat).
Entities may carry a pattern (grid / bolt circle), mirror_about, and dimension (driving
dimensions, optionally named, so the model can later be changed with sw_set_dimension or equations).
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": {
"entities": "<entities>"
},
"name": "sw_create_sketch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| doc | No | Document title or path. Defaults to the active document. | |
| name | No | Optional name for the new feature. | |
| plane | No | 'front', 'top', 'right', or a plane name such as 'Plane1'. | front |
| entities | Yes | ||
| face_point | No | Sketch on the planar face at this point instead. | |
| fully_define | No | Let SolidWorks add relations and dimensions until the sketch is fully defined. | |
| model_coordinates | No | Give every point as [x, y, z] model mm (recommended on faces/offset planes). |