# dadadirara/drawing-list-checker architecture

> Architecture diagram of the GitHub repository dadadirara/drawing-list-checker, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/dadadirara/drawing-list-checker
- Repository: https://github.com/dadadirara/drawing-list-checker

## Overview

drawing-list-checker is a Windows desktop tool for checking a drawing-list spreadsheet against DWG title blocks and producing a cell-highlighted Excel report. Its main workflow is to select inputs, convert DWGs through the installed AutoCAD engine, identify title blocks and their sheet-number/title/scale cells, parse and compare the list, then report mismatches and unreadable drawings. The sampled code is a large monolithic app.py, so several domain stages share that path. The README documents major capabilities and sequencing; unsampled implementation details and internal call relationships are not asserted.

Main entry points: [`app.py`](https://github.com/dadadirara/drawing-list-checker/blob/main/app.py) (Row comparison), [`SET_ROI.lsp`](https://github.com/dadadirara/drawing-list-checker/blob/main/SET_ROI.lsp) (Manual ROI setup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["User interaction"]
  node_desktop["Desktop GUI<br/>[app.py]"]
  node_drawing_files["DWG files"]
  node_sheet_list["Drawing list"]
end

subgraph group_drawing["Drawing analysis"]
  node_autocad["AutoCAD engine"]
  node_dxf_conversion["DWG conversion<br/>[app.py]"]
  node_block_detection["Title-block detection<br/>[app.py]"]
  node_cell_derivation["Cell derivation<br/>[app.py]"]
  node_manual_roi["Manual ROI setup<br/>[SET_ROI.lsp]"]
end

subgraph group_checking["List checking"]
  node_list_parsing["List parsing<br/>[app.py]"]
  node_comparison["Row comparison<br/>[app.py]"]
  node_number_checks["Number continuity<br/>[app.py]"]
  node_view_checks["View-symbol checks<br/>[app.py]"]
  node_office_rules["Office conventions<br/>[app.py]"]
  node_unreadable_tracking["Unreadable drawings<br/>[app.py]"]
end

subgraph group_reporting["Reporting"]
  node_report_generation["Excel report<br/>[app.py]"]
  node_report_file["Report workbook"]
end

node_user(("User"))

node_user -->|"uses"| node_desktop
node_user -->|"provides"| node_drawing_files
node_user -->|"provides"| node_sheet_list
node_desktop -->|"starts conversion"| node_dxf_conversion
node_dxf_conversion -->|"uses engine"| node_autocad
node_dxf_conversion -->|"converts drawings for"| node_block_detection
node_block_detection -->|"identifies cells"| node_cell_derivation
node_manual_roi -->|"sets cells"| node_cell_derivation
node_sheet_list -->|"is parsed by"| node_list_parsing
node_cell_derivation -.->|"provides drawing values"| node_comparison
node_list_parsing -->|"provides list rows"| node_comparison
node_comparison -->|"checks numbering"| node_number_checks
node_comparison -->|"checks view symbols"| node_view_checks
node_comparison -->|"filters conventions"| node_office_rules
node_dxf_conversion -.->|"tracks unreadable"| node_unreadable_tracking
node_comparison -->|"supplies results"| node_report_generation
node_unreadable_tracking -->|"supplies unreadable list"| node_report_generation
node_report_generation -->|"writes workbook"| node_report_file

click node_desktop "https://github.com/dadadirara/drawing-list-checker/blob/main/app.py"
click node_dxf_conversion "https://github.com/dadadirara/drawing-list-checker/blob/main/app.py"
click node_block_detection "https://github.com/dadadirara/drawing-list-checker/blob/main/app.py"
click node_cell_derivation "https://github.com/dadadirara/drawing-list-checker/blob/main/app.py"
click node_manual_roi "https://github.com/dadadirara/drawing-list-checker/blob/main/SET_ROI.lsp"
click node_list_parsing "https://github.com/dadadirara/drawing-list-checker/blob/main/app.py"
click node_comparison "https://github.com/dadadirara/drawing-list-checker/blob/main/app.py"
click node_number_checks "https://github.com/dadadirara/drawing-list-checker/blob/main/app.py"
click node_view_checks "https://github.com/dadadirara/drawing-list-checker/blob/main/app.py"
click node_office_rules "https://github.com/dadadirara/drawing-list-checker/blob/main/app.py"
click node_unreadable_tracking "https://github.com/dadadirara/drawing-list-checker/blob/main/app.py"
click node_report_generation "https://github.com/dadadirara/drawing-list-checker/blob/main/app.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_desktop,node_drawing_files,node_sheet_list,node_user toneBlue
class node_autocad,node_dxf_conversion,node_block_detection,node_cell_derivation,node_manual_roi toneAmber
class node_list_parsing,node_comparison,node_number_checks,node_view_checks,node_office_rules,node_unreadable_tracking toneMint
class node_report_generation,node_report_file toneRose
```

## Components

### User interaction

- [Desktop GUI](https://github.com/dadadirara/drawing-list-checker/blob/main/app.py): `app.py`
- **DWG files**
- **Drawing list**

### Drawing analysis

- **AutoCAD engine**
- [DWG conversion](https://github.com/dadadirara/drawing-list-checker/blob/main/app.py): `app.py`
- [Title-block detection](https://github.com/dadadirara/drawing-list-checker/blob/main/app.py): `app.py`
- [Cell derivation](https://github.com/dadadirara/drawing-list-checker/blob/main/app.py): `app.py`
- [Manual ROI setup](https://github.com/dadadirara/drawing-list-checker/blob/main/SET_ROI.lsp): `SET_ROI.lsp`

### List checking

- [List parsing](https://github.com/dadadirara/drawing-list-checker/blob/main/app.py): `app.py`
- [Row comparison](https://github.com/dadadirara/drawing-list-checker/blob/main/app.py): `app.py`
- [Number continuity](https://github.com/dadadirara/drawing-list-checker/blob/main/app.py): `app.py`
- [View-symbol checks](https://github.com/dadadirara/drawing-list-checker/blob/main/app.py): `app.py`
- [Office conventions](https://github.com/dadadirara/drawing-list-checker/blob/main/app.py): `app.py`
- [Unreadable drawings](https://github.com/dadadirara/drawing-list-checker/blob/main/app.py): `app.py`

### Reporting

- [Excel report](https://github.com/dadadirara/drawing-list-checker/blob/main/app.py): `app.py`
- **Report workbook**

### Other components

- **User**

## Connections

- User → Desktop GUI: uses (evidence: `README.md`)
- User → DWG files: provides (evidence: `README.md`)
- User → Drawing list: provides (evidence: `README.md`)
- Desktop GUI → DWG conversion: starts conversion (evidence: `README.md`)
- DWG conversion → AutoCAD engine: uses engine (evidence: `README.md`)
- DWG conversion → Title-block detection: converts drawings for (evidence: `README.md`)
- Title-block detection → Cell derivation: identifies cells (evidence: `README.md`)
- Manual ROI setup → Cell derivation: sets cells (evidence: `README.md`)
- Drawing list → List parsing: is parsed by (evidence: `README.md`)
- Cell derivation → Row comparison: provides drawing values (evidence: `app.py`)
- List parsing → Row comparison: provides list rows (evidence: `README.md`)
- Row comparison → Number continuity: checks numbering (evidence: `README.md`)
- Row comparison → View-symbol checks: checks view symbols (evidence: `README.md`)
- Row comparison → Office conventions: filters conventions (evidence: `README.md`)
- DWG conversion → Unreadable drawings: tracks unreadable (evidence: `app.py`)
- Row comparison → Excel report: supplies results (evidence: `README.md`)
- Unreadable drawings → Excel report: supplies unreadable list (evidence: `README.md`)
- Excel report → Report workbook: writes workbook (evidence: `app.py`)
