# mikemanic/modifiedhomebuilder4 architecture

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

- Interactive diagram: https://gitdiagram.com/mikemanic/modifiedhomebuilder4
- Repository: https://github.com/mikemanic/modifiedhomebuilder4

## Overview

Home Builder 4 is a Blender add-on for constructing and editing home-design content in a 3D scene. The user-facing workflow starts in Blender’s registered menus and panels, then uses operators to create assemblies or walls and interactively place or edit them with snapping. Assembly data, dimensions, prompts, and unit utilities support that work. The tree also shows asset-library, layout, material, and updater capabilities. Evidence is limited to the README, source index references, and sampled excerpts; unsampled subsystem links are omitted where their call paths are not established.

Main entry points: [`python_libs/pc_lib/pc_types.py`](https://github.com/mikemanic/modifiedhomebuilder4/blob/main/python_libs/pc_lib/pc_types.py) (Assembly model), [`walls/wall_ops.py`](https://github.com/mikemanic/modifiedhomebuilder4/blob/main/walls/wall_ops.py) (Wall operations), [`python_libs/pc_lib/pc_snap.py`](https://github.com/mikemanic/modifiedhomebuilder4/blob/main/python_libs/pc_lib/pc_snap.py) (Viewport snapping), [`__init__.py`](https://github.com/mikemanic/modifiedhomebuilder4/blob/main/__init__.py) (Add-on registration)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Blender interface"]
  node_addon_entry["Add-on registration<br/>[__init__.py]"]
  node_home_ui["Home Builder UI<br/>[hb_ui.py]"]
  node_pyclone_ui["Assembly and object UI"]
end

subgraph group_design["Design operations"]
  node_home_ops["Home Builder operators<br/>[hb_ops.py]"]
  node_assembly_ops["Assembly operations<br/>[pc_assembly.py]"]
  node_layout_ops["Layout and drawing<br/>[pc_layout_view.py]"]
  node_object_ops["Object operations<br/>[pc_object.py]"]
  node_prompt_ops["Prompt operations<br/>[pc_prompts.py]"]
end

subgraph group_walls["Walls and placement"]
  node_snap["Viewport snapping<br/>[pc_snap.py]"]
  node_placement["Assembly placement"]
  node_wall_ops["Wall operations<br/>[wall_ops.py]"]
  node_wall_models["Wall models<br/>[data_walls.py]"]
  node_wall_parts["Wall parts<br/>[data_parts.py]"]
  node_wall_library["Wall library<br/>[wall_library.py]"]
end

subgraph group_core["Design core"]
  node_properties["Design properties<br/>[pyclone_props.py]"]
  node_assembly_model["Assembly model<br/>[pc_types.py]"]
  node_unit_utils["Unit conversion<br/>[pc_unit.py]"]
  node_design_utils["Scene utilities<br/>[pc_utils.py]"]
end

subgraph group_assets["Libraries and updates"]
  node_asset_library["Asset library tools<br/>[pc_library.py]"]
  node_material_ops["Material operations<br/>[pc_material.py]"]
  node_updater["Add-on updater<br/>[addon_updater.py]"]
  node_updater_ops["Updater interface"]
end

node_blender_user(("Blender user"))

node_blender_user -->|"uses"| node_home_ui
node_blender_user -->|"uses"| node_pyclone_ui
node_addon_entry -->|"registers"| node_home_ops
node_addon_entry -->|"registers"| node_wall_ops
node_addon_entry -->|"registers"| node_pyclone_ui
node_home_ops -->|"calls"| node_snap
node_wall_ops -->|"calls"| node_snap
node_wall_ops -->|"uses"| node_placement
node_wall_ops -->|"references"| node_wall_library
node_wall_library -->|"loads"| node_wall_models
node_wall_models -->|"uses"| node_wall_parts
node_assembly_ops -->|"uses"| node_assembly_model
node_assembly_ops -->|"uses"| node_unit_utils
node_layout_ops -->|"calls"| node_snap
node_layout_ops -->|"uses"| node_assembly_model
node_prompt_ops -->|"uses"| node_properties
node_properties -->|"uses"| node_assembly_model
node_assembly_model -->|"uses"| node_design_utils
node_assembly_model -->|"uses"| node_unit_utils
node_snap -->|"uses"| node_placement
node_updater_ops -->|"calls"| node_updater

click node_addon_entry "https://github.com/mikemanic/modifiedhomebuilder4/blob/main/__init__.py"
click node_home_ui "https://github.com/mikemanic/modifiedhomebuilder4/blob/main/hb_ui.py"
click node_pyclone_ui "https://github.com/mikemanic/modifiedhomebuilder4/tree/main/pyclone_ui"
click node_home_ops "https://github.com/mikemanic/modifiedhomebuilder4/blob/main/hb_ops.py"
click node_assembly_ops "https://github.com/mikemanic/modifiedhomebuilder4/blob/main/pyclone_ops/pc_assembly.py"
click node_layout_ops "https://github.com/mikemanic/modifiedhomebuilder4/blob/main/pyclone_ops/pc_layout_view.py"
click node_object_ops "https://github.com/mikemanic/modifiedhomebuilder4/blob/main/pyclone_ops/pc_object.py"
click node_prompt_ops "https://github.com/mikemanic/modifiedhomebuilder4/blob/main/pyclone_ops/pc_prompts.py"
click node_properties "https://github.com/mikemanic/modifiedhomebuilder4/blob/main/pyclone_props.py"
click node_assembly_model "https://github.com/mikemanic/modifiedhomebuilder4/blob/main/python_libs/pc_lib/pc_types.py"
click node_unit_utils "https://github.com/mikemanic/modifiedhomebuilder4/blob/main/python_libs/pc_lib/pc_unit.py"
click node_design_utils "https://github.com/mikemanic/modifiedhomebuilder4/blob/main/python_libs/pc_lib/pc_utils.py"
click node_snap "https://github.com/mikemanic/modifiedhomebuilder4/blob/main/python_libs/pc_lib/pc_snap.py"
click node_placement "https://github.com/mikemanic/modifiedhomebuilder4/blob/main/python_libs/pc_lib/pc_placement_utils.py"
click node_wall_ops "https://github.com/mikemanic/modifiedhomebuilder4/blob/main/walls/wall_ops.py"
click node_wall_models "https://github.com/mikemanic/modifiedhomebuilder4/blob/main/walls/data_walls.py"
click node_wall_parts "https://github.com/mikemanic/modifiedhomebuilder4/blob/main/walls/data_parts.py"
click node_wall_library "https://github.com/mikemanic/modifiedhomebuilder4/blob/main/walls/wall_library.py"
click node_asset_library "https://github.com/mikemanic/modifiedhomebuilder4/blob/main/pyclone_ops/pc_library.py"
click node_material_ops "https://github.com/mikemanic/modifiedhomebuilder4/blob/main/pyclone_ops/pc_material.py"
click node_updater "https://github.com/mikemanic/modifiedhomebuilder4/blob/main/addon_updater.py"
click node_updater_ops "https://github.com/mikemanic/modifiedhomebuilder4/blob/main/addon_updater_ops.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_addon_entry,node_home_ui,node_pyclone_ui,node_blender_user toneBlue
class node_home_ops,node_assembly_ops,node_layout_ops,node_object_ops,node_prompt_ops toneAmber
class node_snap,node_placement,node_wall_ops,node_wall_models,node_wall_parts,node_wall_library toneMint
class node_properties,node_assembly_model,node_unit_utils,node_design_utils toneRose
class node_asset_library,node_material_ops,node_updater,node_updater_ops toneIndigo
```

## Components

### Blender interface

- [Add-on registration](https://github.com/mikemanic/modifiedhomebuilder4/blob/main/__init__.py): `__init__.py`
- [Home Builder UI](https://github.com/mikemanic/modifiedhomebuilder4/blob/main/hb_ui.py): `hb_ui.py`
- [Assembly and object UI](https://github.com/mikemanic/modifiedhomebuilder4/tree/main/pyclone_ui): `pyclone_ui`

### Design operations

- [Home Builder operators](https://github.com/mikemanic/modifiedhomebuilder4/blob/main/hb_ops.py): `hb_ops.py`
- [Assembly operations](https://github.com/mikemanic/modifiedhomebuilder4/blob/main/pyclone_ops/pc_assembly.py): `pyclone_ops/pc_assembly.py`
- [Layout and drawing](https://github.com/mikemanic/modifiedhomebuilder4/blob/main/pyclone_ops/pc_layout_view.py): `pyclone_ops/pc_layout_view.py`
- [Object operations](https://github.com/mikemanic/modifiedhomebuilder4/blob/main/pyclone_ops/pc_object.py): `pyclone_ops/pc_object.py`
- [Prompt operations](https://github.com/mikemanic/modifiedhomebuilder4/blob/main/pyclone_ops/pc_prompts.py): `pyclone_ops/pc_prompts.py`

### Walls and placement

- [Viewport snapping](https://github.com/mikemanic/modifiedhomebuilder4/blob/main/python_libs/pc_lib/pc_snap.py): `python_libs/pc_lib/pc_snap.py`
- [Assembly placement](https://github.com/mikemanic/modifiedhomebuilder4/blob/main/python_libs/pc_lib/pc_placement_utils.py): `python_libs/pc_lib/pc_placement_utils.py`
- [Wall operations](https://github.com/mikemanic/modifiedhomebuilder4/blob/main/walls/wall_ops.py): `walls/wall_ops.py`
- [Wall models](https://github.com/mikemanic/modifiedhomebuilder4/blob/main/walls/data_walls.py): `walls/data_walls.py`
- [Wall parts](https://github.com/mikemanic/modifiedhomebuilder4/blob/main/walls/data_parts.py): `walls/data_parts.py`
- [Wall library](https://github.com/mikemanic/modifiedhomebuilder4/blob/main/walls/wall_library.py): `walls/wall_library.py`

### Design core

- [Design properties](https://github.com/mikemanic/modifiedhomebuilder4/blob/main/pyclone_props.py): `pyclone_props.py`
- [Assembly model](https://github.com/mikemanic/modifiedhomebuilder4/blob/main/python_libs/pc_lib/pc_types.py): `python_libs/pc_lib/pc_types.py`
- [Unit conversion](https://github.com/mikemanic/modifiedhomebuilder4/blob/main/python_libs/pc_lib/pc_unit.py): `python_libs/pc_lib/pc_unit.py`
- [Scene utilities](https://github.com/mikemanic/modifiedhomebuilder4/blob/main/python_libs/pc_lib/pc_utils.py): `python_libs/pc_lib/pc_utils.py`

### Libraries and updates

- [Asset library tools](https://github.com/mikemanic/modifiedhomebuilder4/blob/main/pyclone_ops/pc_library.py): `pyclone_ops/pc_library.py`
- [Material operations](https://github.com/mikemanic/modifiedhomebuilder4/blob/main/pyclone_ops/pc_material.py): `pyclone_ops/pc_material.py`
- [Add-on updater](https://github.com/mikemanic/modifiedhomebuilder4/blob/main/addon_updater.py): `addon_updater.py`
- [Updater interface](https://github.com/mikemanic/modifiedhomebuilder4/blob/main/addon_updater_ops.py): `addon_updater_ops.py`

### Other components

- **Blender user**

## Connections

- Blender user → Home Builder UI: uses
- Blender user → Assembly and object UI: uses
- Add-on registration → Home Builder operators: registers (evidence: `__init__.py`)
- Add-on registration → Wall operations: registers (evidence: `__init__.py`)
- Add-on registration → Assembly and object UI: registers (evidence: `__init__.py`)
- Home Builder operators → Viewport snapping: calls (evidence: `hb_ops.py`)
- Wall operations → Viewport snapping: calls (evidence: `walls/wall_ops.py`)
- Wall operations → Assembly placement: uses (evidence: `walls/wall_ops.py`)
- Wall operations → Wall library: references (evidence: `walls/wall_ops.py`)
- Wall library → Wall models: loads (evidence: `walls/wall_library.py`)
- Wall models → Wall parts: uses (evidence: `walls/data_walls.py`)
- Assembly operations → Assembly model: uses (evidence: `pyclone_ops/pc_assembly.py`)
- Assembly operations → Unit conversion: uses (evidence: `pyclone_ops/pc_assembly.py`)
- Layout and drawing → Viewport snapping: calls (evidence: `pyclone_ops/pc_layout_view.py`)
- Layout and drawing → Assembly model: uses (evidence: `pyclone_ops/pc_layout_view.py`)
- Prompt operations → Design properties: uses (evidence: `pyclone_ops/pc_prompts.py`)
- Design properties → Assembly model: uses (evidence: `pyclone_props.py`)
- Assembly model → Scene utilities: uses (evidence: `python_libs/pc_lib/pc_types.py`)
- Assembly model → Unit conversion: uses (evidence: `python_libs/pc_lib/pc_types.py`)
- Viewport snapping → Assembly placement: uses (evidence: `python_libs/pc_lib/pc_snap.py`)
- Updater interface → Add-on updater: calls (evidence: `addon_updater_ops.py`)
