autocad_insert_block
Insert a block reference into an AutoCAD drawing by block name or external DXF/DWG file; specify insertion point, scale, rotation, layer, and attributes.
Instructions
Insert a block reference, by name (already defined in the drawing) or by an external drawing file path to import.
Args: params (InsertBlockInput): - name (str): block name, or a path to an external '.dxf' file (COM backend also accepts '.dwg'). - insertion_point (Point), x_scale/y_scale/z_scale (float > 0, default 1.0). - rotation (float): DEGREES, counter-clockwise positive (default 0). - layer (str): default '0'. - attributes (Optional[dict[str, str]]): initial {tag: value} for any attributes defined on the block.
Returns: str: JSON {"status": "created", "type": "INSERT", "handle", "block"}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |