manage_block
List block definitions, create new blocks from entity handles, or insert block references with scale, rotation, layer, and color settings in AutoCAD drawings.
Instructions
List blocks, create a new block definition from entity handles, or insert a block reference.
Args: action: One of 'list', 'create', 'insert'. block_name: Name of the block (required for 'create' and 'insert'). point: Base point (for 'create') or insertion point (for 'insert'). handles: List of entity handles to group into the block (required for 'create'). scale_x: X scale factor for 'insert'. scale_y: Y scale factor for 'insert'. scale_z: Z scale factor for 'insert'. rotation_deg: Rotation angle in degrees for 'insert'. layer: Optional layer name for 'insert'. color: Optional ACI color for 'insert'.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | ||
| layer | No | ||
| point | No | ||
| action | No | list | |
| handles | No | ||
| scale_x | No | ||
| scale_y | No | ||
| scale_z | No | ||
| block_name | No | ||
| rotation_deg | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |