Understand: Describe Drawing
drawing_understandAnalyze a DXF drawing or the current AutoCAD document without modifying it, returning a read-only report with evidence and confidence for units, extents, layers, rooms, blocks, and warnings.
Instructions
One report on a drawing somebody else made, every claim with its evidence
and a confidence. Never modifies the drawing: a file is read as it is, and
the current document through a snapshot (headless: the document in memory;
live: a Document.Export DXF copy in a temporary folder, deleted after).
An xref's own entities are not read - the host drawing is.
units:$INSUNITSas declared against the unit the geometry implies (text heights, wall thickness, door swings, labelled room areas, overall size - each item with its median and its value under every candidate unit). A disagreement is a warning with the numbers, never a silent correction.extents: declared, computed and robust boxes and theoutliersthat stretch them, farthest first, by handle.clusters: separate bodies of model-space content (plan copies, sheets, details), each with its box, entity count, commonest layers and tallest labels.layers: entity count, drawn length (and metres in the inferred unit) and the discipline / service each most likely carries - the vocabulary's confidence (0.9) for a name keyword, 0.6 when most texts on the layer agree, 0.4 when fewer do.equipment_tags(a tag found more than once isambiguous),rooms(room labels in five languages, each with the wall-layer face it sits in and its measured area),languages(Latin / Turkish / Cyrillic character classes),blocks(named / anonymous, kinds by name),layouts,title_blockandwarnings.
Refused before anything is read: a path that does not exist, a DXF over
MAX_DXF_BYTES (the refusal names the size and the variable), and a file
the engine cannot parse (a DWG headlessly: ezdxf reads DXF only).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | DXF file to read (a DWG only on a live seat); omitted: the current document. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||