Create Polyline
entity_create_polylineDraw a 2D polyline by specifying coordinate pairs; set closed, color, or layer to control the resulting CAD entity.
Instructions
Create a lightweight 2D polyline through the given points.
Example: points=[[0,0],[100,0],[100,100],[0,100]], closed=true → rectangle
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": {
"points": "<points>"
},
"name": "entity_create_polyline"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | ACI color code | |
| layer | No | Layer name | |
| closed | No | Whether to close the polyline | |
| points | Yes | List of [x, y] coordinate pairs |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||