draw_batch
Draw up to 5,000 AutoCAD objects in one command with one undo step; invalid items are skipped and returned with their reasons.
Instructions
ПАКЕТНОЕ РИСОВАНИЕ: много объектов одной командой (до 5000), один шаг отмены. items: список объектов {type, ...параметры, layer?, color?, linetype?, lineweight?}. Типы и параметры: line {x1,y1,x2,y2 | p1,p2}; polyline {points,closed}; rect {x,y,w,h}; circle {cx,cy,r}; arc {cx,cy,r,start_angle,end_angle | points:3}; ellipse {cx,cy,rx,ry,rotation}; polygon {cx,cy,r,sides}; point {x,y}; spline {points}; text {x,y,text,height?,align?,rotation?}; mtext {x,y,text,width?}; dim {x1,y1,x2,y2,offset,vertical?,aligned?,text?}; hatch {points,pattern,scale}. Ошибочные элементы пропускаются, их номера и причины возвращаются.
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": {
"items": "<items>"
},
"name": "draw_batch"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |