Rectangular Array
entity_array_rectangularCreate a rectangular array of copies from an AutoCAD entity, returning records for each copy. Specify rows, columns, and spacing to generate grid patterns.
Instructions
Create a rectangular array of copies. Returns info of all created copies.
rows x cols is unbounded, so this is a result-heavy tool despite being a create: a 40x40 grid hands back 1600 full records. fields=["handle"] is usually all a caller needs from it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cols | Yes | Number of columns | |
| rows | Yes | Number of rows | |
| fields | No | Project to these fields, in this order (e.g. ['handle','type','layer']); 'properties.<key>' reaches one nested value. Omit for the full record; an unknown name errors and lists the valid ones. | |
| handle | Yes | Entity handle to array | |
| compact | No | Return a columnar {fields, rows, count, offset, total, truncated, next_offset} envelope instead of dicts: much cheaper per row, and the only shape that reports truncation. | |
| col_spacing | Yes | Spacing between columns (X direction) | |
| row_spacing | Yes | Spacing between rows (Y direction) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |