modify_entities
Modify AutoCAD entities by handle to move, copy, rotate, scale, mirror, erase, or change layer and color in a drawing.
Instructions
Modify one or more entities identified by their handles.
Args: handles: List of entity hex handles (e.g. ['2DA', '2DB']). action: One of 'move', 'copy', 'rotate', 'scale', 'mirror', 'erase', 'set_layer', 'set_color'. base_point: Base point [x, y, z] for move/copy/rotate/scale/mirror. target_point: Target point [x, y, z] for move/copy or second mirror point. rotation_deg: Rotation angle in degrees (for action='rotate'). scale_factor: Scale factor (for action='scale'). layer: Target layer name (for action='set_layer'). color: Target ACI color 1-255 (for action='set_color').
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | ||
| layer | No | ||
| action | Yes | ||
| handles | Yes | ||
| base_point | No | ||
| rotation_deg | No | ||
| scale_factor | No | ||
| target_point | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |