Add Sketch Line
add_lineDraws a straight line between two points in an open sketch to create straight-edge profiles, using millimeter coordinates and optional construction geometry.
Instructions
Draw a straight line between two points in the open sketch, in mm.
Use it for profiles made of straight edges; for a closed box, use
add_rectangle, and for a revolve axis, add_centerline. Needs: an open sketch
(create_sketch). Changes: adds a line (a construction line with
construction). Returns: line with id, start, end and length. Its
id is what add_sketch_constraint and add_sketch_dimension take.
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_line"
}
}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 off. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||