draw_line
Insert a native editable line into a drawing or fragment view by specifying start and end points in millimeters, enabling direct geometry creation within KOMPAS-3D.
Instructions
Draw a native editable line in a drawing/fragment view; coordinates in mm.
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": {
"drawing_handle": "<drawing_handle>",
"x1": "<x1>",
"y1": "<y1>",
"x2": "<x2>",
"y2": "<y2>"
},
"name": "draw_line"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | ||
| x2 | Yes | ||
| y1 | Yes | ||
| y2 | Yes | ||
| style | No | ||
| view_number | No | ||
| drawing_handle | Yes |