# mikhalchankasm/searchsetbuildernw architecture

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

- Interactive diagram: https://gitdiagram.com/mikhalchankasm/searchsetbuildernw
- Repository: https://github.com/mikhalchankasm/searchsetbuildernw

## Overview

This is a PySide6 desktop tool for building Navisworks search sets from Excel or by editing conditions, then saving project data and generating Navisworks exchange XML. Its visible capabilities include Excel input, reusable condition presets, hierarchical folders and sets, and XML condition parsing/generation. The excerpts show parts of the UI and domain/XML helpers, but not the complete action handlers; dashed links mark workflow relationships that could not be verified from the excerpts.

Main entry points: [`search_set.py`](https://github.com/mikhalchankasm/searchsetbuildernw/blob/main/search_set.py) (Builder UI), [`navis_exchange.py`](https://github.com/mikhalchankasm/searchsetbuildernw/blob/main/navis_exchange.py) (Exchange helpers), [`searchset_core.py`](https://github.com/mikhalchankasm/searchsetbuildernw/blob/main/searchset_core.py) (Condition presets)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_desktop["Desktop workflow"]
  node_app["Builder UI<br/>[search_set.py]"]
  node_excel["Excel input<br/>[search_set.py]"]
  node_batch["Batch creation<br/>[search_set.py]"]
  node_editor["Set editor<br/>[search_set.py]"]
end

subgraph group_domain["Search-set domain"]
  node_project["Project tree<br/>[search_set.py]"]
  node_project_json["Project JSON<br/>[search_set.py]"]
  node_presets["Condition presets<br/>[searchset_core.py]"]
  node_validation["Project validation<br/>[searchset_core.py]"]
end

subgraph group_exchange["Navisworks exchange"]
  node_xml_parser["XML parsing<br/>[search_set.py]"]
  node_exchange_helpers["Exchange helpers<br/>[navis_exchange.py]"]
  node_xml_output["Exchange XML"]
end

node_user(("User"))

node_user -->|"uses"| node_app
node_user -->|"selects source"| node_excel
node_excel -->|"provides rows"| node_batch
node_app -.->|"starts creation"| node_batch
node_app -->|"edits sets"| node_editor
node_editor -.->|"updates tree"| node_project
node_project -.->|"saves and loads"| node_project_json
node_editor -.->|"uses presets"| node_presets
node_app -.->|"validates project"| node_validation
node_app -->|"parses conditions"| node_xml_parser
node_app -.->|"uses helpers"| node_exchange_helpers
node_exchange_helpers -->|"writes XML"| node_xml_output

click node_app "https://github.com/mikhalchankasm/searchsetbuildernw/blob/main/search_set.py"
click node_excel "https://github.com/mikhalchankasm/searchsetbuildernw/blob/main/search_set.py"
click node_batch "https://github.com/mikhalchankasm/searchsetbuildernw/blob/main/search_set.py"
click node_editor "https://github.com/mikhalchankasm/searchsetbuildernw/blob/main/search_set.py"
click node_project "https://github.com/mikhalchankasm/searchsetbuildernw/blob/main/search_set.py"
click node_project_json "https://github.com/mikhalchankasm/searchsetbuildernw/blob/main/search_set.py"
click node_presets "https://github.com/mikhalchankasm/searchsetbuildernw/blob/main/searchset_core.py"
click node_validation "https://github.com/mikhalchankasm/searchsetbuildernw/blob/main/searchset_core.py"
click node_xml_parser "https://github.com/mikhalchankasm/searchsetbuildernw/blob/main/search_set.py"
click node_exchange_helpers "https://github.com/mikhalchankasm/searchsetbuildernw/blob/main/navis_exchange.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_app,node_excel,node_batch,node_editor,node_user toneBlue
class node_project,node_project_json,node_presets,node_validation toneAmber
class node_xml_parser,node_exchange_helpers,node_xml_output toneMint
```

## Components

### Desktop workflow

- [Builder UI](https://github.com/mikhalchankasm/searchsetbuildernw/blob/main/search_set.py): `search_set.py`
- [Excel input](https://github.com/mikhalchankasm/searchsetbuildernw/blob/main/search_set.py): `search_set.py`
- [Batch creation](https://github.com/mikhalchankasm/searchsetbuildernw/blob/main/search_set.py): `search_set.py`
- [Set editor](https://github.com/mikhalchankasm/searchsetbuildernw/blob/main/search_set.py): `search_set.py`

### Search-set domain

- [Project tree](https://github.com/mikhalchankasm/searchsetbuildernw/blob/main/search_set.py): `search_set.py`
- [Project JSON](https://github.com/mikhalchankasm/searchsetbuildernw/blob/main/search_set.py): `search_set.py`
- [Condition presets](https://github.com/mikhalchankasm/searchsetbuildernw/blob/main/searchset_core.py): `searchset_core.py`
- [Project validation](https://github.com/mikhalchankasm/searchsetbuildernw/blob/main/searchset_core.py): `searchset_core.py`

### Navisworks exchange

- [XML parsing](https://github.com/mikhalchankasm/searchsetbuildernw/blob/main/search_set.py): `search_set.py`
- [Exchange helpers](https://github.com/mikhalchankasm/searchsetbuildernw/blob/main/navis_exchange.py): `navis_exchange.py`
- **Exchange XML**

### Other components

- **User**

## Connections

- User → Builder UI: uses (evidence: `search_set.py`)
- User → Excel input: selects source (evidence: `search_set.py`)
- Excel input → Batch creation: provides rows (evidence: `search_set.py`)
- Builder UI → Batch creation: starts creation (evidence: `search_set.py`)
- Builder UI → Set editor: edits sets (evidence: `search_set.py`)
- Set editor → Project tree: updates tree (evidence: `search_set.py`)
- Project tree → Project JSON: saves and loads (evidence: `search_set.py`)
- Set editor → Condition presets: uses presets (evidence: `search_set.py`)
- Builder UI → Project validation: validates project (evidence: `search_set.py`)
- Builder UI → XML parsing: parses conditions (evidence: `search_set.py`)
- Builder UI → Exchange helpers: uses helpers (evidence: `search_set.py`)
- Exchange helpers → Exchange XML: writes XML (evidence: `navis_exchange.py`)
