add_dimension
Creates horizontal, vertical, or aligned dimensions between two points, with optional offset and custom text, for labeling distances in AutoCAD drawings.
Instructions
Размер между (x1,y1) и (x2,y2). По умолчанию горизонтальный; vertical=True: вертикальный; aligned=True: параллельный отрезку (наклонный). offset: смещение размерной линии (для aligned: >0 слева от направления 1→2). text: своя подпись, text_height: высота текста (иначе авто). Пересекающиеся подписи разносятся автоматически.
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": {
"x1": "<x1>",
"y1": "<y1>",
"x2": "<x2>",
"y2": "<y2>"
},
"name": "add_dimension"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | ||
| x2 | Yes | ||
| y1 | Yes | ||
| y2 | Yes | ||
| text | No | ||
| offset | No | ||
| aligned | No | ||
| vertical | No | ||
| text_height | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |