draw_linear_dimension
Add a native measured linear dimension between two points in a KOMPAS-3D drawing, placing the dimension text at a specified location. Choose orientation and view to fit the drawing context.
Instructions
Create a native measured 2D linear dimension between points, with chosen text location.
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>",
"text_x": "<text_x>",
"text_y": "<text_y>"
},
"name": "draw_linear_dimension"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | ||
| x2 | Yes | ||
| y1 | Yes | ||
| y2 | Yes | ||
| text_x | Yes | ||
| text_y | Yes | ||
| orientation | No | parallel | |
| view_number | No | ||
| drawing_handle | Yes |