Create Line
entity_create_lineCreate a line from (x1,y1) to (x2,y2) with optional color, layer, and linetype settings. Returns entity info including handle.
Instructions
Create a line from (x1,y1) to (x2,y2). Returns entity info with handle.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x1 | Yes | Start X coordinate | |
| x2 | Yes | End X coordinate | |
| y1 | Yes | Start Y coordinate | |
| y2 | Yes | End Y coordinate | |
| z1 | No | Start Z coordinate (default 0) | |
| z2 | No | End Z coordinate (default 0) | |
| color | No | ACI color code 1-255, 256=ByLayer, 0=ByBlock | |
| layer | No | Layer name (default: current layer) | |
| linetype | No | Linetype name (e.g. 'DASHED', 'CENTER') |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||