# lukastuurman/vo-automaatische-skill architecture

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

- Interactive diagram: https://gitdiagram.com/lukastuurman/vo-automaatische-skill
- Repository: https://github.com/lukastuurman/vo-automaatische-skill

## Overview

This repository is a Dutch LS-VO design tool that creates a candidate low-voltage cable design from source CAD, KLIC/WFS, BGT/topography and framework data. Its principal workflow inventories sources, designs and routes directions, checks electrical capacity, draws the candidate CAD, then validates and previews it. Separate capabilities include refinement of saved designs and removal analysis. The graph follows documented workflow steps and indexed source references; some implementation details are unsampled, so uncertain links are omitted.

Main entry points: [`scripts/vo_ontwerp.py`](https://github.com/lukastuurman/vo-automaatische-skill/blob/main/scripts/vo_ontwerp.py) (Direction design), [`scripts/vo_bronnen.py`](https://github.com/lukastuurman/vo-automaatische-skill/blob/main/scripts/vo_bronnen.py) (Source inventory), [`scripts/vo_tekenen_bron.py`](https://github.com/lukastuurman/vo-automaatische-skill/blob/main/scripts/vo_tekenen_bron.py) (Source CAD drawing), [`scripts/vo_controle.py`](https://github.com/lukastuurman/vo-automaatische-skill/blob/main/scripts/vo_controle.py) (Saved design checks)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_inputs["Source inputs"]
  node_sourcecad["Source CAD"]
  node_klicwfs["KLIC / WFS"]
  node_framework["Framework data"]
  node_bgt["BGT / topography<br/>[haal_bgt.py]"]
end

subgraph group_design["Design and routing"]
  node_inventory["Source inventory<br/>[vo_bronnen.py]"]
  node_router["Surface router<br/>[vo_router.py]"]
  node_designengine["Direction design<br/>[vo_ontwerp.py]"]
end

subgraph group_engineering["Engineering checks"]
  node_electrical["Path calculations"]
  node_materials["Cable materials<br/>[vo_materialen.py]"]
  node_paths["Path geometry<br/>[vo_paden.py]"]
end

subgraph group_cad["CAD output"]
  node_drawing["Source CAD drawing<br/>[vo_tekenen_bron.py]"]
  node_finishing["Cable finishing"]
  node_station["Station exits"]
  node_legacy["Reference reconstruction"]
  node_annotate["Text and draw order"]
end

subgraph group_review["Review and refinement"]
  node_validation["Saved design checks<br/>[vo_controle.py]"]
  node_preview["CAD preview<br/>[vo_preview.py]"]
  node_refinement["Saved design refinement"]
  node_removal["Removal analysis<br/>[vo_verwijderen.py]"]
end

node_designer(("VO designer"))

node_designer -->|"starts workflow"| node_inventory
node_sourcecad -->|"provides CAD"| node_inventory
node_klicwfs -->|"provides source data"| node_inventory
node_framework -->|"provides criteria"| node_inventory
node_bgt -.->|"provides topography"| node_router
node_inventory -->|"supplies sources"| node_designengine
node_router -->|"routes design"| node_designengine
node_designengine -->|"calculates capacity"| node_electrical
node_designengine -->|"uses material data"| node_materials
node_designengine -->|"builds path checks"| node_paths
node_designengine -->|"supplies design"| node_drawing
node_drawing -->|"finishes cables"| node_finishing
node_drawing -->|"lays out exits"| node_station
node_designer -->|"reviews candidate"| node_validation
node_validation -->|"previews saved CAD"| node_preview
node_designer -->|"refines saved design"| node_refinement
node_refinement -->|"checks changes"| node_validation
node_designer -.->|"checks removals"| node_removal
node_designer -->|"reconstructs reference"| node_legacy
node_drawing -->|"lays out text"| node_annotate

click node_bgt "https://github.com/lukastuurman/vo-automaatische-skill/blob/main/scripts/haal_bgt.py"
click node_inventory "https://github.com/lukastuurman/vo-automaatische-skill/blob/main/scripts/vo_bronnen.py"
click node_router "https://github.com/lukastuurman/vo-automaatische-skill/blob/main/scripts/vo_router.py"
click node_designengine "https://github.com/lukastuurman/vo-automaatische-skill/blob/main/scripts/vo_ontwerp.py"
click node_electrical "https://github.com/lukastuurman/vo-automaatische-skill/blob/main/scripts/reken_richtingen.py"
click node_materials "https://github.com/lukastuurman/vo-automaatische-skill/blob/main/scripts/vo_materialen.py"
click node_paths "https://github.com/lukastuurman/vo-automaatische-skill/blob/main/scripts/vo_paden.py"
click node_drawing "https://github.com/lukastuurman/vo-automaatische-skill/blob/main/scripts/vo_tekenen_bron.py"
click node_finishing "https://github.com/lukastuurman/vo-automaatische-skill/blob/main/scripts/vo_kabelafwerking.py"
click node_station "https://github.com/lukastuurman/vo-automaatische-skill/blob/main/scripts/vo_stationsuitloop.py"
click node_validation "https://github.com/lukastuurman/vo-automaatische-skill/blob/main/scripts/vo_controle.py"
click node_preview "https://github.com/lukastuurman/vo-automaatische-skill/blob/main/scripts/vo_preview.py"
click node_refinement "https://github.com/lukastuurman/vo-automaatische-skill/blob/main/scripts/verfijn_opgeslagen_vo.py"
click node_removal "https://github.com/lukastuurman/vo-automaatische-skill/blob/main/scripts/vo_verwijderen.py"
click node_legacy "https://github.com/lukastuurman/vo-automaatische-skill/blob/main/scripts/maak_vo_tekening.py"
click node_annotate "https://github.com/lukastuurman/vo-automaatische-skill/blob/main/scripts/vo_tekst_en_draworder.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_sourcecad,node_klicwfs,node_framework,node_bgt toneBlue
class node_inventory,node_router,node_designengine toneAmber
class node_electrical,node_materials,node_paths toneMint
class node_drawing,node_finishing,node_station,node_legacy,node_annotate toneRose
class node_validation,node_preview,node_refinement,node_removal,node_designer toneIndigo
```

## Components

### Source inputs

- **Source CAD**
- **KLIC / WFS**
- **Framework data**
- [BGT / topography](https://github.com/lukastuurman/vo-automaatische-skill/blob/main/scripts/haal_bgt.py): `scripts/haal_bgt.py`

### Design and routing

- [Source inventory](https://github.com/lukastuurman/vo-automaatische-skill/blob/main/scripts/vo_bronnen.py): `scripts/vo_bronnen.py`
- [Surface router](https://github.com/lukastuurman/vo-automaatische-skill/blob/main/scripts/vo_router.py): `scripts/vo_router.py`
- [Direction design](https://github.com/lukastuurman/vo-automaatische-skill/blob/main/scripts/vo_ontwerp.py): `scripts/vo_ontwerp.py`

### Engineering checks

- [Path calculations](https://github.com/lukastuurman/vo-automaatische-skill/blob/main/scripts/reken_richtingen.py): `scripts/reken_richtingen.py`
- [Cable materials](https://github.com/lukastuurman/vo-automaatische-skill/blob/main/scripts/vo_materialen.py): `scripts/vo_materialen.py`
- [Path geometry](https://github.com/lukastuurman/vo-automaatische-skill/blob/main/scripts/vo_paden.py): `scripts/vo_paden.py`

### CAD output

- [Source CAD drawing](https://github.com/lukastuurman/vo-automaatische-skill/blob/main/scripts/vo_tekenen_bron.py): `scripts/vo_tekenen_bron.py`
- [Cable finishing](https://github.com/lukastuurman/vo-automaatische-skill/blob/main/scripts/vo_kabelafwerking.py): `scripts/vo_kabelafwerking.py`
- [Station exits](https://github.com/lukastuurman/vo-automaatische-skill/blob/main/scripts/vo_stationsuitloop.py): `scripts/vo_stationsuitloop.py`
- [Reference reconstruction](https://github.com/lukastuurman/vo-automaatische-skill/blob/main/scripts/maak_vo_tekening.py): `scripts/maak_vo_tekening.py`
- [Text and draw order](https://github.com/lukastuurman/vo-automaatische-skill/blob/main/scripts/vo_tekst_en_draworder.py): `scripts/vo_tekst_en_draworder.py`

### Review and refinement

- [Saved design checks](https://github.com/lukastuurman/vo-automaatische-skill/blob/main/scripts/vo_controle.py): `scripts/vo_controle.py`
- [CAD preview](https://github.com/lukastuurman/vo-automaatische-skill/blob/main/scripts/vo_preview.py): `scripts/vo_preview.py`
- [Saved design refinement](https://github.com/lukastuurman/vo-automaatische-skill/blob/main/scripts/verfijn_opgeslagen_vo.py): `scripts/verfijn_opgeslagen_vo.py`
- [Removal analysis](https://github.com/lukastuurman/vo-automaatische-skill/blob/main/scripts/vo_verwijderen.py): `scripts/vo_verwijderen.py`

### Other components

- **VO designer**

## Connections

- VO designer → Source inventory: starts workflow (evidence: `README.md`)
- Source CAD → Source inventory: provides CAD (evidence: `scripts/vo_bronnen.py`)
- KLIC / WFS → Source inventory: provides source data (evidence: `scripts/vo_bronnen.py`)
- Framework data → Source inventory: provides criteria (evidence: `README.md`)
- BGT / topography → Surface router: provides topography
- Source inventory → Direction design: supplies sources (evidence: `scripts/ontwerp_uit_bronnen.py`)
- Surface router → Direction design: routes design (evidence: `scripts/vo_ontwerp.py`)
- Direction design → Path calculations: calculates capacity (evidence: `scripts/vo_ontwerp.py`)
- Direction design → Cable materials: uses material data (evidence: `scripts/vo_ontwerp.py`)
- Direction design → Path geometry: builds path checks (evidence: `scripts/vo_ontwerp.py`)
- Direction design → Source CAD drawing: supplies design (evidence: `scripts/ontwerp_uit_bronnen.py`)
- Source CAD drawing → Cable finishing: finishes cables (evidence: `scripts/vo_tekenen_bron.py`)
- Source CAD drawing → Station exits: lays out exits (evidence: `scripts/vo_tekenen_bron.py`)
- VO designer → Saved design checks: reviews candidate (evidence: `README.md`)
- Saved design checks → CAD preview: previews saved CAD (evidence: `scripts/herzie_bronontwerp.py`)
- VO designer → Saved design refinement: refines saved design (evidence: `README.md`)
- Saved design refinement → Saved design checks: checks changes (evidence: `scripts/verfijn_opgeslagen_vo.py`)
- VO designer → Removal analysis: checks removals
- VO designer → Reference reconstruction: reconstructs reference (evidence: `README.md`)
- Source CAD drawing → Text and draw order: lays out text (evidence: `scripts/vo_tekenen_bron.py`)
