inspect_or_create_dxf
Inspect an existing DXF for layer and entity summaries, or create a new DXF from entity specifications, with an option to open the result in AutoCAD.
Instructions
High-speed offline DXF inspection or creation using ezdxf, with optional handoff to AutoCAD 2027.
Args: dxf_path: Path to the .dxf file to inspect or create. action: 'inspect' to read layers/entities summary of an existing DXF, or 'create' to generate a new DXF from entities_spec. entities_spec: For action='create', a list of dicts describing entities, e.g. [{'type': 'LINE', 'start': [0,0], 'end': [100,0], 'layer': 'WALL'}, {'type': 'CIRCLE', 'center': [50,50], 'radius': 20}]. open_in_autocad: If True, opens the DXF file in the AutoCAD 2027 GUI after completion.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | inspect | |
| dxf_path | Yes | ||
| entities_spec | No | ||
| open_in_autocad | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |