draw_line
Draws one straight line in a sketch, either open or as a construction line for a revolve axis. Use for individual lines that do not form a closed profile.
Instructions
Draw one straight line in a sketch, in the sketch's coordinates — an open line, or a construction line for a revolve axis. Lines drawn one by one don't join into a profile: for a closed shape use draw_closed_profile or draw_rectangle.
Args: x1: Start X in mm. y1: Start Y in mm. x2: End X in mm. y2: End Y in mm. sketch_index: Sketch number (0 = latest sketch). construction: If True, line becomes a construction line (used as revolve axis, not part of profile).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "draw_line"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | No | ||
| x2 | No | ||
| y1 | No | ||
| y2 | No | ||
| instance | No | Which connected Inventor to use (list_instances). Leave empty when only one is connected. | |
| construction | No | ||
| sketch_index | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |