Add Sketch Centerline
add_centerlineDraw a construction centerline in an open SolidWorks sketch to serve as a revolve axis or mirror/symmetry reference without adding geometry to the profile.
Instructions
Draw a centreline (construction line) in the open sketch, in mm.
Use it as the axis for create_revolve, or as the line for sketch_mirror and
symmetric relations. It is never part of the profile. Needs: an open sketch
(create_sketch). Changes: adds a centreline. Returns: centerline with id,
start_point and end_point.
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": {
"input_data": "<input_data>"
},
"name": "add_centerline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input_data | Yes | The line. Give `x1`, `y1`, `x2`, `y2` (mm; or `start_x`, `start_y`, `end_x`, `end_y`); `construction` is not used. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||