inspect_civil_dxf
Inspect civil DXF drawings to detect CRS, units, layers, and geometry issues before measurement, ensuring accurate quantity takeoffs.
Instructions
[STEP 1 of HITL Workflow] Inspect a civil engineering DXF drawing before any measurement.
Returns:
- Modelspace vs. Paperspace entity counts and 3D bounding box
- 3-factor CRS & Drawing Unit estimation (auto-detects Hungarian EOV HD72 metric coordinates,
checks $INSUNITS header mismatches, and analyzes median text heights)
- Per-layer entity type breakdown, closed/open/nearly-closed polyline counts, HATCH counts,
distinct INSERT block names, block ATTRIB tag names, and cleaned sample texts
- CAD Hygiene Warnings (Civil 3D proxy objects, external XREFs, 3D 'Flying Z' elevation jumps,
nearly-closed polylines, and duplicate segments)
After calling this tool, present the layer mapping and `recommended_unit_scale_to_meter`
to the user for confirmation before calling `measure_linear_and_area_features` or
`extract_utility_network_and_levels`.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"file_path": "<file_path>"
},
"name": "inspect_civil_dxf"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | Yes | Absolute or relative path to the .dxf drawing file. | |
| max_sample_texts | No | Maximum number of sample cleaned TEXT/MTEXT/ATTRIB strings to return per layer. | |
| layer_filter_regex | No | Optional case-insensitive regular expression to filter layer names (useful on drawings with 200+ layers). | |
| ignore_empty_layers | No | If True (default), omits layers that contain 0 Modelspace entities. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layers | No | ||
| file_path | Yes | ||
| dxf_version | Yes | ||
| crs_and_units | Yes | ||
| modelspace_bbox | No | ||
| cad_health_warnings | No | ||
| total_layers_returned | Yes | ||
| total_modelspace_entities | Yes | ||
| total_paperspace_entities_ignored | Yes |