# sdviz/revit architecture

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

- Interactive diagram: https://gitdiagram.com/sdviz/revit
- Repository: https://github.com/sdviz/revit

## Overview

CoucheMur is an Autodesk Revit add-in that replaces selected compound walls with editable walls for their individual layers. Its main workflow also preserves hosted openings and adjusts layer geometry at adjacent-wall junctions; a separate command purges unused exploded-wall types. The five version-specific source files are indexed as core modules and appear to implement the same product for different Revit releases. The excerpts show selection, wall deletion, junction analysis, opening handling, and type purging, but omit much of the implementation; feature links beyond those excerpts rely on the README.

Main entry points: [`CoucheMur.cs`](https://github.com/sdviz/revit/blob/main/CoucheMur.cs) (Add-in command), [`CoucheMur_2023/CoucheMur.cs`](https://github.com/sdviz/revit/blob/main/CoucheMur_2023/CoucheMur.cs) (Revit 2023 add-in), [`CoucheMur_2024/CoucheMur.cs`](https://github.com/sdviz/revit/blob/main/CoucheMur_2024/CoucheMur.cs) (Revit 2024 add-in), [`CoucheMur_2025/CoucheMur.cs`](https://github.com/sdviz/revit/blob/main/CoucheMur_2025/CoucheMur.cs) (Revit 2025 add-in)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_commands["Revit commands"]
  node_plugin_main["Add-in command<br/>[CoucheMur.cs]"]
  node_plugin_2023["Revit 2023 add-in<br/>[CoucheMur.cs]"]
  node_plugin_2024["Revit 2024 add-in<br/>[CoucheMur.cs]"]
  node_plugin_2025["Revit 2025 add-in<br/>[CoucheMur.cs]"]
  node_plugin_2026["Revit 2026 add-in<br/>[CoucheMur.cs]"]
end

subgraph group_wallwork["Wall decomposition"]
  node_split["Layer creation<br/>[CoucheMur.cs]"]
  node_openings["Opening handling<br/>[CoucheMur.cs]"]
  node_junctions["Junction adjustment<br/>[CoucheMur.cs]"]
end

subgraph group_maintenance["Type maintenance"]
  node_purge["Unused type purge<br/>[CoucheMur.cs]"]
end

node_revit_user(("Revit user"))
node_revit[("Revit project")]

node_revit_user -->|"runs command"| node_plugin_main
node_revit_user -->|"runs command"| node_plugin_2023
node_revit_user -->|"runs command"| node_plugin_2024
node_revit_user -->|"runs command"| node_plugin_2025
node_revit_user -->|"runs command"| node_plugin_2026
node_plugin_main -->|"decomposes walls"| node_split
node_plugin_main -->|"reassigns openings"| node_openings
node_plugin_main -->|"adjusts joins"| node_junctions
node_plugin_main -->|"purges types"| node_purge
node_plugin_main -->|"reads and edits"| node_revit
node_plugin_2023 -->|"reads and edits"| node_revit
node_plugin_2024 -->|"reads and edits"| node_revit
node_plugin_2025 -->|"reads and edits"| node_revit
node_plugin_2026 -->|"reads and edits"| node_revit

click node_plugin_main "https://github.com/sdviz/revit/blob/main/CoucheMur.cs"
click node_plugin_2023 "https://github.com/sdviz/revit/blob/main/CoucheMur_2023/CoucheMur.cs"
click node_plugin_2024 "https://github.com/sdviz/revit/blob/main/CoucheMur_2024/CoucheMur.cs"
click node_plugin_2025 "https://github.com/sdviz/revit/blob/main/CoucheMur_2025/CoucheMur.cs"
click node_plugin_2026 "https://github.com/sdviz/revit/blob/main/CoucheMur_2026/CoucheMur.cs"
click node_split "https://github.com/sdviz/revit/blob/main/CoucheMur.cs"
click node_openings "https://github.com/sdviz/revit/blob/main/CoucheMur.cs"
click node_junctions "https://github.com/sdviz/revit/blob/main/CoucheMur.cs"
click node_purge "https://github.com/sdviz/revit/blob/main/CoucheMur.cs"

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_plugin_main,node_plugin_2023,node_plugin_2024,node_plugin_2025,node_plugin_2026,node_revit_user toneBlue
class node_split,node_openings,node_junctions,node_revit toneAmber
class node_purge toneMint
```

## Components

### Revit commands

- [Add-in command](https://github.com/sdviz/revit/blob/main/CoucheMur.cs): `CoucheMur.cs`
- [Revit 2023 add-in](https://github.com/sdviz/revit/blob/main/CoucheMur_2023/CoucheMur.cs): `CoucheMur_2023/CoucheMur.cs`
- [Revit 2024 add-in](https://github.com/sdviz/revit/blob/main/CoucheMur_2024/CoucheMur.cs): `CoucheMur_2024/CoucheMur.cs`
- [Revit 2025 add-in](https://github.com/sdviz/revit/blob/main/CoucheMur_2025/CoucheMur.cs): `CoucheMur_2025/CoucheMur.cs`
- [Revit 2026 add-in](https://github.com/sdviz/revit/blob/main/CoucheMur_2026/CoucheMur.cs): `CoucheMur_2026/CoucheMur.cs`

### Wall decomposition

- [Layer creation](https://github.com/sdviz/revit/blob/main/CoucheMur.cs): `CoucheMur.cs`
- [Opening handling](https://github.com/sdviz/revit/blob/main/CoucheMur.cs): `CoucheMur.cs`
- [Junction adjustment](https://github.com/sdviz/revit/blob/main/CoucheMur.cs): `CoucheMur.cs`

### Type maintenance

- [Unused type purge](https://github.com/sdviz/revit/blob/main/CoucheMur.cs): `CoucheMur.cs`

### Other components

- **Revit user**
- **Revit project**

## Connections

- Revit user → Add-in command: runs command (evidence: `README.md`)
- Revit user → Revit 2023 add-in: runs command (evidence: `README.md`)
- Revit user → Revit 2024 add-in: runs command (evidence: `README.md`)
- Revit user → Revit 2025 add-in: runs command (evidence: `README.md`)
- Revit user → Revit 2026 add-in: runs command (evidence: `README.md`)
- Add-in command → Layer creation: decomposes walls (evidence: `README.md`)
- Add-in command → Opening handling: reassigns openings (evidence: `README.md`)
- Add-in command → Junction adjustment: adjusts joins (evidence: `README.md`)
- Add-in command → Unused type purge: purges types (evidence: `README.md`)
- Add-in command → Revit project: reads and edits (evidence: `CoucheMur.cs`)
- Revit 2023 add-in → Revit project: reads and edits (evidence: `CoucheMur_2023/CoucheMur.cs`)
- Revit 2024 add-in → Revit project: reads and edits (evidence: `CoucheMur_2024/CoucheMur.cs`)
- Revit 2025 add-in → Revit project: reads and edits (evidence: `CoucheMur_2025/CoucheMur.cs`)
- Revit 2026 add-in → Revit project: reads and edits (evidence: `CoucheMur_2026/CoucheMur.cs`)
