sketch_line
Draws a line between two points in an open SolidWorks sketch, optionally as a construction line for axes or reference geometry.
Instructions
Draws a line in the open sketch between two points (mm). construction=True creates a construction line (e.g. the axis of a revolve).
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": {
"x1_mm": "<x1_mm>",
"y1_mm": "<y1_mm>",
"x2_mm": "<x2_mm>",
"y2_mm": "<y2_mm>"
},
"name": "sketch_line"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1_mm | Yes | ||
| x2_mm | Yes | ||
| y1_mm | Yes | ||
| y2_mm | Yes | ||
| construction | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |