Fix shop drawing scaling and elevation rendering clipping issue

This commit is contained in:
Atharv1705
2026-07-01 14:01:18 +05:30
parent 151e3f7e17
commit ee2a024ff0
127 changed files with 357048 additions and 157953 deletions
Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 90 KiB

+6 -6
View File
@@ -85,9 +85,9 @@ class CabinetItem:
"""One cabinet identified in an elevation drawing."""
item_num: int
cabinet_type: str # from VALID_CABINET_TYPES
width_mm: float
height_mm: float
depth_mm: float
width_in: float
height_in: float
depth_in: float
location: str # human-readable position note
elevation_ref: str # "ELEVATION A", "ELEVATION B", etc.
confidence: float # 0.0–1.0
@@ -100,8 +100,8 @@ class CabinetItem:
@property
def code(self) -> str:
"""Generate a standard cabinet code from type and dimensions."""
w_in = round(self.width_mm / 25.4)
h_in = round(self.height_mm / 25.4)
w_in = round(self.width_in)
h_in = round(self.height_in)
type_prefix = {
# Width-only codes
"base": f"B{w_in}",
@@ -135,7 +135,7 @@ class ElevationResult:
unit_type: str # "A1", "B1-ADA"
project_name: str
cabinets: list[CabinetItem] = field(default_factory=list)
total_width_mm: Optional[float] = None
total_width_in: Optional[float] = None
is_ada: bool = False
auto_approved: bool = False
review_flags: list[str] = field(default_factory=list)
@@ -0,0 +1,21 @@
from typing import Dict, List
class DishwasherBlock:
@staticmethod
def elevation(x0: float, y0: float, width: float, height: float = 34.5, scale_x: float = 1.0, scale_y: float = 1.0) -> Dict[str, List]:
geom = {"lines": [], "blocks": [], "texts": []}
x1 = x0 + width * scale_x
y1 = y0 + height * scale_y
geom["blocks"].append({"type": "rect", "coords": [x0, y0, x1 - x0, y1 - y0], "id": "D/W", "layer": "APPLIANCES", "style": "solid"})
geom["lines"].append({"start": [x0, y1 - 4.0 * scale_y], "end": [x1, y1 - 4.0 * scale_y], "layer": "APPLIANCES", "style": "solid"})
geom["texts"].append({"pos": [(x0 + x1) / 2, (y0 + y1) / 2], "text": "D/W", "size": 4.5, "layer": "TEXT"})
return geom
@staticmethod
def plan(x0: float, y0: float, width: float, depth: float = 24.0, scale_x: float = 1.0, scale_y: float = 1.0) -> Dict[str, List]:
geom = {"lines": [], "blocks": [], "texts": []}
x1 = x0 + width * scale_x
y1 = y0 + depth * scale_y
geom["blocks"].append({"type": "rect", "coords": [x0, y0, x1 - x0, y1 - y0], "id": "D/W", "layer": "APPLIANCES", "style": "dashed"})
geom["texts"].append({"pos": [(x0 + x1) / 2, (y0 + y1) / 2], "text": "D/W", "size": 4.5, "layer": "TEXT"})
return geom
@@ -0,0 +1,19 @@
from typing import Dict, List
class MicrowaveBlock:
@staticmethod
def elevation(x0: float, y0: float, width: float, height: float = 18.0, scale_x: float = 1.0, scale_y: float = 1.0) -> Dict[str, List]:
geom = {"lines": [], "blocks": [], "texts": []}
x1 = x0 + width * scale_x
y1 = y0 + height * scale_y
geom["blocks"].append({"type": "rect", "coords": [x0, y0, x1 - x0, y1 - y0], "id": "MW", "layer": "APPLIANCES", "style": "solid"})
geom["texts"].append({"pos": [(x0 + x1) / 2, (y0 + y1) / 2], "text": "MW/HOOD", "size": 4.5, "layer": "TEXT"})
return geom
@staticmethod
def plan(x0: float, y0: float, width: float, depth: float = 15.0, scale_x: float = 1.0, scale_y: float = 1.0) -> Dict[str, List]:
geom = {"lines": [], "blocks": [], "texts": []}
x1 = x0 + width * scale_x
y1 = y0 + depth * scale_y
geom["blocks"].append({"type": "rect", "coords": [x0, y0, x1 - x0, y1 - y0], "id": "MW", "layer": "APPLIANCES", "style": "dashed"})
return geom
@@ -0,0 +1,29 @@
from typing import Dict, List
class RangeBlock:
@staticmethod
def elevation(x0: float, y0: float, width: float, height: float = 36.0, scale_x: float = 1.0, scale_y: float = 1.0) -> Dict[str, List]:
geom = {"lines": [], "blocks": [], "texts": []}
x1 = x0 + width * scale_x
y1 = y0 + height * scale_y
geom["blocks"].append({"type": "rect", "coords": [x0, y0, x1 - x0, y1 - y0], "id": "RANGE", "layer": "APPLIANCES", "style": "solid"})
geom["texts"].append({"pos": [(x0 + x1) / 2, (y0 + y1) / 2], "text": "RANGE", "size": 4.5, "layer": "TEXT"})
return geom
@staticmethod
def plan(x0: float, y0: float, width: float, depth: float = 25.0, scale_x: float = 1.0, scale_y: float = 1.0) -> Dict[str, List]:
geom = {"lines": [], "blocks": [], "texts": []}
x1 = x0 + width * scale_x
y1 = y0 + depth * scale_y
geom["blocks"].append({"type": "rect", "coords": [x0, y0, x1 - x0, y1 - y0], "id": "RANGE", "layer": "APPLIANCES", "style": "solid"})
# Draw 4 burners
r = 3.0 * scale_x
cx1, cy1 = x0 + (width * 0.25) * scale_x, y0 + (depth * 0.3) * scale_y
cx2, cy2 = x0 + (width * 0.75) * scale_x, y0 + (depth * 0.3) * scale_y
cx3, cy3 = x0 + (width * 0.25) * scale_x, y0 + (depth * 0.7) * scale_y
cx4, cy4 = x0 + (width * 0.75) * scale_x, y0 + (depth * 0.7) * scale_y
for c in [(cx1, cy1), (cx2, cy2), (cx3, cy3), (cx4, cy4)]:
geom["blocks"].append({"type": "circle", "coords": [c[0], c[1], r], "layer": "APPLIANCES", "style": "solid"})
return geom
@@ -0,0 +1,53 @@
from typing import Dict, List
class RefrigeratorBlock:
"""Modular block definition for Refrigerator geometry."""
@staticmethod
def elevation(x0: float, y0: float, width: float, height: float = 72.0, scale_x: float = 1.0, scale_y: float = 1.0) -> Dict[str, List]:
geom = {"lines": [], "blocks": [], "texts": []}
x1 = x0 + width * scale_x
y1 = y0 + height * scale_y
# Main body
geom["blocks"].append({
"type": "rect",
"coords": [x0, y0, x1 - x0, y1 - y0],
"id": "REF", "layer": "APPLIANCES", "style": "solid"
})
# Doors divide
mid_x = x0 + (width / 2.0) * scale_x
geom["lines"].append({"start": [mid_x, y0], "end": [mid_x, y1], "layer": "APPLIANCES", "style": "solid"})
# Handles
h_start_y = y0 + 30.0 * scale_y
h_end_y = y0 + 48.0 * scale_y
geom["lines"].append({"start": [mid_x - 1.5 * scale_x, h_start_y], "end": [mid_x - 1.5 * scale_x, h_end_y], "layer": "FIXTURES", "style": "solid"})
geom["lines"].append({"start": [mid_x + 1.5 * scale_x, h_start_y], "end": [mid_x + 1.5 * scale_x, h_end_y], "layer": "FIXTURES", "style": "solid"})
# Text
geom["texts"].append({"pos": [(x0 + x1) / 2, (y0 + y1) / 2], "text": "REF", "size": 4.5, "layer": "TEXT"})
return geom
@staticmethod
def plan(x0: float, y0: float, width: float, depth: float = 30.0, scale_x: float = 1.0, scale_y: float = 1.0) -> Dict[str, List]:
geom = {"lines": [], "blocks": [], "texts": []}
x1 = x0 + width * scale_x
y1 = y0 + depth * scale_y
# Main body
geom["blocks"].append({
"type": "rect",
"coords": [x0, y0, x1 - x0, y1 - y0],
"id": "REF", "layer": "APPLIANCES", "style": "solid"
})
# Door thickness indication in plan
geom["lines"].append({"start": [x0, y0 + 2.0 * scale_y], "end": [x1, y0 + 2.0 * scale_y], "layer": "APPLIANCES", "style": "solid"})
# Text
geom["texts"].append({"pos": [(x0 + x1) / 2, (y0 + y1) / 2], "text": "REF", "size": 4.5, "layer": "TEXT"})
return geom
@@ -0,0 +1,42 @@
from typing import Dict, List
class CabinetBaseBlock:
@staticmethod
def elevation(x0: float, y0: float, width: float, height: float = 34.5, depth: float = 24.0, doors: int = 1, drawers: int = 1, scale_x: float = 1.0, scale_y: float = 1.0) -> Dict[str, List]:
geom = {"lines": [], "blocks": [], "texts": []}
x1 = x0 + width * scale_x
y1 = y0 + height * scale_y
# Main box
geom["blocks"].append({"type": "rect", "coords": [x0, y0, x1 - x0, y1 - y0], "layer": "CABINETS_BASE", "style": "solid"})
# Toe kick
tk_h = 4.5 * scale_y
geom["lines"].append({"start": [x0, y0 + tk_h], "end": [x1, y0 + tk_h], "layer": "CABINETS_BASE", "style": "solid"})
# Drawer section
dr_h = 6.0 * scale_y
if drawers > 0:
geom["lines"].append({"start": [x0, y1 - dr_h], "end": [x1, y1 - dr_h], "layer": "CABINETS_BASE", "style": "solid"})
# Door splits
if doors > 1:
w_door = (width / doors) * scale_x
for i in range(1, doors):
dx = x0 + w_door * i
geom["lines"].append({"start": [dx, y0 + tk_h], "end": [dx, y1 - dr_h if drawers > 0 else y1], "layer": "CABINETS_BASE", "style": "solid"})
# Swing diagonals
if doors == 1:
geom["lines"].append({"start": [x0, y0 + tk_h], "end": [x1, y1 - dr_h if drawers > 0 else y1], "layer": "CABINETS_BASE", "style": "dashed"})
geom["lines"].append({"start": [x1, y0 + tk_h], "end": [x0, y1 - dr_h if drawers > 0 else y1], "layer": "CABINETS_BASE", "style": "dashed"})
return geom
@staticmethod
def plan(x0: float, y0: float, width: float, depth: float = 24.0, scale_x: float = 1.0, scale_y: float = 1.0) -> Dict[str, List]:
geom = {"lines": [], "blocks": [], "texts": []}
x1 = x0 + width * scale_x
y1 = y0 + depth * scale_y
geom["blocks"].append({"type": "rect", "coords": [x0, y0, x1 - x0, y1 - y0], "layer": "CABINETS_BASE", "style": "solid"})
return geom
@@ -0,0 +1,31 @@
from typing import Dict, List
class CabinetUpperBlock:
@staticmethod
def elevation(x0: float, y0: float, width: float, height: float = 30.0, doors: int = 1, scale_x: float = 1.0, scale_y: float = 1.0) -> Dict[str, List]:
geom = {"lines": [], "blocks": [], "texts": []}
x1 = x0 + width * scale_x
y1 = y0 + height * scale_y
geom["blocks"].append({"type": "rect", "coords": [x0, y0, x1 - x0, y1 - y0], "layer": "CABINETS_UPPER", "style": "solid"})
if doors > 1:
w_door = (width / doors) * scale_x
for i in range(1, doors):
dx = x0 + w_door * i
geom["lines"].append({"start": [dx, y0], "end": [dx, y1], "layer": "CABINETS_UPPER", "style": "solid"})
# Swing diagonals (dashed)
if doors == 1:
geom["lines"].append({"start": [x0, y0], "end": [x1, y1], "layer": "CABINETS_UPPER", "style": "dashed"})
geom["lines"].append({"start": [x1, y0], "end": [x0, y1], "layer": "CABINETS_UPPER", "style": "dashed"})
return geom
@staticmethod
def plan(x0: float, y0: float, width: float, depth: float = 12.0, scale_x: float = 1.0, scale_y: float = 1.0) -> Dict[str, List]:
geom = {"lines": [], "blocks": [], "texts": []}
x1 = x0 + width * scale_x
y1 = y0 + depth * scale_y
geom["blocks"].append({"type": "rect", "coords": [x0, y0, x1 - x0, y1 - y0], "layer": "CABINETS_UPPER", "style": "dashed"})
return geom
@@ -0,0 +1,31 @@
from typing import Dict, List
class PantryBlock:
@staticmethod
def elevation(x0: float, y0: float, width: float, height: float = 84.0, scale_x: float = 1.0, scale_y: float = 1.0) -> Dict[str, List]:
geom = {"lines": [], "blocks": [], "texts": []}
x1 = x0 + width * scale_x
y1 = y0 + height * scale_y
geom["blocks"].append({"type": "rect", "coords": [x0, y0, x1 - x0, y1 - y0], "layer": "CABINETS_TALL", "style": "solid"})
tk_h = 4.5 * scale_y
geom["lines"].append({"start": [x0, y0 + tk_h], "end": [x1, y0 + tk_h], "layer": "CABINETS_TALL", "style": "solid"})
# Split upper/lower doors at typical height
split_y = y0 + 54.0 * scale_y
if split_y < y1:
geom["lines"].append({"start": [x0, split_y], "end": [x1, split_y], "layer": "CABINETS_TALL", "style": "solid"})
return geom
@staticmethod
def plan(x0: float, y0: float, width: float, depth: float = 24.0, scale_x: float = 1.0, scale_y: float = 1.0) -> Dict[str, List]:
geom = {"lines": [], "blocks": [], "texts": []}
x1 = x0 + width * scale_x
y1 = y0 + depth * scale_y
geom["blocks"].append({"type": "rect", "coords": [x0, y0, x1 - x0, y1 - y0], "layer": "CABINETS_TALL", "style": "solid"})
# Crossed lines to indicate tall
geom["lines"].append({"start": [x0, y0], "end": [x1, y1], "layer": "CABINETS_TALL", "style": "solid"})
geom["lines"].append({"start": [x1, y0], "end": [x0, y1], "layer": "CABINETS_TALL", "style": "solid"})
return geom
@@ -0,0 +1,11 @@
from typing import Dict, List
class FaucetBlock:
@staticmethod
def plan(x0: float, y0: float, scale_x: float = 1.0, scale_y: float = 1.0) -> Dict[str, List]:
geom = {"lines": [], "blocks": [], "texts": []}
# simple circle for base
geom["blocks"].append({"type": "circle", "coords": [x0, y0, 1.0*scale_x], "layer": "FIXTURES", "style": "solid"})
# spout line
geom["lines"].append({"start": [x0, y0], "end": [x0, y0 - 4.0*scale_y], "layer": "FIXTURES", "style": "solid"})
return geom
@@ -0,0 +1,16 @@
from typing import Dict, List
class SinkBlock:
@staticmethod
def plan(x0: float, y0: float, width: float = 30.0, depth: float = 18.0, scale_x: float = 1.0, scale_y: float = 1.0) -> Dict[str, List]:
geom = {"lines": [], "blocks": [], "texts": []}
x1 = x0 + width * scale_x
y1 = y0 + depth * scale_y
geom["blocks"].append({"type": "rect", "coords": [x0, y0, x1 - x0, y1 - y0], "id": "SINK", "layer": "FIXTURES", "style": "solid"})
# Inner bowl
geom["blocks"].append({"type": "rect", "coords": [x0 + 1.5*scale_x, y0 + 1.5*scale_y, (width-3)*scale_x, (depth-3)*scale_y], "layer": "FIXTURES", "style": "solid"})
# Drain
geom["blocks"].append({"type": "circle", "coords": [(x0+x1)/2, (y0+y1)/2, 1.5*scale_x], "layer": "FIXTURES", "style": "solid"})
return geom
@@ -0,0 +1,11 @@
from typing import Dict, List
class ToiletBlock:
@staticmethod
def plan(x0: float, y0: float, width: float = 20.0, depth: float = 28.0, scale_x: float = 1.0, scale_y: float = 1.0) -> Dict[str, List]:
geom = {"lines": [], "blocks": [], "texts": []}
x1 = x0 + width * scale_x
y1 = y0 + depth * scale_y
geom["blocks"].append({"type": "rect", "coords": [x0, y0, x1 - x0, y1 - y0], "id": "WC", "layer": "FIXTURES", "style": "solid"})
geom["texts"].append({"pos": [(x0 + x1) / 2, (y0 + y1) / 2], "text": "WC", "size": 4.5, "layer": "TEXT"})
return geom
@@ -0,0 +1,11 @@
from typing import Dict, List
class TubBlock:
@staticmethod
def plan(x0: float, y0: float, width: float = 60.0, depth: float = 30.0, scale_x: float = 1.0, scale_y: float = 1.0) -> Dict[str, List]:
geom = {"lines": [], "blocks": [], "texts": []}
x1 = x0 + width * scale_x
y1 = y0 + depth * scale_y
geom["blocks"].append({"type": "rect", "coords": [x0, y0, x1 - x0, y1 - y0], "id": "TUB", "layer": "FIXTURES", "style": "solid"})
geom["texts"].append({"pos": [(x0 + x1) / 2, (y0 + y1) / 2], "text": "TUB", "size": 4.5, "layer": "TEXT"})
return geom
@@ -0,0 +1,10 @@
from typing import Dict, List
class ElevationMarkerBlock:
@staticmethod
def draw(x0: float, y0: float, label: str = "1", scale: float = 1.0) -> Dict[str, List]:
geom = {"lines": [], "blocks": [], "texts": []}
r = 3.0 * scale
geom["blocks"].append({"type": "circle", "coords": [x0, y0, r], "layer": "ANNOTATIONS", "style": "solid"})
geom["texts"].append({"pos": [x0, y0], "text": label, "size": 4.0 * scale, "layer": "TEXT"})
return geom
@@ -0,0 +1,11 @@
from typing import Dict, List
class NorthArrowBlock:
@staticmethod
def draw(x0: float, y0: float, scale: float = 1.0) -> Dict[str, List]:
geom = {"lines": [], "blocks": [], "texts": []}
r = 5.0 * scale
geom["blocks"].append({"type": "circle", "coords": [x0, y0, r], "layer": "ANNOTATIONS", "style": "solid"})
geom["lines"].append({"start": [x0, y0 - r], "end": [x0, y0 + r*1.5], "layer": "ANNOTATIONS", "style": "solid"})
geom["texts"].append({"pos": [x0, y0 + r*2], "text": "N", "size": 5.0 * scale, "layer": "TEXT"})
return geom
@@ -0,0 +1,19 @@
from typing import Dict, List
class SectionMarkerBlock:
@staticmethod
def draw(x0: float, y0: float, direction: str = "UP", label: str = "A", scale: float = 1.0) -> Dict[str, List]:
geom = {"lines": [], "blocks": [], "texts": []}
r = 4.0 * scale
geom["blocks"].append({"type": "circle", "coords": [x0, y0, r], "layer": "SECTION_MARKERS", "style": "solid"})
# Line cutting through
geom["lines"].append({"start": [x0 - r*2, y0], "end": [x0 + r*2, y0], "layer": "SECTION_MARKERS", "style": "solid"})
# Triangle pointer
if direction == "UP":
geom["lines"].append({"start": [x0 - r, y0], "end": [x0, y0 + r*1.5], "layer": "SECTION_MARKERS", "style": "solid"})
geom["lines"].append({"start": [x0, y0 + r*1.5], "end": [x0 + r, y0], "layer": "SECTION_MARKERS", "style": "solid"})
geom["texts"].append({"pos": [x0, y0 - r*0.5], "text": label, "size": 4.5 * scale, "layer": "TEXT"})
return geom
+5 -5
View File
@@ -53,10 +53,10 @@ class CabinetGraphBuilder:
upper_items = []
for cab in ev.cabinets:
# convert width_mm to inches
w_in = round(cab.width_mm / 25.4)
h_in = round(cab.height_mm / 25.4)
d_in = round(cab.depth_mm / 25.4)
# convert width_in to inches
w_in = round(cab.width_in)
h_in = round(cab.height_in)
d_in = round(cab.depth_in)
cid = cab.cabinet_id or cab.code
cab_dict = {
@@ -202,7 +202,7 @@ class CabinetGraphBuilder:
for ev in elevations:
# Aggregate cabinets count
for cab in ev.cabinets:
w_in = round(cab.width_mm / 25.4)
w_in = round(cab.width_in)
cid = cab.cabinet_id or cab.code
# Check for special properties
+57 -57
View File
@@ -6,9 +6,9 @@
grade sanity checks to validate the output before auto-approving.
Validation rules:
1. All widths must be within ±25mm of a standard catalog size
2. Total cabinet run width must ≤ room width + 50mm tolerance
3. Base cabinet height: 720mm (or 864mm for ADA)
1. All widths must be within ±25in of a standard catalog size
2. Total cabinet run width must ≤ room width + 50in tolerance
3. Base cabinet height: 720in (or 864in for ADA)
4. Every kitchen elevation must have ≥ 1 base + ≥ 1 upper
5. No two corner cabinets side-by-side
6. Confidence score per item must be ≥ 0.70 to auto-approve
@@ -26,9 +26,9 @@ from dataclasses import dataclass, field
from typing import Optional
from core.config import (
STANDARD_WIDTHS_MM, CABINET_WIDTH_TOLERANCE_MM,
ROOM_WIDTH_TOLERANCE_MM, AUTO_APPROVE_CONFIDENCE,
BASE_CABINET_HEIGHT_STD_MM, BASE_CABINET_HEIGHT_ADA_MM,
STANDARD_WIDTHS_IN, CABINET_WIDTH_TOLERANCE_IN,
ROOM_WIDTH_TOLERANCE_IN, AUTO_APPROVE_CONFIDENCE,
BASE_CABINET_HEIGHT_STD_IN, BASE_CABINET_HEIGHT_ADA_IN,
)
from core.ai_vision_classifier import CabinetItem
@@ -67,13 +67,13 @@ class CabinetValidator:
Usage:
validator = CabinetValidator()
result = validator.validate(cabinets, room_width_mm=4267.2, is_ada=False)
result = validator.validate(cabinets, room_width_in=168.0, is_ada=False)
"""
def validate(
self,
cabinets: list[CabinetItem],
room_width_mm: Optional[float] = None,
room_width_in: Optional[float] = None,
is_ada: bool = False,
location: str = "unknown", # for logging
) -> list[CabinetItem]:
@@ -82,7 +82,7 @@ class CabinetValidator:
Returns corrected cabinets (in-place modifications).
Also prints validation report.
"""
result = self.get_validation_result(cabinets, room_width_mm, is_ada, location)
result = self.get_validation_result(cabinets, room_width_in, is_ada, location)
print(f"\n Validation [{location}]: {result.summary}")
for flag in result.flags:
@@ -97,7 +97,7 @@ class CabinetValidator:
def get_validation_result(
self,
cabinets: list[CabinetItem],
room_width_mm: Optional[float] = None,
room_width_in: Optional[float] = None,
is_ada: bool = False,
location: str = "unknown",
) -> ValidationResult:
@@ -132,49 +132,49 @@ class CabinetValidator:
if cab.cabinet_type == "appliance_space":
continue # appliances are fine with non-standard widths
# Auto-fix: width=0 means Gemini couldn't read it → snap to 762mm default
if cab.width_mm <= 0:
old_w = cab.width_mm
cab.width_mm = 762.0 # 30" — most common standard cabinet width
# Auto-fix: width=0 means Gemini couldn't read it → snap to 762in default
if cab.width_in <= 0:
old_w = cab.width_in
cab.width_in = 30.0 # 30" — most common standard cabinet width
corrections.append(
f"Item {cab.item_num} ({cab.cabinet_type}) had width={old_w:.0f}mm "
f"→ defaulted to 762mm (30\"). Verify against drawing."
f"Item {cab.item_num} ({cab.cabinet_type}) had width={old_w:.0f}in "
f"→ defaulted to 762in (30\"). Verify against drawing."
)
warnings.append(
f"Item {cab.item_num} width was 0/null — used 762mm default"
f"Item {cab.item_num} width was 0/null — used 30in default"
)
nearest, delta = _nearest_standard_width(cab.width_mm)
if delta > CABINET_WIDTH_TOLERANCE_MM:
nearest, delta = _nearest_standard_width(cab.width_in)
if delta > CABINET_WIDTH_TOLERANCE_IN:
flags.append(
f"Item {cab.item_num} ({cab.cabinet_type}) width "
f"{cab.width_mm:.0f}mm is {delta:.0f}mm from nearest "
f"standard ({nearest:.0f}mm)"
f"{cab.width_in:.0f}in is {delta:.0f}in from nearest "
f"standard ({nearest:.0f}in)"
)
elif delta > 5:
# Auto-correct small deviations
old_w = cab.width_mm
cab.width_mm = nearest
old_w = cab.width_in
cab.width_in = nearest
corrections.append(
f"Item {cab.item_num} width snapped "
f"{old_w:.0f}→{nearest:.0f}mm"
f"{old_w:.0f}→{nearest:.0f}in"
)
# ── Check 3: Height correctness ───────────────────────────────────
expected_base_h = BASE_CABINET_HEIGHT_ADA_MM if is_ada else BASE_CABINET_HEIGHT_STD_MM
expected_base_h = BASE_CABINET_HEIGHT_ADA_IN if is_ada else BASE_CABINET_HEIGHT_STD_IN
BASE_TYPES = {"base", "sink_base", "dw_adjacent", "corner_base"}
for cab in cabinets:
if cab.cabinet_type in BASE_TYPES and cab.height_mm > 0:
if is_ada and cab.height_mm > BASE_CABINET_HEIGHT_ADA_MM + 50:
if cab.cabinet_type in BASE_TYPES and cab.height_in > 0:
if is_ada and cab.height_in > BASE_CABINET_HEIGHT_ADA_IN + 50:
flags.append(
f"Item {cab.item_num} ADA base height {cab.height_mm:.0f}mm "
f"exceeds ADA max {BASE_CABINET_HEIGHT_ADA_MM:.0f}mm"
f"Item {cab.item_num} ADA base height {cab.height_in:.0f}in "
f"exceeds ADA max {BASE_CABINET_HEIGHT_ADA_IN:.0f}in"
)
elif not is_ada and abs(cab.height_mm - BASE_CABINET_HEIGHT_STD_MM) > 80:
elif not is_ada and abs(cab.height_in - BASE_CABINET_HEIGHT_STD_IN) > 80:
warnings.append(
f"Item {cab.item_num} base height {cab.height_mm:.0f}mm "
f"differs from standard {BASE_CABINET_HEIGHT_STD_MM:.0f}mm"
f"Item {cab.item_num} base height {cab.height_in:.0f}in "
f"differs from standard {BASE_CABINET_HEIGHT_STD_IN:.0f}in"
)
# ── Check 4: At least 1 base + 1 upper in kitchen elevation ───────
@@ -193,18 +193,18 @@ class CabinetValidator:
warnings.append("No base cabinets detected — verify elevation is kitchen")
# ── Check 5: Total width vs. room width ───────────────────────────
if room_width_mm and room_width_mm > 0:
total_run = sum(c.width_mm for c in cabinets)
delta = total_run - room_width_mm
if delta > ROOM_WIDTH_TOLERANCE_MM:
if room_width_in and room_width_in > 0:
total_run = sum(c.width_in for c in cabinets)
delta = total_run - room_width_in
if delta > ROOM_WIDTH_TOLERANCE_IN:
flags.append(
f"Total cabinet run {total_run:.0f}mm exceeds "
f"room width {room_width_mm:.0f}mm by {delta:.0f}mm"
f"Total cabinet run {total_run:.0f}in exceeds "
f"room width {room_width_in:.0f}in by {delta:.0f}in"
)
elif delta < -(ROOM_WIDTH_TOLERANCE_MM * 3):
elif delta < -(ROOM_WIDTH_TOLERANCE_IN * 3):
warnings.append(
f"Total cabinet run {total_run:.0f}mm is significantly less "
f"than room width {room_width_mm:.0f}mm — may be missing items"
f"Total cabinet run {total_run:.0f}in is significantly less "
f"than room width {room_width_in:.0f}in — may be missing items"
)
# ── Check 6: No consecutive corner cabinets ───────────────────────
@@ -241,24 +241,24 @@ class CabinetValidator:
# HELPERS
# ══════════════════════════════════════════════════════════════════════════
def _nearest_standard_width(width_mm: float) -> tuple[float, float]:
"""Return (nearest_standard_mm, delta_mm)."""
if not STANDARD_WIDTHS_MM:
return width_mm, 0.0
nearest = min(STANDARD_WIDTHS_MM, key=lambda s: abs(s - width_mm))
return nearest, abs(nearest - width_mm)
def _nearest_standard_width(width_in: float) -> tuple[float, float]:
"""Return (nearest_standard_in, delta_in)."""
if not STANDARD_WIDTHS_IN:
return width_in, 0.0
nearest = min(STANDARD_WIDTHS_IN, key=lambda s: abs(s - width_in))
return nearest, abs(nearest - width_in)
def validate_schedule(
cabinets: list[CabinetItem],
room_width_mm: Optional[float] = None,
room_width_in: Optional[float] = None,
is_ada: bool = False,
location: str = "unknown",
) -> tuple[list[CabinetItem], ValidationResult]:
"""Convenience wrapper. Returns (corrected_cabinets, validation_result)."""
validator = CabinetValidator()
result = validator.get_validation_result(cabinets, room_width_mm, is_ada, location)
corrected = validator.validate(cabinets, room_width_mm, is_ada, location)
result = validator.get_validation_result(cabinets, room_width_in, is_ada, location)
corrected = validator.validate(cabinets, room_width_in, is_ada, location)
return corrected, result
@@ -270,18 +270,18 @@ if __name__ == "__main__":
# Sample cabinet schedule for Unit A1 - Elevation A
test_cabinets = [
CabinetItem(1, "upper_wall", 762.0, 300.0, 330.0, "Left of range", "ELEVATION A", 0.92),
CabinetItem(2, "upper_wall", 900.0, 300.0, 330.0, "Right of range","ELEVATION A", 0.88),
CabinetItem(3, "microwave_shelf", 300.0, 460.0, 330.0, "Over range", "ELEVATION A", 0.85),
CabinetItem(4, "base", 762.0, 720.0, 600.0, "Left base", "ELEVATION A", 0.95),
CabinetItem(5, "appliance_space", 610.0, 720.0, 600.0, "DW space", "ELEVATION A", 0.98),
CabinetItem(6, "base", 900.0, 720.0, 600.0, "Right base", "ELEVATION A", 0.91),
CabinetItem(1, "upper_wall", 30.0, 12.0, 13.0, "Left of range", "ELEVATION A", 0.92),
CabinetItem(2, "upper_wall", 36.0, 12.0, 13.0, "Right of range","ELEVATION A", 0.88),
CabinetItem(3, "microwave_shelf", 12.0, 18.0, 13.0, "Over range", "ELEVATION A", 0.85),
CabinetItem(4, "base", 30.0, 34.5, 24.0, "Left base", "ELEVATION A", 0.95),
CabinetItem(5, "appliance_space", 24.0, 34.5, 24.0, "DW space", "ELEVATION A", 0.98),
CabinetItem(6, "base", 36.0, 34.5, 24.0, "Right base", "ELEVATION A", 0.91),
]
validator = CabinetValidator()
result = validator.get_validation_result(
test_cabinets,
room_width_mm=4267.2, # 14'
room_width_in=168.0, # 14'
is_ada=False,
location="Unit A1 Elevation A",
)
+19 -17
View File
@@ -26,12 +26,15 @@ GEMINI_API_KEY: str = os.getenv("GEMINI_API_KEY", "")
GROQ_API_KEY: str = os.getenv("GROQ_API_KEY", "")
OPENROUTER_API_KEY: str = os.getenv("OPENROUTER_API_KEY", "")
# Legacy provider constants retained for older experiments; production vision
# extraction uses OpenRouter Gemini from core.ai_vision_classifier.
CLAUDE_MODEL = "claude-3-5-sonnet-20241022"
CLAUDE_MAX_TOKENS = 4096
CLAUDE_TEMPERATURE = 0.1
GPT4O_MODEL = "gpt-4o"
# Legacy provider constants retained for older experiments; production
# extraction uses OpenRouter Gemini from core.ai_vision_classifier
CLAUDE_MODEL = "claude-3-5-sonnet-20241022"
CLAUDE_MAX_TOKENS = 4096
CLAUDE_TEMPERATURE = 0.1
GPT4O_MODEL = "gpt-4o"
# Production vision extraction model
VISION_MODEL = "google/gemini-pro-vision"
# ── Currency & Unit Conversion ──────────────────────────────────────────────
EUR_USD_RATE: float = float(os.getenv("EUR_USD_RATE", "1.09"))
@@ -55,21 +58,20 @@ DEFAULT_MISC_ALLOWANCE: float = float(os.getenv("MISC_ALLOWANCE",
DEFAULT_CABINETS_PER_CONTAINER: int = int(os.getenv("CABINETS_PER_CONTAINER", "220"))
# ── Validation Thresholds ───────────────────────────────────────────────────
# Cabinet width must be within ±25mm of a standard catalog size to auto-approve
CABINET_WIDTH_TOLERANCE_MM = 25.0
# Total cabinet run must be within ±50mm of room width to auto-approve
ROOM_WIDTH_TOLERANCE_MM = 50.0
# Cabinet width must be within ±1 inch of a standard catalog size to auto-approve
CABINET_WIDTH_TOLERANCE_IN = 1.0
# Total cabinet run must be within ±2 inches of room width to auto-approve
ROOM_WIDTH_TOLERANCE_IN = 2.0
# AI confidence threshold for auto-approval (no human review needed)
AUTO_APPROVE_CONFIDENCE = 0.90
# Standard base cabinet height (non-ADA)
BASE_CABINET_HEIGHT_STD_MM = 720.0
BASE_CABINET_HEIGHT_STD_IN = 34.5
# ADA base cabinet height (max 34" countertop)
BASE_CABINET_HEIGHT_ADA_MM = 864.0
BASE_CABINET_HEIGHT_ADA_IN = 32.5
# ── Standard Cabinet Widths (industry standard, in mm) ─────────────────────
STANDARD_WIDTHS_MM = [
150, 200, 250, 300, 350, 400, 450, 500, 550, 600,
610, 762, 900, 1050, 1200, 1500, # 24", 30", 35.4", 41.3", 47.2", 59"
# ── Standard Cabinet Widths (industry standard, in inches) ─────────────────────
STANDARD_WIDTHS_IN = [
6.0, 9.0, 12.0, 15.0, 18.0, 21.0, 24.0, 27.0, 30.0, 33.0, 36.0, 39.0, 42.0, 45.0, 48.0
]
# ── Region Detection Labels ─────────────────────────────────────────────────
@@ -146,7 +148,7 @@ if __name__ == "__main__":
for w in warnings:
print(f" • {w}")
else:
print("✅ Configuration OK")
print(" Configuration OK")
print(f"\n EUR/USD rate: {EUR_USD_RATE}")
print(f" OpenRouter key: {'SET' if OPENROUTER_API_KEY else 'NOT SET'}")
print(f" Auto-approve threshold: {AUTO_APPROVE_CONFIDENCE}")
+47 -47
View File
@@ -70,9 +70,9 @@ _IMPERIAL_RE = re.compile(
)
# Valid cabinet width range in mm (2" to 72")
_MIN_CAB_MM = 50.0
_MAX_CAB_MM = 2000.0
_VALID_CM_RANGE = (5.0, 350.0) # 5cm to 350cm = 50mm to 3500mm
_MIN_CAB_IN = 2.0
_MAX_CAB_IN = 2000.0
_VALID_CM_RANGE = (5.0, 32.0) # 5cm to 350cm = 50mm to 3500mm
# ══════════════════════════════════════════════════════════════════════════
@@ -82,7 +82,7 @@ _VALID_CM_RANGE = (5.0, 350.0) # 5cm to 350cm = 50mm to 3500mm
@dataclass
class ParsedDimension:
"""A single dimension value extracted from a text span."""
value_mm: float # canonical value in mm
value_in: float # canonical value in mm
source_text: str # original text e.g. "76.20" or "2' - 6\""
dim_type: str # "METRIC" | "IMPERIAL" | "FRACTION"
span_x: float # x-coordinate of span origin
@@ -96,11 +96,11 @@ class DimensionPair:
A cross-validated dimension — metric + imperial values for the same measurement.
When both are found and agree, confidence is HIGH.
"""
value_mm: float
value_in: float
metric_text: Optional[str]
imperial_text: Optional[str]
confidence: str # "HIGH" | "METRIC_ONLY" | "IMPERIAL_ONLY" | "MISMATCH"
mismatch_mm: Optional[float] = None # difference if mismatch
mismatch_in: Optional[float] = None # difference if mismatch
@dataclass
@@ -117,7 +117,7 @@ class LabeledRect:
# PARSING FUNCTIONS
# ══════════════════════════════════════════════════════════════════════════
def parse_metric_mm(text: str) -> Optional[float]:
def parse_metric_in(text: str) -> Optional[float]:
"""
Parse a metric dimension text → value in mm.
Input is assumed to be in cm (the standard in these drawings).
@@ -145,7 +145,7 @@ def parse_metric_mm(text: str) -> Optional[float]:
return val * 10.0 # cm → mm
def parse_imperial_mm(text: str) -> Optional[float]:
def parse_imperial_in(text: str) -> Optional[float]:
"""
Parse an imperial dimension text → value in mm.
Handles: "2' - 6\"", "3'-0\"", "7' - 6\"", "14'", "[2'-6\"]", "36\""
@@ -163,9 +163,9 @@ def parse_imperial_mm(text: str) -> Optional[float]:
frac_den = int(bracket_m.group(4) or 1)
frac = frac_num / frac_den if frac_den else 0
total_inches = feet * 12 + inches + frac
mm = total_inches * 25.4
if _MIN_CAB_MM <= mm <= _MAX_CAB_MM * 3:
return mm
val_in = total_inches
if _MIN_CAB_IN <= val_in <= _MAX_CAB_IN * 3:
return val_in
return None
# Feet + inches form: "2' - 6\""
@@ -179,71 +179,71 @@ def parse_imperial_mm(text: str) -> Optional[float]:
frac_den = int(fi_m.group(4) or 1)
frac = frac_num / frac_den if frac_den else 0
total_inches = feet * 12 + inches + frac
mm = total_inches * 25.4
if _MIN_CAB_MM <= mm <= _MAX_CAB_MM * 2:
return mm
val_in = total_inches
if _MIN_CAB_IN <= val_in <= _MAX_CAB_IN * 2:
return val_in
# Feet only: "14'"
feet_only = re.search(r'^(\d+)\s*[\'′]$', text)
if feet_only:
total_inches = int(feet_only.group(1)) * 12
mm = total_inches * 25.4
if _MIN_CAB_MM <= mm <= _MAX_CAB_MM * 2:
return mm
val_in = total_inches
if _MIN_CAB_IN <= val_in <= _MAX_CAB_IN * 2:
return val_in
# Inches only: "36\""
inches_only = re.search(r'^(\d+(?:\.\d+)?)\s*["″]$', text)
if inches_only:
mm = float(inches_only.group(1)) * 25.4
if _MIN_CAB_MM <= mm <= _MAX_CAB_MM * 2:
return mm
if _MIN_CAB_IN <= val_in <= _MAX_CAB_IN * 2:
return val_in
return None
def cross_validate(
metric_mm: Optional[float],
imperial_mm: Optional[float],
tolerance_mm: float = 10.0,
metric_in: Optional[float],
imperial_in: Optional[float],
tolerance_in: float = 0.5,
) -> DimensionPair:
"""
Cross-validate metric and imperial values for the same dimension.
Tolerance: ±10mm (accounts for rounding in cm vs imperial notation).
"""
if metric_mm is not None and imperial_mm is not None:
diff = abs(metric_mm - imperial_mm)
if diff <= tolerance_mm:
if metric_in is not None and imperial_in is not None:
diff = abs(metric_in - imperial_in)
if diff <= tolerance_in:
return DimensionPair(
value_mm = metric_mm, # prefer metric (exact)
metric_text = f"{metric_mm/10:.2f}cm",
imperial_text = f"{imperial_mm/25.4:.2f}\"",
value_in = metric_in, # prefer metric (exact)
metric_text = f"{metric_in/10:.2f}cm",
imperial_text = f"{imperial_in/25.4:.2f}\"",
confidence = "HIGH",
)
else:
return DimensionPair(
value_mm = metric_mm,
metric_text = f"{metric_mm/10:.2f}cm",
imperial_text = f"{imperial_mm/25.4:.2f}\"",
value_in = metric_in,
metric_text = f"{metric_in/10:.2f}cm",
imperial_text = f"{imperial_in/25.4:.2f}\"",
confidence = "MISMATCH",
mismatch_mm = diff,
mismatch_in = diff,
)
elif metric_mm is not None:
elif metric_in is not None:
return DimensionPair(
value_mm = metric_mm,
metric_text = f"{metric_mm/10:.2f}cm",
value_in = metric_in,
metric_text = f"{metric_in/10:.2f}cm",
imperial_text = None,
confidence = "METRIC_ONLY",
)
elif imperial_mm is not None:
elif imperial_in is not None:
return DimensionPair(
value_mm = imperial_mm,
value_in = imperial_in,
metric_text = None,
imperial_text = f"{imperial_mm/25.4:.2f}\"",
imperial_text = f"{imperial_in/25.4:.2f}\"",
confidence = "IMPERIAL_ONLY",
)
else:
return DimensionPair(
value_mm=0, metric_text=None, imperial_text=None,
value_in=0, metric_text=None, imperial_text=None,
confidence="NONE",
)
@@ -286,13 +286,13 @@ def classify_spans(spans: list[TextSpan]) -> dict[str, list[TextSpan]]:
# Metric dimension: has decimal point and is in valid range
is_metric = False
if "." in t and len(t) < 12:
mv = parse_metric_mm(t)
mv = parse_metric_in(t)
is_metric = mv is not None
# Imperial dimension: contains foot or inch marks
is_imperial = False
if ("'" in t or '"' in t or "'" in t or "″" in t or "[" in t) and len(t) < 20:
iv = parse_imperial_mm(t)
iv = parse_imperial_in(t)
is_imperial = iv is not None
if is_label:
@@ -351,12 +351,12 @@ def associate_dims_to_rects(
# Sort by distance, try to assign widths and heights
nearby_dims.sort(key=lambda x: x[0])
for _, ds in nearby_dims[:4]:
mm = parse_metric_mm(ds.text) or parse_imperial_mm(ds.text)
mm = parse_metric_in(ds.text) or parse_imperial_in(ds.text)
if mm is None:
continue
if ds.is_horizontal and width_mm is None:
width_mm = mm
dim_conf = "METRIC_ONLY" if parse_metric_mm(ds.text) else "IMPERIAL_ONLY"
dim_conf = "METRIC_ONLY" if parse_metric_in(ds.text) else "IMPERIAL_ONLY"
elif not ds.is_horizontal and height_mm is None:
height_mm = mm
@@ -404,19 +404,19 @@ if __name__ == "__main__":
print("=== Metric Parsing ===")
for txt, expected in tests_metric:
result = parse_metric_mm(txt)
result = parse_metric_in(txt)
status = "✅" if (result == expected or (result is None and expected is None)) else "❌"
print(f" {status} '{txt}' → {result} (expected {expected})")
print("\n=== Imperial Parsing ===")
for txt, expected in tests_imperial:
result = parse_imperial_mm(txt)
result = parse_imperial_in(txt)
delta = abs((result or 0) - (expected or 0))
status = "✅" if (result is not None and expected is not None and delta < 1) else "❌"
print(f" {status} '{txt}' → {result:.1f if result else None} (expected {expected})")
print("\n=== Cross-Validation ===")
pair = cross_validate(762.0, 762.0)
print(f" 76.20cm + [2'-6\"] → {pair.confidence} ({pair.value_mm}mm)")
print(f" 76.20cm + [2'-6\"] → {pair.confidence} ({pair.value_in}mm)")
pair = cross_validate(762.0, 914.4)
print(f" 76.20cm + 36\" → {pair.confidence} (diff={pair.mismatch_mm:.1f}mm)")
print(f" 76.20cm + 36\" → {pair.confidence} (diff={pair.mismatch_in:.1f}mm)")
+62
View File
@@ -0,0 +1,62 @@
from typing import Dict, List, Any
class ADAEngine:
"""Validates and enforces ADA compliance rules for kitchen and vanity layouts."""
@staticmethod
def validate_clearances(geometry: Dict[str, Any]) -> Dict[str, Any]:
"""Checks for minimum 60-inch turning radius and 30x48 clear floor spaces."""
issues = []
# Placeholder logic: scan bounding boxes for a 60" diameter circle
# Example validation:
# if not has_60_inch_radius:
# issues.append({"severity": "ERROR", "message": "Turning radius < 60 inches."})
return {
"status": "PASS" if not issues else "FAIL",
"issues": issues
}
@staticmethod
def validate_reach_ranges(cabinets: List[Dict[str, Any]]) -> Dict[str, Any]:
"""Validates that operable parts are within 15 to 48 inches AFF."""
issues = []
for cab in cabinets:
if cab.get('family') == 'UPPER':
# ADA Uppers often need to be mounted lower or have specialized pull-down hardware
issues.append({"severity": "WARNING", "message": f"Upper cabinet {cab.get('id', '')} exceeds preferred ADA reach zone."})
return {
"status": "PASS" if not any(i['severity'] == 'ERROR' for i in issues) else "FAIL",
"issues": issues
}
@staticmethod
def validate_sink_approach(sink_cabinet: Dict[str, Any]) -> Dict[str, Any]:
"""Validates that sink bases have removable fronts and pipe protection."""
issues = []
if sink_cabinet.get('render_style') != 'sink_base':
issues.append({"severity": "ERROR", "message": "ADA Sink cabinet must be a compliant sink base with knee clearance."})
# Ensure it has a removable front or knee clearance
return {
"status": "PASS" if not issues else "FAIL",
"issues": issues
}
@staticmethod
def run_full_validation(unit_data: Dict[str, Any]) -> Dict[str, Any]:
"""Runs all ADA validation checks on a unit."""
if not unit_data.get('is_ada', False):
return {"status": "NOT_APPLICABLE"}
clearance_res = ADAEngine.validate_clearances(unit_data.get('geometry', {}))
reach_res = ADAEngine.validate_reach_ranges(unit_data.get('cabinets', []))
# To get the sink cabinet, you'd find it in cabinets list. Assume empty for placeholder
all_issues = clearance_res['issues'] + reach_res['issues']
return {
"status": "PASS" if not any(i['severity'] == 'ERROR' for i in all_issues) else "FAIL",
"issues": all_issues
}
@@ -0,0 +1,94 @@
from typing import Dict, List, Any
class AnnotationEngine:
"""Handles textual and symbol annotations like callouts, labels, and tags."""
@staticmethod
def draw_cabinet_tag(x: float, y: float, text: str, scale: float = 1.0) -> Dict[str, List]:
"""Draws a standard hexagonal or circular cabinet tag."""
geom = {"lines": [], "blocks": [], "texts": []}
# Hexagon tag
r = 3.0 * scale
pts = []
import math
for i in range(6):
angle_deg = 60 * i
angle_rad = math.pi / 180 * angle_deg
pts.append([x + r * math.cos(angle_rad), y + r * math.sin(angle_rad)])
geom["blocks"].append({
"type": "polygon",
"points": pts,
"layer": "ANNOTATION",
"style": "solid"
})
geom["texts"].append({
"pos": [x, y],
"text": text,
"size": 2.5 * scale,
"layer": "ANNOTATION_TEXT",
"align": "CENTER"
})
return geom
@staticmethod
def draw_leader_callout(start_pt: List[float], end_pt: List[float], text: str, scale: float = 1.0) -> Dict[str, List]:
"""Draws a leader line pointing from an object to a text note."""
geom = {"lines": [], "blocks": [], "texts": []}
x1, y1 = start_pt
x2, y2 = end_pt
# Leader line
geom["lines"].append({"start": [x1, y1], "end": [x2, y2], "layer": "ANNOTATION", "style": "solid"})
# Leader shoulder (horizontal landing)
shoulder_len = 5.0 * scale
direction = 1 if x2 > x1 else -1
x3 = x2 + (shoulder_len * direction)
geom["lines"].append({"start": [x2, y2], "end": [x3, y2], "layer": "ANNOTATION", "style": "solid"})
# Text
geom["texts"].append({
"pos": [x3 + (1.0 * direction * scale), y2 + (1.0 * scale)],
"text": text,
"size": 3.0 * scale,
"layer": "ANNOTATION_TEXT",
"align": "LEFT" if direction == 1 else "RIGHT"
})
return geom
@staticmethod
def draw_elevation_marker(x: float, y: float, view_name: str, sheet_num: str, scale: float = 1.0) -> Dict[str, List]:
"""Draws a standard elevation target marker (circle with an arrow)."""
geom = {"lines": [], "blocks": [], "texts": []}
r = 4.0 * scale
# Circle
geom["blocks"].append({
"type": "circle",
"center": [x, y],
"radius": r,
"layer": "ANNOTATION",
"style": "solid"
})
# Split line
geom["lines"].append({"start": [x - r, y], "end": [x + r, y], "layer": "ANNOTATION", "style": "solid"})
# Texts
geom["texts"].append({"pos": [x, y + (r/2)], "text": view_name, "size": 2.5 * scale, "layer": "ANNOTATION_TEXT", "align": "CENTER"})
geom["texts"].append({"pos": [x, y - (r/2)], "text": sheet_num, "size": 2.5 * scale, "layer": "ANNOTATION_TEXT", "align": "CENTER"})
# Arrow (pointing up as default)
geom["blocks"].append({
"type": "polygon",
"points": [[x, y + r + (2*scale)], [x - (2*scale), y + r], [x + (2*scale), y + r]],
"layer": "ANNOTATION",
"style": "solid"
})
return geom
@@ -0,0 +1,233 @@
from dataclasses import dataclass
from typing import Dict, Optional, List
@dataclass
class ApplianceModel:
"""Specification for a single appliance model."""
model_code: str # e.g., "GTE18GSNRSS"
model_name: str # e.g., "GTE18GSNRSS"
appliance_type: str # "refrigerator", "range", "dishwasher", "microwave", "hood"
width_in: float
height_in: float
depth_in: float
width_mm: float
height_mm: float
depth_mm: float
is_ada: bool
manufacturer: str
notes: str = ""
class ApplianceDatabase:
"""Central database for appliance specifications."""
CATALOG = {
# Refrigerators
"GTE18GSNRSS": ApplianceModel(
model_code="GTE18GSNRSS",
model_name="GTE18GSNRSS",
appliance_type="refrigerator",
width_in=28.0,
height_in=67.6,
depth_in=29.75,
width_mm=711.2,
height_mm=1717.04,
depth_mm=755.65,
is_ada=False,
manufacturer="GE",
notes="Standard French door refrigerator"
),
# Ranges - Regular
"GRF400PV": ApplianceModel(
model_code="GRF400PV",
model_name="GRF400PV",
appliance_type="range",
width_in=30.0,
height_in=36.0,
depth_in=28.75,
width_mm=762.0,
height_mm=914.4,
depth_mm=730.3,
is_ada=False,
manufacturer="GE",
notes="Gas range with oven"
),
# Ranges - ADA
"GRS500PVSS": ApplianceModel(
model_code="GRS500PVSS",
model_name="GRS500PVSS",
appliance_type="range",
width_in=30.0,
height_in=34.0,
depth_in=28.5,
width_mm=762.0,
height_mm=863.6,
depth_mm=723.9,
is_ada=True,
manufacturer="GE",
notes="ADA-compliant gas range, max 34\" height"
),
# Dishwashers - Regular
"GDT535PSRSS": ApplianceModel(
model_code="GDT535PSRSS",
model_name="GDT535PSRSS",
appliance_type="dishwasher",
width_in=24.0,
height_in=33.875,
depth_in=24.75,
width_mm=609.6,
height_mm=860.55,
depth_mm=628.65,
is_ada=False,
manufacturer="GE",
notes="Standard undercounter dishwasher"
),
# Dishwashers - ADA
"GDT225SSLSS": ApplianceModel(
model_code="GDT225SSLSS",
model_name="GDT225SSLSS ADA",
appliance_type="dishwasher",
width_in=24.0,
height_in=33.875,
depth_in=24.75,
width_mm=609.6,
height_mm=860.55,
depth_mm=628.65,
is_ada=True,
manufacturer="GE",
notes="ADA-compliant dishwasher"
),
# Microwaves - Regular
"JVM3160RFSS": ApplianceModel(
model_code="JVM3160RFSS",
model_name="JVM3160RFSS",
appliance_type="microwave",
width_in=30.0,
height_in=15.875,
depth_in=15.375,
width_mm=762.0,
height_mm=403.225,
depth_mm=390.525,
is_ada=False,
manufacturer="GE",
notes="Over-the-range microwave"
),
# Microwaves - ADA
"JES1145SHSS": ApplianceModel(
model_code="JES1145SHSS",
model_name="JES1145SHSS",
appliance_type="microwave",
width_in=30.0,
height_in=15.625,
depth_in=15.375,
width_mm=762.0,
height_mm=396.875,
depth_mm=390.525,
is_ada=True,
manufacturer="GE",
notes="ADA-compliant microwave oven"
),
# Range Hoods - ADA Only
"JVX3300SJSS": ApplianceModel(
model_code="JVX3300SJSS",
model_name="JVX3300SJSS",
appliance_type="hood",
width_in=30.0,
height_in=17.0,
depth_in=20.0,
width_mm=762.0,
height_mm=431.8,
depth_mm=508.0,
is_ada=True,
manufacturer="GE",
notes="ADA range hood for accessible kitchens"
),
# Another refrigerator model just in case
"GTE18GTNRBB": ApplianceModel(
model_code="GTE18GTNRBB",
model_name="GTE18GTNRBB",
appliance_type="refrigerator",
width_in=28.0,
height_in=67.6,
depth_in=29.75,
width_mm=711.2,
height_mm=1717.04,
depth_mm=755.65,
is_ada=False,
manufacturer="GE",
notes="Standard refrigerator"
)
}
@classmethod
def get_appliance(cls, model_code: str) -> Optional[ApplianceModel]:
"""Retrieve appliance specification by model code."""
return cls.CATALOG.get(model_code)
@classmethod
def get_appliances_by_type(cls, appliance_type: str, ada: bool = False) -> List[ApplianceModel]:
"""Get all appliances of a type (optionally filtered for ADA)."""
return [
app for app in cls.CATALOG.values()
if app.appliance_type == appliance_type
and (not ada or app.is_ada)
]
@classmethod
def get_appliance_schedule(cls, project_config: dict) -> dict:
"""Generate appliance schedule from project config.
Validates that specified models exist in database.
"""
schedule = {
'regular': [],
'ada': []
}
for model_str in project_config.get('appliances_regular', []):
model_code = cls._extract_model_code(model_str)
app = cls.get_appliance(model_code)
if app:
schedule['regular'].append({
'model': model_code,
'spec': app,
'name': model_str
})
for model_str in project_config.get('appliances_ada', []):
model_code = cls._extract_model_code(model_str)
app = cls.get_appliance(model_code)
if app:
schedule['ada'].append({
'model': model_code,
'spec': app,
'name': model_str
})
return schedule
@staticmethod
def _extract_model_code(model_string: str) -> str:
"""Extract model code from description string."""
parts = model_string.split()
if "MODEL" in model_string:
try:
idx = parts.index("MODEL")
if idx + 1 < len(parts):
# In cases like "GTE18GSNRSS ADA", take the first part
return parts[idx + 1]
except ValueError:
pass
# If MODEL is not found or fails, try to find a known code
for known_code in ApplianceDatabase.CATALOG.keys():
if known_code in model_string:
return known_code
return ""
@@ -0,0 +1,183 @@
from typing import Dict, List, Any
class ApplianceLibrary:
"""Procedural generator for appliance CAD blocks."""
@staticmethod
def draw_refrigerator_elevation(x0: float, y0: float, width: float, scale_x: float = 4.0, scale_y: float = 3.0) -> Dict[str, List]:
"""Draws a refrigerator in elevation view."""
geom = {"lines": [], "blocks": [], "texts": []}
x1 = x0 + width * scale_x
y1 = y0 + 72.0 * scale_y # Ref height is typically 72"
# Main body
geom["blocks"].append({
"type": "rect",
"coords": [x0, y0, x1 - x0, y1 - y0],
"id": "REF", "layer": "APPLIANCES", "style": "solid"
})
# Doors divide
mid_x = x0 + (width / 2.0) * scale_x
geom["lines"].append({"start": [mid_x, y0], "end": [mid_x, y1], "layer": "APPLIANCES", "style": "solid"})
# Handles
h_start_y = y0 + 30.0 * scale_y
h_end_y = y0 + 48.0 * scale_y
geom["lines"].append({"start": [mid_x - 1.5, h_start_y], "end": [mid_x - 1.5, h_end_y], "layer": "HANDLES", "style": "solid"})
geom["lines"].append({"start": [mid_x + 1.5, h_start_y], "end": [mid_x + 1.5, h_end_y], "layer": "HANDLES", "style": "solid"})
# Text
geom["texts"].append({"pos": [(x0 + x1) / 2, (y0 + y1) / 2], "text": "REF", "size": 4.5, "layer": "TEXT"})
return geom
@staticmethod
def draw_dishwasher_elevation(x0: float, y0: float, width: float, height: float, scale_x: float = 4.0, scale_y: float = 3.0) -> Dict[str, List]:
geom = {"lines": [], "blocks": [], "texts": []}
x1 = x0 + width * scale_x
y1 = y0 + height * scale_y
geom["blocks"].append({
"type": "rect",
"coords": [x0, y0, x1 - x0, y1 - y0],
"id": "D/W", "layer": "APPLIANCES", "style": "solid"
})
# Control panel
geom["lines"].append({"start": [x0, y1 - 4.0 * scale_y], "end": [x1, y1 - 4.0 * scale_y], "layer": "APPLIANCES", "style": "solid"})
geom["texts"].append({"pos": [(x0 + x1) / 2, (y0 + y1) / 2 - 2.0 * scale_y], "text": "D/W\nS.S", "size": 4.5, "layer": "TEXT"})
return geom
@staticmethod
def draw_range_elevation(x0: float, y0: float, width: float, scale_x: float = 4.0, scale_y: float = 3.0) -> Dict[str, List]:
geom = {"lines": [], "blocks": [], "texts": []}
x1 = x0 + width * scale_x
y1_stove = y0 + 36.0 * scale_y
# Main body
geom["blocks"].append({
"type": "rect",
"coords": [x0, y0, x1 - x0, y1_stove - y0],
"id": "STOVE", "layer": "APPLIANCES", "style": "solid"
})
# Bottom warming drawer
geom["lines"].append({"start": [x0, y0 + 8.0 * scale_y], "end": [x1, y0 + 8.0 * scale_y], "layer": "APPLIANCES", "style": "solid"})
# Glass window
geom["blocks"].append({
"type": "rect",
"coords": [x0 + 4.0 * scale_x, y0 + 12.0 * scale_y, (width - 8.0) * scale_x, 14.0 * scale_y],
"id": "", "layer": "APPLIANCES", "style": "solid"
})
# Control panel
geom["lines"].append({"start": [x0, y1_stove - 4.0 * scale_y], "end": [x1, y1_stove - 4.0 * scale_y], "layer": "APPLIANCES", "style": "solid"})
# Knobs
for i in range(1, 5):
kx = x0 + (width / 5.0 * i) * scale_x
geom["blocks"].append({
"type": "rect",
"coords": [kx - 1.0, y1_stove - 3.0 * scale_y, 2.0, 2.0 * scale_y],
"id": "", "layer": "APPLIANCES", "style": "solid"
})
return geom
@staticmethod
def draw_microwave_elevation(x0: float, y0: float, width: float, height: float, scale_x: float = 4.0, scale_y: float = 3.0) -> Dict[str, List]:
geom = {"lines": [], "blocks": [], "texts": []}
x1 = x0 + width * scale_x
y1 = y0 + height * scale_y
geom["blocks"].append({
"type": "rect",
"coords": [x0, y0, x1 - x0, y1 - y0],
"id": "MW", "layer": "APPLIANCES", "style": "solid"
})
# Keypad
geom["lines"].append({"start": [x1 - 6.0 * scale_x, y0], "end": [x1 - 6.0 * scale_x, y1], "layer": "APPLIANCES", "style": "solid"})
geom["blocks"].append({
"type": "rect",
"coords": [x1 - 5.0 * scale_x, y0 + 2.0 * scale_y, 3.0 * scale_x, 6.0 * scale_y],
"id": "", "layer": "APPLIANCES", "style": "solid"
})
# Window
geom["blocks"].append({
"type": "rect",
"coords": [x0 + 2.0 * scale_x, y0 + 2.0 * scale_y, (width - 10.0) * scale_x, (height - 4.0) * scale_y],
"id": "", "layer": "APPLIANCES", "style": "solid"
})
return geom
@staticmethod
def draw_sink_elevation(x0: float, y1: float, width: float, scale_x: float = 4.0, scale_y: float = 3.0) -> Dict[str, List]:
"""Draws dashed sink bowl in elevation behind base cabinets."""
geom = {"lines": [], "blocks": [], "texts": []}
x1 = x0 + width * scale_x
sink_d = 8.0 * scale_y
geom["lines"].append({"start": [x0 + 3.0 * scale_x, y1], "end": [x0 + 3.0 * scale_x, y1 - sink_d], "layer": "SINK", "style": "dashed"})
geom["lines"].append({"start": [x0 + 3.0 * scale_x, y1 - sink_d], "end": [x1 - 3.0 * scale_x, y1 - sink_d], "layer": "SINK", "style": "dashed"})
geom["lines"].append({"start": [x1 - 3.0 * scale_x, y1 - sink_d], "end": [x1 - 3.0 * scale_x, y1], "layer": "SINK", "style": "dashed"})
return geom
@staticmethod
def draw_sink_plan(x0: float, y0: float, width: float, depth: float, scale_x: float = 4.0, scale_y: float = 4.0) -> Dict[str, List]:
"""Draws sink symbol in floor plan."""
geom = {"lines": [], "blocks": [], "texts": []}
x1 = x0 + width * scale_x
# Center of sink
cx = x0 + (width / 2.0) * scale_x
cy = y0 + (depth / 2.0) * scale_y
sink_w = min(width - 6.0, 24.0) * scale_x
sink_h = 16.0 * scale_y
# Outer rim
geom["blocks"].append({
"type": "rect",
"coords": [cx - sink_w/2, cy - sink_h/2, sink_w, sink_h],
"id": "SINK", "layer": "APPLIANCES", "style": "solid"
})
# Drain circle approximation (diamond for now)
dx, dy = cx, cy + 2.0 * scale_y
r = 1.0 * scale_x
geom["lines"].append({"start": [dx-r, dy], "end": [dx, dy+r], "layer": "APPLIANCES", "style": "solid"})
geom["lines"].append({"start": [dx, dy+r], "end": [dx+r, dy], "layer": "APPLIANCES", "style": "solid"})
geom["lines"].append({"start": [dx+r, dy], "end": [dx, dy-r], "layer": "APPLIANCES", "style": "solid"})
geom["lines"].append({"start": [dx, dy-r], "end": [dx-r, dy], "layer": "APPLIANCES", "style": "solid"})
return geom
@staticmethod
def draw_range_plan(x0: float, y0: float, width: float, depth: float, scale_x: float = 4.0, scale_y: float = 4.0) -> Dict[str, List]:
"""Draws range symbol with 4 burners in floor plan."""
geom = {"lines": [], "blocks": [], "texts": []}
x1 = x0 + width * scale_x
y1 = y0 + depth * scale_y
geom["blocks"].append({
"type": "rect",
"coords": [x0, y0, width * scale_x, depth * scale_y],
"id": "RANGE", "layer": "APPLIANCES", "style": "solid"
})
# 4 burners
margin_x = 4.0 * scale_x
margin_y = 4.0 * scale_y
spacing_x = (width * scale_x - 2*margin_x)
spacing_y = (depth * scale_y - 2*margin_y)
for bx in [x0 + margin_x, x1 - margin_x]:
for by in [y0 + margin_y, y1 - margin_y]:
# Draw burner as a small box or cross
geom["lines"].append({"start": [bx-2, by], "end": [bx+2, by], "layer": "APPLIANCES", "style": "solid"})
geom["lines"].append({"start": [bx, by-2], "end": [bx, by+2], "layer": "APPLIANCES", "style": "solid"})
return geom
@@ -0,0 +1,101 @@
import re
from functools import lru_cache
from typing import Dict, Any
class CabinetLibraryResolver:
@staticmethod
@lru_cache(maxsize=512)
def resolve_cabinet(nomenclature: str) -> Dict[str, Any]:
"""Resolves a cabinet string like SB36 or W3036 into a detailed dictionary."""
nom = nomenclature.upper().strip()
# Extract all numbers
nums = re.findall(r'\d+', nom)
width = float(nums[0]) if nums else 0.0
height = 0.0
depth = 0.0
family = 'BASE'
render_style = 'standard'
doors = 1 if width < 24 else 2
drawers = 1 if width < 24 else 2
if nom.startswith('W'):
family = 'UPPER'
depth = 12.0
if len(nums) >= 2:
height = float(nums[1])
else:
height = 30.0
drawers = 0
if nom.startswith('WF'):
render_style = 'filler'
doors = 0
elif nom.startswith('WEP') or nom == 'WP':
render_style = 'panel'
width = width if width > 0 else 1.5
doors = 0
elif nom.startswith('P') or nom.startswith('WP') or nom.startswith('REP'):
family = 'TALL'
depth = 24.0
height = 84.0
if len(nums) >= 2:
height = float(nums[1])
drawers = 0
if nom.startswith('TF'):
render_style = 'filler'
doors = 0
elif nom.startswith('REP') or nom.startswith('TP') or nom.startswith('TEP'):
render_style = 'panel'
width = width if width > 0 else 1.5
doors = 0
elif nom.startswith('SB') or 'SINK' in nom:
family = 'BASE'
depth = 24.0
height = 34.5
render_style = 'sink_base'
drawers = 0 # Sink bases usually have false fronts, not functional drawers
elif nom.startswith('DB') or nom.startswith('3DB') or nom.startswith('4DB'):
family = 'BASE'
depth = 24.0
height = 34.5
render_style = 'drawer_base'
doors = 0
if '3' in nom: drawers = 3
elif '4' in nom: drawers = 4
else: drawers = 3
elif nom.startswith('F') or nom.startswith('BF'):
family = 'BASE'
depth = 24.0
height = 34.5
render_style = 'filler'
doors = 0
drawers = 0
elif nom.startswith('BEP') or nom == 'BP':
family = 'BASE'
depth = 24.0
height = 34.5
render_style = 'panel'
width = width if width > 0 else 1.5
doors = 0
drawers = 0
else:
family = 'BASE'
depth = 24.0
height = 34.5
return {
'family': family,
'width': width,
'depth': depth,
'height': height,
'doors': doors,
'drawers': drawers,
'render_style': render_style
}
@@ -0,0 +1,151 @@
from typing import Dict, List, Any
class CabinetRendererFactory:
"""Renders cabinet geometry based on type, producing detailed architectural graphics."""
@staticmethod
def render_elevation(cab: Dict[str, Any], x0: float, y0: float, x1: float, y1: float, is_upper: bool, is_pantry: bool, is_drawer: bool, render_style: str = 'standard', scale_x: float = 1.0, scale_y: float = 1.0) -> Dict[str, List]:
geom = {"lines": [], "blocks": [], "texts": []}
layer = "CABINETS_UPPER" if is_upper else "CABINETS_BASE"
cab_w = (x1 - x0) / scale_x
cab_h = (y1 - y0) / scale_y
# 1. Outer box (Face frame / carcass)
geom["blocks"].append({
"type": "rect",
"coords": [x0, y0, x1 - x0, y1 - y0],
"id": cab.get("cabinet_id", ""),
"layer": layer,
"style": "solid"
})
if render_style in ('filler', 'panel'):
# Just return the solid box for a filler or panel, no doors/drawers
return geom
# 1.5 Face Frame Inner Edge (1.5" frame width)
frame_w = 1.5 * scale_x
geom["blocks"].append({
"type": "rect",
"coords": [x0 + frame_w, y0 + frame_w, (x1 - x0) - 2*frame_w, (y1 - y0) - 2*frame_w],
"layer": layer,
"style": "solid"
})
if is_drawer:
# 3-drawer stack with fronts
drawers = 3
drawer_h = ((y1 - y0) - 2*frame_w) / drawers
for i in range(drawers):
dy_bottom = y0 + frame_w + i * drawer_h
dy_top = dy_bottom + drawer_h
# Drawer front gap (1/8")
gap = 0.125 * scale_x
geom["blocks"].append({
"type": "rect",
"coords": [x0 + frame_w + gap, dy_bottom + gap, (x1 - x0) - 2*(frame_w + gap), drawer_h - 2*gap],
"layer": "DOOR_PANEL",
"style": "solid"
})
# Handle
hy = dy_bottom + drawer_h / 2
geom["lines"].append({
"start": [(x0 + x1)/2 - 3.0 * scale_x, hy],
"end": [(x0 + x1)/2 + 3.0 * scale_x, hy],
"layer": "HANDLES", "style": "solid"
})
geom["blocks"].append({
"type": "circle",
"coords": [(x0 + x1)/2 - 3.0 * scale_x, hy, 0.2 * scale_x],
"layer": "HANDLES", "style": "solid"
})
geom["blocks"].append({
"type": "circle",
"coords": [(x0 + x1)/2 + 3.0 * scale_x, hy, 0.2 * scale_x],
"layer": "HANDLES", "style": "solid"
})
else:
y1_door = y1 - frame_w
# Top drawer for base cabinets
drawer_h = 6.0 * scale_y
if not is_upper and not is_pantry and cab_h > drawer_h + 3.0:
dy_drawer = y1 - frame_w - drawer_h
gap = 0.125 * scale_x
# Drawer Front
geom["blocks"].append({
"type": "rect",
"coords": [x0 + frame_w + gap, dy_drawer + gap, (x1 - x0) - 2*(frame_w + gap), drawer_h - 2*gap],
"layer": "DOOR_PANEL",
"style": "solid"
})
# Drawer Handle
hy = dy_drawer + drawer_h/2
geom["lines"].append({
"start": [(x0 + x1)/2 - 3.0 * scale_x, hy],
"end": [(x0 + x1)/2 + 3.0 * scale_x, hy],
"layer": "HANDLES", "style": "solid"
})
# Drawer separator line
geom["lines"].append({"start": [x0 + frame_w, dy_drawer], "end": [x1 - frame_w, dy_drawer], "layer": layer, "style": "solid"})
y1_door = dy_drawer
# Doors
gap = 0.125 * scale_x
if cab_w > 21.0:
# Double door
xm = (x0 + x1) / 2
# Left Door
geom["blocks"].append({
"type": "rect",
"coords": [x0 + frame_w + gap, y0 + frame_w + gap, (xm - x0) - frame_w - 2*gap, (y1_door - y0) - frame_w - 2*gap],
"layer": "DOOR_PANEL", "style": "solid"
})
# Right Door
geom["blocks"].append({
"type": "rect",
"coords": [xm + gap, y0 + frame_w + gap, (x1 - xm) - frame_w - 2*gap, (y1_door - y0) - frame_w - 2*gap],
"layer": "DOOR_PANEL", "style": "solid"
})
# Swings (Left Door)
geom["lines"].append({"start": [x0 + frame_w, (y0 + y1_door) / 2], "end": [xm, y0 + frame_w], "layer": "SWING", "style": "dashed"})
geom["lines"].append({"start": [x0 + frame_w, (y0 + y1_door) / 2], "end": [xm, y1_door - gap], "layer": "SWING", "style": "dashed"})
# Swings (Right Door)
geom["lines"].append({"start": [x1 - frame_w, (y0 + y1_door) / 2], "end": [xm, y0 + frame_w], "layer": "SWING", "style": "dashed"})
geom["lines"].append({"start": [x1 - frame_w, (y0 + y1_door) / 2], "end": [xm, y1_door - gap], "layer": "SWING", "style": "dashed"})
# Handles
if is_upper:
geom["lines"].append({"start": [xm - 1.5 * scale_x, y0 + frame_w + 2.0 * scale_y], "end": [xm - 1.5 * scale_x, y0 + frame_w + 7.0 * scale_y], "layer": "HANDLES", "style": "solid"})
geom["lines"].append({"start": [xm + 1.5 * scale_x, y0 + frame_w + 2.0 * scale_y], "end": [xm + 1.5 * scale_x, y0 + frame_w + 7.0 * scale_y], "layer": "HANDLES", "style": "solid"})
else:
geom["lines"].append({"start": [xm - 1.5 * scale_x, y1_door - 7.0 * scale_y], "end": [xm - 1.5 * scale_x, y1_door - 2.0 * scale_y], "layer": "HANDLES", "style": "solid"})
geom["lines"].append({"start": [xm + 1.5 * scale_x, y1_door - 7.0 * scale_y], "end": [xm + 1.5 * scale_x, y1_door - 2.0 * scale_y], "layer": "HANDLES", "style": "solid"})
else:
# Single door
geom["blocks"].append({
"type": "rect",
"coords": [x0 + frame_w + gap, y0 + frame_w + gap, (x1 - x0) - 2*frame_w - 2*gap, (y1_door - y0) - frame_w - 2*gap],
"layer": "DOOR_PANEL", "style": "solid"
})
geom["lines"].append({"start": [x0 + frame_w, (y0 + y1_door) / 2], "end": [x1 - frame_w, y0 + frame_w], "layer": "SWING", "style": "dashed"})
geom["lines"].append({"start": [x0 + frame_w, (y0 + y1_door) / 2], "end": [x1 - frame_w, y1_door - gap], "layer": "SWING", "style": "dashed"})
if is_upper:
geom["lines"].append({"start": [x1 - frame_w - 1.5 * scale_x, y0 + frame_w + 2.0 * scale_y], "end": [x1 - frame_w - 1.5 * scale_x, y0 + frame_w + 7.0 * scale_y], "layer": "HANDLES", "style": "solid"})
else:
geom["lines"].append({"start": [x1 - frame_w - 1.5 * scale_x, y1_door - 7.0 * scale_y], "end": [x1 - frame_w - 1.5 * scale_x, y1_door - 2.0 * scale_y], "layer": "HANDLES", "style": "solid"})
# Shelves (visible as dashed lines representing internal shelves)
if is_pantry or is_upper:
num_shelves = 4 if is_pantry else 2
for i in range(1, num_shelves + 1):
sy = y0 + (y1 - y0) * (i / (num_shelves + 1))
geom["lines"].append({"start": [x0 + frame_w, sy], "end": [x1 - frame_w, sy], "layer": "CABINETS_UPPER", "style": "dashed"})
return geom
@@ -0,0 +1,86 @@
from typing import Dict, List
class DimensionEngine:
"""Generates standard CAD-compatible dimension objects."""
@staticmethod
def generate_horizontal_chain(components: List[Dict], start_x: float, y_pos: float, scale: float = 1.0) -> List[Dict]:
"""Generates continuous chain dimensions for a row of components with collision avoidance."""
dims = []
current_x = start_x
toggle_offset = False
for comp in components:
width = float(comp.get('width', 0))
if width > 0:
scaled_width = width * scale
# Collision Avoidance: Stagger narrow dimensions vertically
if scaled_width < 18.0:
current_y_pos = y_pos + (12.0 * scale if toggle_offset else 0.0)
toggle_offset = not toggle_offset
else:
current_y_pos = y_pos
toggle_offset = False
dims.append({
"start": [current_x, current_y_pos],
"end": [current_x + scaled_width, current_y_pos],
"text": f'{width}"'
})
current_x += scaled_width
return dims
@staticmethod
def generate_overall_dimensions(start_pos: List[float], end_pos: List[float], total_width: float) -> Dict:
"""Generates the overall total dimension line."""
return {
"start": start_pos,
"end": end_pos,
"text": f"{total_width}\""
}
@staticmethod
def generate_vertical_dimensions(start_pos: List[float], end_pos: List[float], total_height: float) -> Dict:
"""Generates overall vertical dimension."""
return {
"start": start_pos,
"end": end_pos,
"text": f"{total_height}\""
}
@staticmethod
def generate_opening_dimensions(start_pos: List[float], end_pos: List[float], width: float, label: str = "OPENING") -> Dict:
"""Generates dimension for appliance/fixture openings."""
return {
"start": start_pos,
"end": end_pos,
"text": f"{width}\" {label}"
}
@staticmethod
def generate_countertop_dimensions(start_pos: List[float], end_pos: List[float], width: float) -> Dict:
"""Generates countertop specific dimensions including overhangs."""
return {
"start": start_pos,
"end": end_pos,
"text": f"{width}\" C.TOP"
}
@staticmethod
def generate_appliance_dimensions(start_pos: List[float], end_pos: List[float], width: float, label: str) -> Dict:
"""Generates specific appliance dimension callouts."""
return {
"start": start_pos,
"end": end_pos,
"text": f"{width}\" {label}"
}
@staticmethod
def generate_clearance_dimensions(start_pos: List[float], end_pos: List[float], width: float, required_clearance: float) -> Dict:
"""Generates clearance dimensions for ADA validation."""
return {
"start": start_pos,
"end": end_pos,
"text": f"{width}\" CLR (MIN {required_clearance}\")"
}
@@ -0,0 +1,71 @@
from typing import Tuple, Dict
class DimensionFormatter:
"""Converts and formats dimensions for dual representation."""
@staticmethod
def inches_to_mm(inches: float) -> float:
"""Convert inches to millimeters."""
return round(inches * 25.4, 2)
@staticmethod
def format_imperial(inches: float) -> str:
"""Convert decimal inches to feet and inches.
Example:
98.62" → "8'-2 5/8\""
"""
feet = int(inches // 12)
remaining = inches - (feet * 12)
# Convert to fraction
frac_16ths = round(remaining * 16)
frac_inches = frac_16ths // 16
frac_num = frac_16ths % 16
if feet == 0:
if frac_num == 0:
return f"{int(frac_inches)}\""
else:
gcd_val = DimensionFormatter._gcd(frac_num, 16)
frac_num //= gcd_val
frac_den = 16 // gcd_val
return f"{int(frac_inches)} {frac_num}/{frac_den}\""
if frac_num == 0:
return f"{feet}'-{int(frac_inches)}\""
else:
# Simplify fraction
gcd_val = DimensionFormatter._gcd(frac_num, 16)
frac_num //= gcd_val
frac_den = 16 // gcd_val
return f"{feet}'-{int(frac_inches)} {frac_num}/{frac_den}\""
@staticmethod
def format_dual(inches: float) -> Dict[str, str]:
"""Return both metric and imperial formats.
Returns:
{
'metric': '228.60',
'metric_unit': 'mm',
'imperial': "7'-6\"",
'imperial_short': '228.6\"'
}
"""
mm = DimensionFormatter.inches_to_mm(inches)
imperial = DimensionFormatter.format_imperial(inches)
return {
'metric': f"{mm:.2f}",
'metric_unit': 'mm',
'imperial': imperial,
'imperial_short': f'{inches:.2f}"'
}
@staticmethod
def _gcd(a: int, b: int) -> int:
"""Calculate greatest common divisor."""
while b:
a, b = b, a % b
return a
@@ -0,0 +1,146 @@
from typing import Dict, List, Any
from core.engines.appliance_library import ApplianceLibrary
from core.engines.dimension_engine import DimensionEngine
from core.engines.cabinet_renderer import CabinetRendererFactory
from core.engines.cabinet_library_resolver import CabinetLibraryResolver
class ElevationGenerator:
"""Generates the Kitchen/Vanity Elevation geometry."""
@staticmethod
def generate(walls: List[Dict], start_ox: float, start_oy: float, ceiling_height: float = 108.0, scale_x: float = 4.0, scale_y: float = 3.0) -> Dict[str, List]:
geom = {"lines": [], "blocks": [], "texts": [], "dimensions": []}
elev_ox = start_ox
elev_oy = start_oy
for w_idx, wall in enumerate(walls):
wall_length = wall.get("length", 90.0)
cabinets = wall.get("cabinets", [])
if w_idx > 0:
prev_length = walls[w_idx - 1].get("length", 90.0)
offset_x = (prev_length * scale_x) + 100.0
elev_ox += offset_x
# Label the elevation view
geom["texts"].append({
"pos": [elev_ox + wall_length/2.0 - 15.0, elev_oy - 20.0],
"text": f"{wall.get('name', 'WALL')} ELEVATION VIEW",
"layer": "TEXT"
})
wall_has_ada = any(cab.get("is_ada", False) for cab in cabinets)
max_base_h = 32.5 if wall_has_ada else 34.5
cab_x_curr = 0.0
dim_items = []
for cab in cabinets:
cab_id = cab.get("cabinet_id", cab.get("id", "Cab"))
# Normalize cabinet using Phase 1 Resolver
resolved = CabinetLibraryResolver.resolve_cabinet(cab_id)
# Prefer dimensions from the schedule
cab_w = cab.get("width", cab.get("width_in", 0.0))
if cab_w <= 0: cab_w = resolved["width"]
cab_h = cab.get("height", cab.get("height_in", 0.0))
if cab_h <= 0: cab_h = resolved["height"]
family = resolved["family"]
cab_type = cab.get("cabinet_type", cab.get("type", "")).lower()
# Override family based on explicit cabinet_type
if 'upper' in cab_type or 'wall' in cab_type:
family = 'UPPER'
elif 'pantry' in cab_type or 'tall' in cab_type:
family = 'TALL'
dim_items.append({"width": cab_w})
is_upper = family == 'UPPER'
is_pantry = family == 'TALL'
is_sink = resolved["render_style"] == 'sink_base' or 'sink' in cab_type
is_drawer = resolved["render_style"] == 'drawer_base' or 'drawer' in cab_type
render_style = resolved["render_style"]
# Appliances are still a bit hardcoded or can be resolved
is_range = "range" in cab_type or "range" in cab_id.lower() or "cooktop" in cab_id.lower()
is_ref = "ref" in cab_type or "refrigerator" in cab_id.lower() or "appliance" in cab_type
is_dw = "dw" in cab_type or "dishwasher" in cab_id.lower()
is_ada = cab.get("is_ada", False)
x0 = elev_ox + cab_x_curr * scale_x
x1 = x0 + cab_w * scale_x
# Height positioning
if is_pantry:
y0 = elev_oy + 4.0 * scale_y
y1 = elev_oy + cab_h * scale_y
elif is_upper:
aff = 48.0 if is_ada else 54.0
y0 = elev_oy + aff * scale_y
y1 = y0 + cab_h * scale_y
else:
actual_h = cab_h if cab_h > 0 else max_base_h
y0 = elev_oy + 4.0 * scale_y
y1 = elev_oy + actual_h * scale_y
# Appliances vs Cabinets
if is_ref:
app_geom = ApplianceLibrary.draw_refrigerator_elevation(x0, elev_oy, cab_w, scale_x, scale_y)
geom["blocks"].extend(app_geom["blocks"])
geom["lines"].extend(app_geom["lines"])
geom["texts"].extend(app_geom["texts"])
elif is_dw:
app_geom = ApplianceLibrary.draw_dishwasher_elevation(x0, y0, cab_w, y1 - y0, scale_x, scale_y)
geom["blocks"].extend(app_geom["blocks"])
geom["lines"].extend(app_geom["lines"])
geom["texts"].extend(app_geom["texts"])
elif is_range:
app_geom = ApplianceLibrary.draw_range_elevation(x0, elev_oy, cab_w, scale_x, scale_y)
geom["blocks"].extend(app_geom["blocks"])
geom["lines"].extend(app_geom["lines"])
geom["texts"].extend(app_geom["texts"])
else:
cab_geom = CabinetRendererFactory.render_elevation(
cab, x0, y0, x1, y1, is_upper, is_pantry, is_drawer, render_style, scale_x, scale_y
)
geom["blocks"].extend(cab_geom["blocks"])
geom["lines"].extend(cab_geom["lines"])
geom["texts"].extend(cab_geom["texts"])
if is_sink:
sink_geom = ApplianceLibrary.draw_sink_elevation(x0, y1, cab_w, scale_x, scale_y)
geom["lines"].extend(sink_geom["lines"])
# Toe kicks for standard base cabinets (recessed by 3" on sides usually, but in elevation we just draw a box)
if not is_upper and not is_pantry and not is_ref and not is_range and render_style != 'panel':
geom["blocks"].append({
"type": "rect",
"coords": [x0, elev_oy, x1 - x0, y0 - elev_oy],
"layer": "CABINETS_BASE",
"style": "solid"
})
cab_x_curr += cab_w
# Horizontal Dimensions
geom["dimensions"].extend(DimensionEngine.generate_horizontal_chain(dim_items, elev_ox, elev_oy - 10.0, scale_x))
geom["dimensions"].append(DimensionEngine.generate_overall_dimensions(
[elev_ox, elev_oy + (ceiling_height + 10.0) * scale_y],
[elev_ox + wall_length * scale_x, elev_oy + (ceiling_height + 10.0) * scale_y],
wall_length
))
# Thick Wall Border
w_len_scale = wall_length * scale_x
c_height_scale = ceiling_height * scale_y
geom["lines"].append({"start": [elev_ox, elev_oy], "end": [elev_ox + w_len_scale, elev_oy], "layer": "WALLS", "style": "continuous"})
geom["lines"].append({"start": [elev_ox + w_len_scale, elev_oy], "end": [elev_ox + w_len_scale, elev_oy + c_height_scale], "layer": "WALLS", "style": "continuous"})
geom["lines"].append({"start": [elev_ox + w_len_scale, elev_oy + c_height_scale], "end": [elev_ox, elev_oy + c_height_scale], "layer": "WALLS", "style": "continuous"})
geom["lines"].append({"start": [elev_ox, elev_oy + c_height_scale], "end": [elev_ox, elev_oy], "layer": "WALLS", "style": "continuous"})
return geom
@@ -0,0 +1,107 @@
from typing import Dict, List, Any
from core.engines.appliance_library import ApplianceLibrary
from core.engines.dimension_engine import DimensionEngine
class FloorPlanGenerator:
"""Generates the Kitchen/Vanity Floor Plan geometry."""
@staticmethod
def generate(walls: List[Dict], start_ox: float, start_oy: float, scale_factor: float = 4.0) -> Dict[str, List]:
geom = {"lines": [], "blocks": [], "texts": [], "dimensions": []}
plan_ox = start_ox
plan_oy = start_oy
for w_idx, wall in enumerate(walls):
wall_length = wall.get("length", 90.0)
cabinets = wall.get("cabinets", [])
if w_idx > 0:
prev_length = walls[w_idx - 1].get("length", 90.0)
offset_x = (prev_length * scale_factor) + 100.0
plan_ox += offset_x
# Draw wall with thickness
wall_depth = 6.0 * scale_factor
wall_len = wall_length * scale_factor
geom["blocks"].append({
"type": "rect",
"coords": [plan_ox, plan_oy, wall_len, wall_depth],
"id": "", "layer": "WALLS", "style": "solid"
})
# Label the wall plan view
geom["texts"].append({
"pos": [plan_ox + wall_len/2.0 - 15.0, plan_oy - 20.0],
"text": f"{wall.get('name', 'WALL')} PLAN VIEW",
"layer": "TEXT"
})
# TODO: Wall Hatch can be represented by diagonal lines
# For now, just thick outline is drawn above
cab_x_curr = 0.0
dim_items = []
for cab in cabinets:
cab_id = cab.get("cabinet_id", "Cab")
cab_type = cab.get("cabinet_type", cab.get("type", "")).lower()
cab_w = cab.get("width", 0.0)
cab_d = cab.get("depth", 24.0)
if cab_d <= 0:
cab_d = 24.0
is_upper = cab_id.upper().startswith("W") or "upper" in cab_type
is_sink = "sink" in cab_type or cab_id.upper().startswith("SB")
is_range = "range" in cab_type or "range" in cab_id.lower() or "cooktop" in cab_id.lower()
is_ref = "ref" in cab_type or "refrigerator" in cab_id.lower()
is_dw = "dw" in cab_type or "dishwasher" in cab_id.lower()
dim_items.append({"width": cab_w})
x0 = plan_ox + cab_x_curr * scale_factor
y0 = plan_oy + wall_depth
if is_upper:
# Draw dashed hidden overhead footprint
geom["blocks"].append({
"type": "rect",
"coords": [x0, y0, cab_w * scale_factor, cab_d * scale_factor],
"id": cab_id, "layer": "CABINETS_UPPER", "style": "dashed"
})
else:
# Base footprint
geom["blocks"].append({
"type": "rect",
"coords": [x0, y0, cab_w * scale_factor, cab_d * scale_factor],
"id": cab_id, "layer": "CABINETS_BASE", "style": "solid"
})
if is_sink:
sink_geom = ApplianceLibrary.draw_sink_plan(x0, y0, cab_w, cab_d, scale_factor, scale_factor)
geom["blocks"].extend(sink_geom["blocks"])
geom["lines"].extend(sink_geom["lines"])
elif is_range:
rng_geom = ApplianceLibrary.draw_range_plan(x0, y0, cab_w, cab_d, scale_factor, scale_factor)
geom["blocks"].extend(rng_geom["blocks"])
geom["lines"].extend(rng_geom["lines"])
elif is_ref:
geom["texts"].append({"pos": [x0 + (cab_w*scale_factor)/2, y0 + (cab_d*scale_factor)/2], "text": "REF", "size": 4.0, "layer": "TEXT"})
elif is_dw:
geom["texts"].append({"pos": [x0 + (cab_w*scale_factor)/2, y0 + (cab_d*scale_factor)/2], "text": "D/W", "size": 4.0, "layer": "TEXT"})
cab_x_curr += cab_w
# Add Horizontal Chain Dimension
chain_dims = DimensionEngine.generate_horizontal_chain(dim_items, plan_ox, plan_oy + wall_depth + 30.0 * scale_factor, scale_factor)
geom["dimensions"].extend(chain_dims)
# Add Overall Dimension
geom["dimensions"].append(DimensionEngine.generate_overall_dimensions(
[plan_ox, plan_oy + wall_depth + 38.0 * scale_factor],
[plan_ox + wall_length * scale_factor, plan_oy + wall_depth + 38.0 * scale_factor],
wall_length
))
return geom
@@ -0,0 +1,62 @@
from typing import Dict, List, Any
from collections import defaultdict
class MaterialTakeoffEngine:
"""Generates a Bill of Materials (BOM) for fabrication."""
@staticmethod
def generate_takeoff(cabinets: List[Dict[str, Any]]) -> Dict[str, Any]:
"""Calculates material requirements based on the cabinet schedule."""
takeoff = {
"total_cabinets": len(cabinets),
"sheet_goods_34": 0.0, # 3/4" material (e.g. plywood) in sq ft
"sheet_goods_14": 0.0, # 1/4" material (e.g. backings) in sq ft
"linear_edgebanding": 0.0, # edgebanding in linear feet
"hardware": defaultdict(int)
}
for cab in cabinets:
w_in = cab.get('width', 0)
h_in = cab.get('height', 0)
d_in = cab.get('depth', 0)
# Simple heuristic calculations for a standard box
# 2 sides, 1 top, 1 bottom, 1 back
side_area = (h_in * d_in) / 144.0
top_bottom_area = (w_in * d_in) / 144.0
back_area = (w_in * h_in) / 144.0
takeoff["sheet_goods_34"] += (side_area * 2) + (top_bottom_area * 2)
takeoff["sheet_goods_14"] += back_area
# Hardware
doors = cab.get('doors', 0)
drawers = cab.get('drawers', 0)
if doors > 0:
takeoff["hardware"]["hinges"] += (doors * 2)
takeoff["hardware"]["pulls"] += doors
if drawers > 0:
takeoff["hardware"]["drawer_slides"] += drawers
takeoff["hardware"]["pulls"] += drawers
# Convert defaultdict back to dict for clean JSON serialization
takeoff["hardware"] = dict(takeoff["hardware"])
return takeoff
@staticmethod
def print_takeoff(takeoff: Dict[str, Any]) -> str:
"""Formats the BOM for printing."""
lines = []
lines.append("=== MATERIAL TAKEOFF (BOM) ===")
lines.append(f"Total Cabinets: {takeoff['total_cabinets']}")
lines.append(f"3/4\" Sheet Goods (sq ft): {takeoff['sheet_goods_34']:.2f}")
lines.append(f"1/4\" Sheet Goods (sq ft): {takeoff['sheet_goods_14']:.2f}")
lines.append("\nHardware Requirements:")
for hw, qty in takeoff['hardware'].items():
lines.append(f" - {hw.replace('_', ' ').title()}: {qty}")
return "\n".join(lines)
@@ -0,0 +1,137 @@
from typing import Dict, List
from dataclasses import dataclass
@dataclass
class CabinetPart:
"""Single part in a cabinet assembly."""
part_id: str # "A", "B", "C", etc.
description: str # "SIDE PANEL 2 TIMES PER KITCHEN"
width_mm: float
height_mm: float
width_in: float
height_in: float
quantity: int
material: str
finish: str
notes: str = ""
edge_banding: str = ""
hinge_spec: str = ""
class PartsListGenerator:
"""Generate parts lists for shop drawings."""
# Standard parts for 90CM base kitchen
KITCHEN_BASE_90CM_PARTS = [
CabinetPart(
part_id='A',
description='BASE 90 CM',
width_mm=900, height_mm=720, width_in=35.4, height_in=28.4,
quantity=1,
material='PLYWOOD',
finish='STRUCTURE WHITE PER KITCHEN',
edge_banding='1mm PVC WHITE'
),
CabinetPart(
part_id='B',
description='SIDE PANEL',
width_mm=600, height_mm=720, width_in=23.6, height_in=28.4,
quantity=2,
material='PLYWOOD',
finish='FIXED PANEL FINISH',
edge_banding='1mm PVC COLOR MATCH'
),
CabinetPart(
part_id='C',
description='BACK PANEL',
width_mm=900, height_mm=600, width_in=35.4, height_in=23.6,
quantity=1,
material='PLYWOOD',
finish='STRUCTURE WHITE PER KITCHEN'
),
# ... more standard parts
]
KITCHEN_ADA_SINK_PARTS = [
CabinetPart(
part_id='A',
description='KITCHEN ADA SINK',
width_mm=840, height_mm=720, width_in=33.1, height_in=28.4,
quantity=1,
material='PLYWOOD',
finish='FIXED PANEL FINISH'
),
CabinetPart(
part_id='B',
description='SIDE PANEL',
width_mm=600, height_mm=720, width_in=23.6, height_in=28.4,
quantity=2,
material='PLYWOOD',
finish='FIXED PANEL FINISH'
),
# ... more parts
]
@classmethod
def generate_parts_list(cls, cabinet_type: str, kitchen_type: str) -> Dict:
"""Generate parts list for a specific cabinet type."""
if cabinet_type == 'base_90cm':
parts = cls.KITCHEN_BASE_90CM_PARTS
elif cabinet_type == 'ada_sink':
parts = cls.KITCHEN_ADA_SINK_PARTS
else:
parts = []
parts_list = {
'cabinet_type': cabinet_type,
'kitchen_type': kitchen_type,
'parts': parts,
'total_parts': sum(p.quantity for p in parts),
'scale': '1/2" = 1\'-0"'
}
return parts_list
@classmethod
def generate_all_parts_sheets(cls, project_config) -> List[Dict]:
"""Generate complete parts list sheets for project."""
sheets = []
kitchen_sheet = cls._generate_kitchen_sheet(project_config)
sheets.append(kitchen_sheet)
vanity_sheet = cls._generate_vanity_sheet(project_config)
sheets.append(vanity_sheet)
return sheets
@staticmethod
def _generate_kitchen_sheet(project_config) -> Dict:
"""Create kitchen parts sheet."""
return {
'title': 'PARTS BY KITCHEN',
'scale': '1/2" = 1\'-0"',
'page_layout': [
{
'section': 'BASE 90 CM',
'parts': PartsListGenerator.KITCHEN_BASE_90CM_PARTS,
'position': [50, 500]
},
{
'section': 'ADA SINK',
'parts': PartsListGenerator.KITCHEN_ADA_SINK_PARTS,
'position': [50, 200]
}
]
}
@staticmethod
def _generate_vanity_sheet(project_config) -> Dict:
"""Create vanity parts sheet."""
return {
'title': 'PARTS BY VANITIES',
'scale': '1/2" = 1\'-0"',
'page_layout': [
{
'section': 'VANITIES ADA SINK',
'parts': [],
'position': [50, 300]
}
]
}
@@ -0,0 +1,53 @@
from typing import Dict, List, Any
import math
class RevisionEngine:
"""Handles revision tracking and dynamic revision cloud generation."""
@staticmethod
def draw_revision_cloud(x: float, y: float, w: float, h: float, arc_radius: float = 2.0, scale: float = 1.0) -> Dict[str, List]:
"""Draws a scalloped revision cloud around a bounding box."""
geom = {"lines": [], "blocks": [], "texts": []}
r = arc_radius * scale
x_min, x_max = x, x + (w * scale)
y_min, y_max = y, y + (h * scale)
# In a true CAD system, we'd draw arcs.
# For our abstract geometry model, we represent it as a specialized block or segmented arcs.
# Here we emit a custom block type 'rev_cloud' which the sheet composer can render appropriately.
geom["blocks"].append({
"type": "rev_cloud",
"coords": [x_min, y_min, w * scale, h * scale],
"arc_radius": r,
"layer": "REVISIONS",
"style": "cloud"
})
# Add a revision delta triangle
geom["blocks"].append({
"type": "polygon",
"points": [
[x_max, y_max],
[x_max + (3*scale), y_max + (5*scale)],
[x_max - (3*scale), y_max + (5*scale)]
],
"layer": "REVISIONS",
"style": "solid"
})
return geom
@staticmethod
def generate_revision_log(revisions: List[Dict[str, str]]) -> Dict[str, Any]:
"""Compiles a revision history for the title block."""
issues = []
for rev in revisions:
issues.append({
"rev_id": rev.get("id", ""),
"date": rev.get("date", ""),
"description": rev.get("description", ""),
"author": rev.get("author", "AUTO")
})
return {"revisions": issues}
@@ -0,0 +1,298 @@
from typing import Dict, List, Any
class SectionGenerator:
"""Generate detailed CAD sections with fabrication specs."""
SECTION_TYPES = {
'kitchen_ada': {
'title': 'KITCHEN ADA',
'height': 228.0, # 7'-6" typical
'callouts': [
'PLYWOOD BACKING 6" H',
'ACCESSIBLE CABINET',
'ADA SINK - MAX 34" HEIGHT TO COUNTERTOP',
]
},
'kitchen_drawer': {
'title': 'KITCHEN DRAWER',
'notes': 'Show internal drawer construction'
},
'kitchen_refrigerator': {
'title': 'REFRIGERATOR SECTION',
'callouts': [
'REFRIGERATOR GTE18GSNRSS',
'PLYWOOD BACKING 6" H',
'CLEARANCE FOR DOOR SWING'
]
},
'kitchen_microwave': {
'title': 'MICROWAVE SECTION',
'callouts': [
'24" MICROWAVE JVM3160RFSS',
'MOUNTING BRACKETS',
'CLEARANCE BELOW: MIN 15"'
]
},
'kitchen_hood': {
'title': 'KITCHEN HOOD',
'callouts': [
'RANGE HOOD (ADA: JVX3300SJSS)',
'MIN 24" ABOVE RANGE',
'DUCTWORK BY OTHERS'
]
},
'kitchen_pantry': {
'title': 'PANTRY SECTION',
'height': 228.0, # Full 7'-6" height
'callouts': [
'FULL HEIGHT PANTRY',
'SHELVING EVERY 12"',
'PLYWOOD BACKING FULL HEIGHT'
]
},
'vanity_ada': {
'title': 'VANITY ADA',
'callouts': [
'FULL ACCESSIBLE LAVATORY W/COVERED PANEL',
'KNEE CLEARANCE: MIN 27" W x 19" D @ 32" H',
'ACCESSIBILITY REQUIREMENTS MET',
'MOUNTED PER ADA GUIDELINES'
]
},
'vanity_pantry': {
'title': 'VANITY PANTRY',
'height': 228.0,
'callouts': [
'FULL HEIGHT LINEN STORAGE',
'ADJUSTABLE SHELVES',
'PLYWOOD BACKING 6" H'
]
}
}
@classmethod
def generate_section(cls, section_type: str, **kwargs) -> Dict[str, Any]:
"""Generate detailed section drawing.
Args:
section_type: One of SECTION_TYPES keys
**kwargs: Additional parameters (width, height, etc.)
Returns:
Dictionary with section geometry and callouts
"""
if section_type not in cls.SECTION_TYPES:
raise ValueError(f"Unknown section type: {section_type}")
spec = cls.SECTION_TYPES[section_type]
section = {
'type': section_type,
'title': spec['title'],
'geometry': {
'lines': [],
'blocks': [],
'circles': [],
'texts': [],
'dimensions': []
},
'callouts': spec.get('callouts', []),
'notes': spec.get('notes', '')
}
# Generate base outline
cls._draw_base_outline(section, kwargs.get('width', 84.0),
kwargs.get('height', spec.get('height', 84.0)))
# Add specific details based on type
if section_type == 'kitchen_ada':
cls._add_kitchen_ada_details(section, **kwargs)
elif section_type == 'kitchen_drawer':
cls._add_drawer_details(section, **kwargs)
elif section_type == 'vanity_ada':
cls._add_vanity_ada_details(section, **kwargs)
# ... more section types
# Add dimensions
cls._add_dimensions(section, **kwargs)
return section
@staticmethod
def _draw_base_outline(section: Dict, width: float, height: float, **kwargs):
"""Draw full cabinet profile."""
geom = section['geometry']
# Determine ADA flag for height
is_ada = kwargs.get('ada', False)
# FLOOR LINE
geom['lines'].append({'start': [0, 0], 'end': [width, 0], 'layer': 'FLOOR'})
# TOE KICK (3" inset, 4" high)
toe_kick_y = 4.0
toe_kick_inset = 3.0
geom['blocks'].append({
'type': 'rect',
'coords': [toe_kick_inset, 0, width - toe_kick_inset, toe_kick_y],
'hatch': 'DIAGONAL',
'layer': 'STRUCTURE'
})
# BASE CABINET (24" depth, 28.4" height standard, 34" ADA max minus toe kick)
# 34" total ADA counter height - 1.6" counter = 32.4" top of cabinet.
# Height of base cab above floor: 28.4" standard, 32.4" ADA.
base_top = 32.4 if is_ada else 28.4
geom['blocks'].append({
'type': 'rect',
'coords': [0, toe_kick_y, width, base_top],
'fill': False,
'layer': 'CABINET'
})
# PLYWOOD BACKING (6" height)
plywood_height = 6.0
geom['blocks'].append({
'type': 'rect',
'coords': [0, toe_kick_y, width, toe_kick_y + plywood_height],
'hatch': 'BRICKS',
'layer': 'BACKING'
})
# COUNTERTOP (1.6" thick, 1" overhang on front)
counter_y = base_top
counter_thickness = 1.6
counter_overhang = 1.0
geom['blocks'].append({
'type': 'rect',
'coords': [-counter_overhang, counter_y, width + counter_overhang, counter_y + counter_thickness],
'fill': False,
'layer': 'COUNTERTOP'
})
# UPPER CABINET (12" depth typical, 30" height, 16" clearance from counter)
upper_y = counter_y + counter_thickness + 16.0
upper_height = 30.0
upper_depth = 12.0
# Determine depth of the wall bounds (which is 'width' passed to function, e.g. 24")
# Upper cabinet is typically flush with back wall
geom['blocks'].append({
'type': 'rect',
'coords': [width - upper_depth, upper_y, width, upper_y + upper_height],
'fill': False,
'layer': 'CABINET'
})
@staticmethod
def _add_kitchen_ada_details(section: Dict, **kwargs):
"""Add ADA-specific kitchen section details."""
geom = section['geometry']
# Accessible cabinet marker
geom['texts'].append({
'pos': [kwargs.get('width', 24.0) / 2, 15.0],
'text': 'ACCESSIBLE CABINET',
'size': 4.0,
'layer': 'CALLOUTS',
'bold': True
})
# Sink clearance zone (typical 27" W x 19" D)
# Note: In section view, we are looking at the side profile.
# Knee clearance is 19" depth from front of cabinet.
# Height is typically 27" min.
width = kwargs.get('width', 24.0)
knee_height = 27.0
knee_depth = 19.0
geom['blocks'].append({
'type': 'rect',
'coords': [-1.0, 0, knee_depth - 1.0, knee_height],
'id': 'SINK_CLEAR',
'layer': 'ACCESSIBILITY',
'fill': False,
'linestyle': 'dashed'
})
@staticmethod
def _add_drawer_details(section: Dict, **kwargs):
pass
@staticmethod
def _add_vanity_ada_details(section: Dict, **kwargs):
"""Add ADA vanity section details."""
geom = section['geometry']
# Covered panel specification
geom['blocks'].append({
'type': 'rect',
'coords': [0, 0, kwargs.get('width', 61.0), 32.0],
'id': 'COVERED_PANEL',
'layer': 'CONSTRUCTION',
'fill': False
})
# Knee clearance callout
geom['texts'].append({
'pos': [kwargs.get('width', 61.0) / 2, 16.0],
'text': 'FULL ACCESSIBLE LAVATORY\nW/COVERED PANEL',
'size': 3.5,
'layer': 'CALLOUTS',
'align': 'center'
})
@staticmethod
def _add_dimensions(section: Dict, **kwargs):
"""Add 15-20 dimension lines capturing all critical measurements."""
geom = section['geometry']
is_ada = kwargs.get('ada', False)
width = kwargs.get('width', 24.0)
base_top = 32.4 if is_ada else 28.4
toe_kick_y = 4.0
counter_y = base_top
upper_y = counter_y + 1.6 + 16.0
dims = []
# LEFT SIDE VERTICAL DIMENSIONS
dims.extend([
# Floor to toe kick top
{'start': [-30, 0], 'end': [-30, toe_kick_y], 'text': str(toe_kick_y), 'label': 'TOE KICK', 'position': 'left'},
# Toe kick to counter top
{'start': [-30, toe_kick_y], 'end': [-30, counter_y], 'text': str(round(base_top - toe_kick_y, 1)), 'label': 'BASE CAB HEIGHT', 'position': 'left'},
# Counter thickness
{'start': [-30, counter_y], 'end': [-30, counter_y + 1.6], 'text': "1.6", 'label': 'COUNTERTOP', 'position': 'left'},
# Clearance from counter to upper
{'start': [-30, counter_y + 1.6], 'end': [-30, upper_y], 'text': "16.0", 'label': 'CLEARANCE', 'position': 'left'},
# Upper cabinet height
{'start': [-30, upper_y], 'end': [-30, upper_y + 30.0], 'text': "30.0", 'label': 'UPPER CAB HEIGHT', 'position': 'left'},
# Total height (example 84")
{'start': [-45, 0], 'end': [-45, 84.0], 'text': "84.0", 'label': 'TOTAL HEIGHT', 'position': 'left'},
])
# BOTTOM HORIZONTAL DIMENSIONS
dims.extend([
# Width
{'start': [0, -15], 'end': [width, -15], 'text': str(width), 'label': 'BASE DEPTH', 'position': 'below'},
# Toe kick inset (left front)
{'start': [0, -5], 'end': [3, -5], 'text': "3.0", 'label': 'INSET', 'position': 'below'}
])
# UPPER DEPTH
dims.extend([
# Upper cabinet depth
{'start': [width - 12, upper_y + 35], 'end': [width, upper_y + 35], 'text': "12.0", 'label': 'UPPER DEPTH', 'position': 'above'},
])
# APPLIANCE-SPECIFIC DIMENSIONS
if 'refrigerator' in section.get('type', '').lower():
dims.append({'start': [0, counter_y + 1.6], 'end': [28, counter_y + 1.6], 'text': "28.0", 'label': 'FRIDGE WIDTH', 'position': 'above'})
if 'sink' in section.get('type', '').lower() or 'vanity' in section.get('type', '').lower() or is_ada:
if is_ada:
# Knee clearance dimensions (side profile)
dims.extend([
{'start': [-1, toe_kick_y + 15], 'end': [18, toe_kick_y + 15], 'text': "19.0", 'label': 'KNEE DEPTH', 'position': 'above'},
])
geom['dimensions'].extend(dims)
@@ -0,0 +1,65 @@
from typing import Dict, List, Any
class SheetComposer:
"""Orchestrates the layout of multiple viewports onto a single PDF/DXF sheet."""
@staticmethod
def compose_sheet(sheet_id: str, viewports: List[Dict[str, Any]], title_block: Dict[str, Any]) -> Dict[str, List]:
"""Combines multiple viewports and the title block into a final single geometry dict."""
sheet_geom = {"lines": [], "blocks": [], "texts": []}
# Add title block
if title_block:
sheet_geom["lines"].extend(title_block.get("lines", []))
sheet_geom["blocks"].extend(title_block.get("blocks", []))
sheet_geom["texts"].extend(title_block.get("texts", []))
# Add each viewport
for vp in viewports:
geom = vp.get("geometry", {})
sheet_geom["lines"].extend(geom.get("lines", []))
sheet_geom["blocks"].extend(geom.get("blocks", []))
sheet_geom["texts"].extend(geom.get("texts", []))
return sheet_geom
@staticmethod
def place_floor_plan(floor_plan_geom: Dict[str, List], x_offset: float, y_offset: float, scale: float = 1.0) -> Dict[str, Any]:
"""Places the floor plan onto a specific coordinate on the sheet."""
# Typically requires scaling engine here, but for now just pass through
return {"id": "FLOOR_PLAN", "geometry": floor_plan_geom, "x": x_offset, "y": y_offset, "scale": scale}
@staticmethod
def place_elevation_A(elevation_geom: Dict[str, List], x_offset: float, y_offset: float, scale: float = 1.0) -> Dict[str, Any]:
"""Places Elevation A onto the sheet."""
return {"id": "ELEV_A", "geometry": elevation_geom, "x": x_offset, "y": y_offset, "scale": scale}
@staticmethod
def place_section_A(section_geom: Dict[str, List], x_offset: float, y_offset: float, scale: float = 1.0) -> Dict[str, Any]:
"""Places Section A onto the sheet."""
return {"id": "SECT_A", "geometry": section_geom, "x": x_offset, "y": y_offset, "scale": scale}
@staticmethod
def place_section_view(section_geom: Dict[str, List], x_offset: float, y_offset: float, scale: float = 1.0) -> Dict[str, Any]:
"""Places a generalized Section View."""
return {"id": "SECT_VIEW", "geometry": section_geom, "x": x_offset, "y": y_offset, "scale": scale}
@staticmethod
def place_general_notes(notes_geom: Dict[str, List], x_offset: float, y_offset: float, scale: float = 1.0) -> Dict[str, Any]:
"""Places general architectural notes onto the sheet."""
return {"id": "GENERAL_NOTES", "geometry": notes_geom, "x": x_offset, "y": y_offset, "scale": scale}
@staticmethod
def place_matrix_table(matrix_geom: Dict[str, List], x_offset: float, y_offset: float, scale: float = 1.0) -> Dict[str, Any]:
"""Places the project unit matrix table."""
return {"id": "MATRIX_TABLE", "geometry": matrix_geom, "x": x_offset, "y": y_offset, "scale": scale}
@staticmethod
def place_revision_clouds(clouds_geom: Dict[str, List], x_offset: float, y_offset: float, scale: float = 1.0) -> Dict[str, Any]:
"""Places revision clouds marking recent changes."""
return {"id": "REVISION_CLOUDS", "geometry": clouds_geom, "x": x_offset, "y": y_offset, "scale": scale}
@staticmethod
def place_title_block(title_block_geom: Dict[str, List]) -> Dict[str, Any]:
"""Positions the title block geometry (usually absolute coordinates)."""
return {"id": "TITLE_BLOCK", "geometry": title_block_geom, "x": 0.0, "y": 0.0, "scale": 1.0}
@@ -0,0 +1,112 @@
from typing import Dict, List, Any
import datetime
class TitleBlockEngine:
"""Generates standardized architectural title blocks."""
@staticmethod
def draw_vertical_strip(sheet_w: float, sheet_h: float, strip_width: float = 3.0) -> Dict[str, List]:
"""Draws the right-side vertical title strip boundary."""
geom = {"lines": [], "blocks": [], "texts": []}
x_start = sheet_w - strip_width
geom["lines"].append({"start": [x_start, 0], "end": [x_start, sheet_h], "layer": "TITLEBLOCK", "style": "solid"})
# Outer border
geom["blocks"].append({"type": "rect", "coords": [0, 0, sheet_w, sheet_h], "layer": "TITLEBLOCK", "style": "solid"})
return geom
@staticmethod
def add_project_metadata(x: float, y: float, project_name: str, client_name: str) -> Dict[str, List]:
"""Adds project text to the title block."""
geom = {"lines": [], "blocks": [], "texts": []}
geom["texts"].append({"pos": [x, y], "text": project_name, "size": 6.0, "layer": "TITLEBLOCK"})
geom["texts"].append({"pos": [x, y - 1.5], "text": client_name, "size": 4.0, "layer": "TITLEBLOCK"})
return geom
@staticmethod
def add_sheet_info(x: float, y: float, sheet_number: str, sheet_title: str, scale: str) -> Dict[str, List]:
"""Adds specific sheet data."""
geom = {"lines": [], "blocks": [], "texts": []}
geom["texts"].append({"pos": [x, y], "text": f"SHEET: {sheet_number}", "size": 8.0, "layer": "TITLEBLOCK"})
geom["texts"].append({"pos": [x, y - 2.0], "text": sheet_title, "size": 5.0, "layer": "TITLEBLOCK"})
geom["texts"].append({"pos": [x, y - 4.0], "text": f"SCALE: {scale}", "size": 4.0, "layer": "TITLEBLOCK"})
geom["texts"].append({"pos": [x, y - 6.0], "text": f"DATE: {datetime.date.today().isoformat()}", "size": 4.0, "layer": "TITLEBLOCK"})
return geom
@staticmethod
def add_revision_log(x: float, y: float, revisions: List[Dict[str, str]]) -> Dict[str, List]:
"""Adds a revision table."""
geom = {"lines": [], "blocks": [], "texts": []}
geom["texts"].append({"pos": [x, y], "text": "REVISIONS", "size": 4.5, "layer": "TITLEBLOCK"})
current_y = y - 1.5
for rev in revisions:
text = f"{rev.get('date', '')} - {rev.get('desc', '')}"
geom["texts"].append({"pos": [x, current_y], "text": text, "size": 3.0, "layer": "TITLEBLOCK"})
current_y -= 1.5
return geom
@staticmethod
def draw_issue_history(x: float, y: float, issues: List[Dict[str, str]]) -> Dict[str, List]:
"""Draws the formal issue/submittal history block."""
geom = {"lines": [], "blocks": [], "texts": []}
geom["texts"].append({"pos": [x, y], "text": "ISSUE HISTORY", "size": 4.5, "layer": "TITLEBLOCK"})
current_y = y - 1.5
for issue in issues:
text = f"ISSUED FOR {issue.get('purpose', 'REVIEW')} - {issue.get('date', '')}"
geom["texts"].append({"pos": [x, current_y], "text": text, "size": 3.0, "layer": "TITLEBLOCK"})
current_y -= 1.5
return geom
@staticmethod
def draw_consultant_block(x: float, y: float, consultants: List[str]) -> Dict[str, List]:
"""Draws the consultant and engineering stamp block."""
geom = {"lines": [], "blocks": [], "texts": []}
geom["texts"].append({"pos": [x, y], "text": "CONSULTANTS", "size": 4.5, "layer": "TITLEBLOCK"})
current_y = y - 1.5
for cons in consultants:
geom["texts"].append({"pos": [x, current_y], "text": cons, "size": 3.0, "layer": "TITLEBLOCK"})
current_y -= 1.5
return geom
@staticmethod
def draw_sheet_index(x: float, y: float, sheets: List[Dict[str, str]]) -> Dict[str, List]:
"""Draws the architectural sheet index."""
geom = {"lines": [], "blocks": [], "texts": []}
geom["texts"].append({"pos": [x, y], "text": "SHEET INDEX", "size": 5.0, "layer": "TITLEBLOCK"})
current_y = y - 2.0
for sheet in sheets:
text = f"{sheet.get('num', '')} - {sheet.get('title', '')}"
geom["texts"].append({"pos": [x, current_y], "text": text, "size": 3.5, "layer": "TITLEBLOCK"})
current_y -= 2.0
return geom
@staticmethod
def build_standard_title_block(sheet_size: str, project_name: str, sheet_num: str, sheet_title: str, scale: str) -> Dict[str, List]:
"""Composes a complete standard title block."""
sheet_w, sheet_h = (17.0, 11.0) if sheet_size == '11x17' else (36.0, 24.0)
strip_w = 3.0
geom = {"lines": [], "blocks": [], "texts": []}
# Merge strip
strip = TitleBlockEngine.draw_vertical_strip(sheet_w, sheet_h, strip_w)
geom["lines"].extend(strip["lines"])
geom["blocks"].extend(strip["blocks"])
# Center of strip
cx = sheet_w - (strip_w / 2.0)
# Top: Project Info
proj = TitleBlockEngine.add_project_metadata(cx, sheet_h - 2.0, project_name, "Client XYZ")
geom["texts"].extend(proj["texts"])
# Middle: Revisions
revs = TitleBlockEngine.add_revision_log(cx, sheet_h - 6.0, [{"date": "2024-01-01", "desc": "Initial Issue"}])
geom["texts"].extend(revs["texts"])
# Bottom: Sheet Info
info = TitleBlockEngine.add_sheet_info(cx, 8.0, sheet_num, sheet_title, scale)
geom["texts"].extend(info["texts"])
return geom
@@ -0,0 +1,151 @@
import json
import os
from typing import Dict, List, Any
from collections import defaultdict
import hashlib
class UnitMatrixBuilder:
@staticmethod
def _generate_signature(unit: Dict[str, Any], type_key: str) -> str:
"""Generates a unique deterministic signature based on physical layout properties."""
components = unit.get(type_key, [])
if not components:
return "NONE"
try:
sorted_comps = sorted(components, key=lambda c: c.get('x', 0))
except KeyError:
sorted_comps = components
sequence = []
for c in sorted_comps:
nom = c.get('nomenclature', c.get('id', ''))
sequence.append(nom)
is_ada = unit.get('is_ada', False)
signature_dict = {
"sequence": sequence,
"ada": is_ada
}
sig_str = json.dumps(signature_dict, sort_keys=True)
return hashlib.md5(sig_str.encode()).hexdigest()
@staticmethod
def save_signatures(signatures_map: Dict[str, str], filepath: str = "data/layout_signatures.json"):
os.makedirs(os.path.dirname(filepath), exist_ok=True)
with open(filepath, 'w') as f:
json.dump(signatures_map, f, indent=4)
@staticmethod
def load_signatures(filepath: str = "data/layout_signatures.json") -> Dict[str, str]:
if os.path.exists(filepath):
with open(filepath, 'r') as f:
return json.load(f)
return {}
@staticmethod
def build_unit_matrix(unit_data: List[Dict[str, Any]]) -> Dict[str, Any]:
"""Groups units into K1, K2 and V1, V2 signatures."""
kitchen_signatures = UnitMatrixBuilder.load_signatures("data/kitchen_signatures.json")
vanity_signatures = UnitMatrixBuilder.load_signatures("data/vanity_signatures.json")
k_counter = len(kitchen_signatures) + 1
v_counter = len(vanity_signatures) + 1
results = []
for unit in unit_data:
unit_name = unit.get('name', 'Unknown')
unit_qty = unit.get('quantity', 1)
is_ada = unit.get('is_ada', False)
k_sig = UnitMatrixBuilder._generate_signature(unit, 'kitchen')
v_sig = UnitMatrixBuilder._generate_signature(unit, 'vanity')
k_type = "NONE"
if k_sig != "NONE":
# Reverse lookup
existing_type = None
for t, s in kitchen_signatures.items():
if s == k_sig:
existing_type = t
break
if not existing_type:
k_type = f"K{k_counter}"
kitchen_signatures[k_type] = k_sig
k_counter += 1
else:
k_type = existing_type
v_type = "NONE"
if v_sig != "NONE":
# Reverse lookup
existing_type = None
for t, s in vanity_signatures.items():
if s == v_sig:
existing_type = t
break
if not existing_type:
v_type = f"V{v_counter}"
vanity_signatures[v_type] = v_sig
v_counter += 1
else:
v_type = existing_type
results.append({
"unit_name": unit_name,
"unit_qty": unit_qty,
"kitchen_type": k_type,
"vanity_type": v_type,
"is_ada": is_ada
})
UnitMatrixBuilder.save_signatures(kitchen_signatures, "data/kitchen_signatures.json")
UnitMatrixBuilder.save_signatures(vanity_signatures, "data/vanity_signatures.json")
return results
@staticmethod
def group_by_building(unit_matrix: List[Dict[str, Any]], project_config: Dict[str, Any]) -> Dict[str, List[Dict[str, Any]]]:
"""Splits the matrix by building defined in project_config."""
buildings_config = project_config.get('buildings', {})
if not buildings_config:
return {"PROJECT TOTALS": unit_matrix}
grouped = defaultdict(list)
unmapped = []
for row in unit_matrix:
unit_name = row['unit_name']
assigned = False
for bldg, units in buildings_config.items():
if unit_name in units:
grouped[bldg].append(row)
assigned = True
break
if not assigned:
unmapped.append(row)
if unmapped:
grouped["UNMAPPED"] = unmapped
return dict(grouped)
@staticmethod
def calculate_kitchen_totals(unit_matrix: List[Dict[str, Any]]) -> Dict[str, int]:
totals = defaultdict(int)
for row in unit_matrix:
k_type = row.get('kitchen_type', 'NONE')
if k_type != 'NONE':
totals[k_type] += row.get('unit_qty', 0)
return dict(totals)
@staticmethod
def calculate_vanity_totals(unit_matrix: List[Dict[str, Any]]) -> Dict[str, int]:
totals = defaultdict(int)
for row in unit_matrix:
v_type = row.get('vanity_type', 'NONE')
if v_type != 'NONE':
totals[v_type] += row.get('unit_qty', 0)
return dict(totals)
@@ -0,0 +1,112 @@
from typing import Dict, List, Tuple
class ViewportScalingEngine:
SHEET_SIZES = {
'11x17': {'w': 17.0, 'h': 11.0},
'24x36': {'w': 36.0, 'h': 24.0}
}
SCALES = {
"1/2\"=1'-0\"": 24.0,
"3/8\"=1'-0\"": 32.0,
"1/4\"=1'-0\"": 48.0,
"1/8\"=1'-0\"": 96.0
}
@staticmethod
def get_bounds(geometry: Dict[str, List]) -> Tuple[float, float, float, float]:
min_x, min_y = float('inf'), float('inf')
max_x, max_y = float('-inf'), float('-inf')
has_geometry = False
for rect in geometry.get('blocks', []):
if rect['type'] == 'rect':
x, y, w, h = rect['coords']
min_x, max_x = min(min_x, x), max(max_x, x + w)
min_y, max_y = min(min_y, y), max(max_y, y + h)
has_geometry = True
elif rect['type'] == 'circle':
x, y, r = rect['coords']
min_x, max_x = min(min_x, x - r), max(max_x, x + r)
min_y, max_y = min(min_y, y - r), max(max_y, y + r)
has_geometry = True
for line in geometry.get('lines', []):
x1, y1 = line['start']
x2, y2 = line['end']
min_x, max_x = min(min_x, x1, x2), max(max_x, x1, x2)
min_y, max_y = min(min_y, y1, y2), max(max_y, y1, y2)
has_geometry = True
if not has_geometry:
return 0.0, 0.0, 0.0, 0.0
return min_x, min_y, max_x, max_y
@staticmethod
def compute_scale(bbox: Tuple[float, float, float, float], sheet_bounds: Tuple[float, float], margins: float = 1.0) -> float:
min_x, min_y, max_x, max_y = bbox
geom_w = max_x - min_x
geom_h = max_y - min_y
if geom_w <= 0 or geom_h <= 0:
return 1.0
sheet_w, sheet_h = sheet_bounds
avail_w = sheet_w - (margins * 2)
avail_h = sheet_h - (margins * 2)
scale_x = avail_w / geom_w
scale_y = avail_h / geom_h
return min(scale_x, scale_y) * 0.9 # 90% to leave breathing room
@staticmethod
def center_geometry(geometry: Dict[str, List], dx: float, dy: float, scale: float = 1.0) -> Dict[str, List]:
centered = {'lines': [], 'blocks': [], 'texts': []}
for b in geometry.get('blocks', []):
nb = b.copy()
if b['type'] == 'rect':
x, y, w, h = b['coords']
nb['coords'] = [(x * scale) + dx, (y * scale) + dy, w * scale, h * scale]
elif b['type'] == 'circle':
x, y, r = b['coords']
nb['coords'] = [(x * scale) + dx, (y * scale) + dy, r * scale]
centered['blocks'].append(nb)
for l in geometry.get('lines', []):
nl = l.copy()
x1, y1 = l['start']
x2, y2 = l['end']
nl['start'] = [(x1 * scale) + dx, (y1 * scale) + dy]
nl['end'] = [(x2 * scale) + dx, (y2 * scale) + dy]
centered['lines'].append(nl)
for t in geometry.get('texts', []):
nt = t.copy()
x, y = t['pos']
nt['pos'] = [(x * scale) + dx, (y * scale) + dy]
nt['size'] = t.get('size', 4.5) * scale
centered['texts'].append(nt)
return centered
@staticmethod
def fit_to_sheet(geometry: Dict[str, List], sheet_size: str = '11x17') -> Dict[str, List]:
size = ViewportScalingEngine.SHEET_SIZES.get(sheet_size, ViewportScalingEngine.SHEET_SIZES['11x17'])
sheet_w, sheet_h = size['w'], size['h']
bbox = ViewportScalingEngine.get_bounds(geometry)
scale = ViewportScalingEngine.compute_scale(bbox, (sheet_w, sheet_h))
min_x, min_y, max_x, max_y = bbox
geom_center_x = (min_x + max_x) / 2.0 * scale
geom_center_y = (min_y + max_y) / 2.0 * scale
sheet_center_x = sheet_w / 2.0
sheet_center_y = sheet_h / 2.0
dx = sheet_center_x - geom_center_x
dy = sheet_center_y - geom_center_y
return ViewportScalingEngine.center_geometry(geometry, dx, dy, scale)
+109
View File
@@ -0,0 +1,109 @@
from typing import Dict, List, Tuple
class WallEngine:
"""Procedural generator for architectural walls, hatches, and openings."""
@staticmethod
def draw_wall_core(start: Tuple[float, float], end: Tuple[float, float], thickness: float = 4.5, scale: float = 1.0) -> Dict[str, List]:
"""Draws the core structure lines of a wall."""
geom = {"lines": [], "blocks": [], "texts": []}
x1, y1 = start
x2, y2 = end
# Simplified assumption for horizontal walls for MVP
if abs(y1 - y2) < 0.1: # Horizontal
geom["lines"].append({"start": [x1, y1], "end": [x2, y2], "layer": "WALLS", "style": "solid"})
geom["lines"].append({"start": [x1, y1 + thickness * scale], "end": [x2, y2 + thickness * scale], "layer": "WALLS", "style": "solid"})
else: # Vertical
geom["lines"].append({"start": [x1, y1], "end": [x2, y2], "layer": "WALLS", "style": "solid"})
geom["lines"].append({"start": [x1 + thickness * scale, y1], "end": [x2 + thickness * scale, y2], "layer": "WALLS", "style": "solid"})
return geom
@staticmethod
def draw_finish_face(start: Tuple[float, float], end: Tuple[float, float], offset: float = 0.5, scale: float = 1.0) -> Dict[str, List]:
"""Draws the drywall/finish line offset from the core."""
geom = {"lines": [], "blocks": [], "texts": []}
x1, y1 = start
x2, y2 = end
if abs(y1 - y2) < 0.1: # Horizontal
geom["lines"].append({"start": [x1, y1 - offset * scale], "end": [x2, y2 - offset * scale], "layer": "WALL_FINISH", "style": "solid"})
else: # Vertical
geom["lines"].append({"start": [x1 - offset * scale, y1], "end": [x2 - offset * scale, y2], "layer": "WALL_FINISH", "style": "solid"})
return geom
@staticmethod
def draw_wall_hatch(x: float, y: float, w: float, h: float, pattern: str = "ANSI31", scale: float = 1.0) -> Dict[str, List]:
"""Draws the architectural hatch pattern within the wall core."""
geom = {"lines": [], "blocks": [], "texts": []}
# A true hatch is complex; we'll simulate by returning a hatch polygon block
geom["blocks"].append({
"type": "rect",
"coords": [x, y, w, h],
"layer": "WALL_HATCH",
"style": "hatch_" + pattern.lower()
})
return geom
@staticmethod
def draw_opening(x: float, y: float, width: float, depth: float = 4.5, scale: float = 1.0) -> Dict[str, List]:
"""Draws a door or window opening interruption in the wall."""
geom = {"lines": [], "blocks": [], "texts": []}
# Opening lines usually cross the wall core
geom["lines"].append({"start": [x, y], "end": [x, y + depth * scale], "layer": "WALLS", "style": "solid"})
geom["lines"].append({"start": [x + width * scale, y], "end": [x + width * scale, y + depth * scale], "layer": "WALLS", "style": "solid"})
return geom
@staticmethod
def draw_centerline(start: Tuple[float, float], end: Tuple[float, float], scale: float = 1.0) -> Dict[str, List]:
"""Draws an architectural centerline."""
geom = {"lines": [], "blocks": [], "texts": []}
x1, y1 = start
x2, y2 = end
geom["lines"].append({"start": [x1, y1], "end": [x2, y2], "layer": "CENTERLINES", "style": "center"})
return geom
@staticmethod
def draw_hidden_wall(start: Tuple[float, float], end: Tuple[float, float], thickness: float = 4.5, scale: float = 1.0) -> Dict[str, List]:
"""Draws a hidden/below-grade wall."""
geom = {"lines": [], "blocks": [], "texts": []}
x1, y1 = start
x2, y2 = end
if abs(y1 - y2) < 0.1: # Horizontal
geom["lines"].append({"start": [x1, y1], "end": [x2, y2], "layer": "WALLS_HIDDEN", "style": "dashed"})
geom["lines"].append({"start": [x1, y1 + thickness * scale], "end": [x2, y2 + thickness * scale], "layer": "WALLS_HIDDEN", "style": "dashed"})
else: # Vertical
geom["lines"].append({"start": [x1, y1], "end": [x2, y2], "layer": "WALLS_HIDDEN", "style": "dashed"})
geom["lines"].append({"start": [x1 + thickness * scale, y1], "end": [x2 + thickness * scale, y2], "layer": "WALLS_HIDDEN", "style": "dashed"})
return geom
@staticmethod
def draw_demolition_wall(start: Tuple[float, float], end: Tuple[float, float], thickness: float = 4.5, scale: float = 1.0) -> Dict[str, List]:
"""Draws a wall marked for demolition."""
geom = {"lines": [], "blocks": [], "texts": []}
x1, y1 = start
x2, y2 = end
if abs(y1 - y2) < 0.1: # Horizontal
geom["lines"].append({"start": [x1, y1], "end": [x2, y2], "layer": "WALLS_DEMO", "style": "hidden"})
geom["lines"].append({"start": [x1, y1 + thickness * scale], "end": [x2, y2 + thickness * scale], "layer": "WALLS_DEMO", "style": "hidden"})
else: # Vertical
geom["lines"].append({"start": [x1, y1], "end": [x2, y2], "layer": "WALLS_DEMO", "style": "hidden"})
geom["lines"].append({"start": [x1 + thickness * scale, y1], "end": [x2 + thickness * scale, y2], "layer": "WALLS_DEMO", "style": "hidden"})
return geom
@staticmethod
def draw_soffit(start: Tuple[float, float], end: Tuple[float, float], depth: float = 12.0, scale: float = 1.0) -> Dict[str, List]:
"""Draws overhead soffit lines."""
geom = {"lines": [], "blocks": [], "texts": []}
x1, y1 = start
x2, y2 = end
if abs(y1 - y2) < 0.1: # Horizontal
geom["lines"].append({"start": [x1, y1 + depth * scale], "end": [x2, y2 + depth * scale], "layer": "SOFFIT", "style": "dashed"})
else: # Vertical
geom["lines"].append({"start": [x1 + depth * scale, y1], "end": [x2 + depth * scale, y2], "layer": "SOFFIT", "style": "dashed"})
return geom
+24 -773
View File
@@ -8,9 +8,9 @@
"""
from __future__ import annotations
import math
from typing import List, Dict, Any, Optional
from fractions import Fraction
from typing import List, Dict, Any
from core.engines.floor_plan_generator import FloorPlanGenerator
from core.engines.elevation_generator import ElevationGenerator
class GeometryEngine:
"""
@@ -19,47 +19,7 @@ class GeometryEngine:
"""
def __init__(self):
# Coordinates offsets inside GeometryEngine space
self.GE_PLAN_OX = 250.0
self.GE_PLAN_OY = 450.0
self.GE_ELEV_OX = 250.0
self.GE_ELEV_OY = 150.0
self.GE_SIDE_OX = 250.0
self.GE_SIDE_OY = 150.0
def _make_double_dim(self, inches: float) -> str:
"""Helper to format inches to Metric [Imperial] format (e.g. 76.20 [2'-6"])."""
if inches <= 0.01:
return ""
# Convert inches to cm
cm = inches * 2.54
# Convert inches to feet and remainder inches
feet = int(inches // 12)
rem_inches = inches % 12
# Round remainder inches to nearest 1/16
rounded_rem = round(rem_inches * 16) / 16
# Format imperial part
if feet > 0:
whole_in = int(rounded_rem)
frac = rounded_rem - whole_in
if frac < 0.01:
imp_str = f"{feet}'-{whole_in}\"" if whole_in > 0 else f"{feet}'"
else:
frac_str = str(Fraction(frac))
imp_str = f"{feet}'-{whole_in} {frac_str}\"" if whole_in > 0 else f"{feet}'-{frac_str}\""
else:
whole_in = int(rounded_rem)
frac = rounded_rem - whole_in
if frac < 0.01:
imp_str = f"{whole_in}\""
else:
frac_str = str(Fraction(frac))
imp_str = f"{whole_in} {frac_str}\"" if whole_in > 0 else f"{frac_str}\""
return f"{cm:.2f} [{imp_str}]"
pass
def generate_layout_geometry(
self,
@@ -73,739 +33,30 @@ class GeometryEngine:
Returns:
{
"plan": { "lines": [], "dimensions": [], "blocks": [], "texts": [] },
"elevation": { "lines": [], "dimensions": [], "blocks": [], "texts": [] }
"elevation": { "lines": [], "dimensions": [], "blocks": [], "texts": [] },
"side": { "lines": [], "dimensions": [], "blocks": [], "texts": [] }
}
"""
plan_geom = {"lines": [], "dimensions": [], "blocks": [], "texts": []}
elev_geom = {"lines": [], "dimensions": [], "blocks": [], "texts": []}
# Call the new modular engines
plan_geom = FloorPlanGenerator.generate(
walls=walls,
start_ox=0.0,
start_oy=0.0,
scale_factor=1.0
)
elev_geom = ElevationGenerator.generate(
walls=walls,
start_ox=0.0,
start_oy=0.0,
ceiling_height=ceiling_height,
scale_x=1.0,
scale_y=1.0
)
# Phase 2 will implement the SectionGenerator
side_geom = {"lines": [], "dimensions": [], "blocks": [], "texts": []}
# Origin offsets
plan_ox = self.GE_PLAN_OX
plan_oy = self.GE_PLAN_OY
elev_ox = self.GE_ELEV_OX
elev_oy = self.GE_ELEV_OY
side_ox = self.GE_SIDE_OX
side_oy = self.GE_SIDE_OY
for w_idx, wall in enumerate(walls):
wall_name = wall.get("name", "A")
wall_length = wall.get("length", 90.0)
cabinets = wall.get("cabinets", [])
if w_idx > 0:
prev_length = walls[w_idx - 1].get("length", 90.0)
offset_x = (prev_length * 4.0) + 100.0
plan_ox += offset_x
elev_ox += offset_x
side_ox += offset_x
# --- Plan View Construction ---
# 1. Back wall line and solid thick wall + hatch pattern (6" depth)
plan_geom["lines"].append({
"start": [plan_ox, plan_oy],
"end": [plan_ox + wall_length * 4.0, plan_oy],
"layer": "WALLS",
"style": "solid"
})
plan_geom["lines"].append({
"start": [plan_ox, plan_oy + 6.0 * 4.0],
"end": [plan_ox + wall_length * 4.0, plan_oy + 6.0 * 4.0],
"layer": "WALLS",
"style": "solid"
})
# Draw cross-hatches in wall cut
for hx in range(0, int(wall_length), 4):
plan_geom["lines"].append({
"start": [plan_ox + hx * 4.0, plan_oy],
"end": [plan_ox + (hx + 4) * 4.0, plan_oy + 6.0 * 4.0],
"layer": "WALLS_HATCH",
"style": "solid"
})
# 2. Countertop boundary (25" depth standard)
ct_d = 25.0
plan_geom["lines"].append({
"start": [plan_ox, plan_oy - ct_d * 4.0],
"end": [plan_ox + wall_length * 4.0, plan_oy - ct_d * 4.0],
"layer": "COUNTERTOP",
"style": "solid"
})
# Double line for front edge lip
plan_geom["lines"].append({
"start": [plan_ox, plan_oy - (ct_d - 1.0) * 4.0],
"end": [plan_ox + wall_length * 4.0, plan_oy - (ct_d - 1.0) * 4.0],
"layer": "COUNTERTOP",
"style": "solid"
})
# 3. Draw cabinets in Plan
for cab in cabinets:
cab_x = cab.get("x", 0.0)
cab_w = cab.get("width", 12.0)
cab_id = cab.get("id", "CAB")
cab_type = cab.get("cabinet_type", cab.get("type", "")).lower()
is_upper = cab_id.upper().startswith("W") or "upper" in cab_type
is_sink = "sink" in cab_type or cab_id.upper().startswith("SB")
is_range = "range" in cab_type or "range" in cab_id.lower() or "cooktop" in cab_id.lower()
is_ref = "ref" in cab_type or "refrigerator" in cab_id.lower() or "ref" in cab_id.lower()
is_dw = "dw" in cab_type or "dishwasher" in cab_id.lower() or "dw" in cab_id.lower()
depth = 12.0 if is_upper else (30.0 if is_ref else 24.0)
layer = "CABINETS_UPPER" if is_upper else "CABINETS_BASE"
style = "dashed" if is_upper else "solid"
# Cabinet box
x0 = plan_ox + cab_x * 4.0
x1 = x0 + cab_w * 4.0
y0 = plan_oy
y1 = plan_oy - depth * 4.0
plan_geom["blocks"].append({
"type": "rect",
"coords": [x0, y1, x1 - x0, y0 - y1],
"id": cab_id,
"layer": layer,
"style": style
})
# Visual Details
if is_sink:
# Draw double sink bowl
sw = (cab_w - 6.0) * 4.0
sd = 15.0 * 4.0
sx0 = x0 + 3.0 * 4.0
sy0 = plan_oy - 4.0 * 4.0
# Outer bowl
plan_geom["blocks"].append({
"type": "rect",
"coords": [sx0, sy0 - sd, sw, sd],
"id": "",
"layer": "SINK",
"style": "solid"
})
# Double bowl separator
plan_geom["lines"].append({
"start": [sx0 + sw/2, sy0],
"end": [sx0 + sw/2, sy0 - sd],
"layer": "SINK",
"style": "solid"
})
# Faucet point
plan_geom["lines"].append({
"start": [sx0 + sw/2, sy0 + 1.0 * 4.0],
"end": [sx0 + sw/2, sy0 - 2.0 * 4.0],
"layer": "SINK",
"style": "solid"
})
elif is_range:
# Draw 4 circles for cooktop burners
r_burner = 2.5 * 4.0
cx1 = x0 + (cab_w / 4.0) * 4.0
cx2 = x0 + (cab_w * 3.0 / 4.0) * 4.0
cy1 = plan_oy - 7.0 * 4.0
cy2 = plan_oy - 17.0 * 4.0
for cx, cy in [(cx1, cy1), (cx1, cy2), (cx2, cy1), (cx2, cy2)]:
# Represent circle via cross lines for standard compatibility
plan_geom["lines"].append({
"start": [cx - r_burner, cy], "end": [cx + r_burner, cy],
"layer": "BURNERS", "style": "solid"
})
plan_geom["lines"].append({
"start": [cx, cy - r_burner], "end": [cx, cy + r_burner],
"layer": "BURNERS", "style": "solid"
})
elif is_ref:
# Draw refrigerator handles on the front edge
plan_geom["lines"].append({
"start": [x0 + 4.0, y1],
"end": [x1 - 4.0, y1],
"layer": "APPLIANCES",
"style": "solid"
})
plan_geom["texts"].append({
"pos": [(x0 + x1) / 2, (y0 + y1) / 2],
"text": "REFRIGERATOR",
"size": 4.5,
"layer": "TEXT"
})
elif is_dw:
plan_geom["texts"].append({
"pos": [(x0 + x1) / 2, (y0 + y1) / 2],
"text": "DISHWASHER",
"size": 4.5,
"layer": "TEXT"
})
# Dimension labels inside boxes
if not is_ref and not is_dw:
plan_geom["texts"].append({
"pos": [(x0 + x1) / 2, (y0 + y1) / 2 - 2.0],
"text": f"{cab_id}\n{cab_w}\"",
"size": 4.0,
"layer": layer
})
# Running dimension string at top of plan
plan_geom["dimensions"].append({
"start": [plan_ox, plan_oy + 14.0 * 4.0],
"end": [plan_ox + wall_length * 4.0, plan_oy + 14.0 * 4.0],
"text": self._make_double_dim(wall_length)
})
# --- Elevation View Construction ---
# 1. Ground floor line
elev_geom["lines"].append({
"start": [elev_ox - 10.0, elev_oy],
"end": [elev_ox + wall_length * 4.0 + 10.0, elev_oy],
"layer": "GROUND",
"style": "solid"
})
# 2. Toe kick line (4" height AFF)
elev_geom["lines"].append({
"start": [elev_ox, elev_oy + 4.0 * 3.0],
"end": [elev_ox + wall_length * 4.0, elev_oy + 4.0 * 3.0],
"layer": "CABINETS_BASE",
"style": "solid"
})
# 3. Countertop lines (34.5" to 36.0" AFF)
elev_geom["lines"].append({
"start": [elev_ox, elev_oy + 34.5 * 3.0],
"end": [elev_ox + wall_length * 4.0, elev_oy + 34.5 * 3.0],
"layer": "COUNTERTOP",
"style": "solid"
})
elev_geom["lines"].append({
"start": [elev_ox, elev_oy + 36.0 * 3.0],
"end": [elev_ox + wall_length * 4.0, elev_oy + 36.0 * 3.0],
"layer": "COUNTERTOP",
"style": "solid"
})
# 4. Ceiling line
elev_geom["lines"].append({
"start": [elev_ox - 10.0, elev_oy + ceiling_height * 3.0],
"end": [elev_ox + wall_length * 4.0 + 10.0, elev_oy + ceiling_height * 3.0],
"layer": "CEILING",
"style": "solid"
})
# 5. Draw cabinets in Elevation
for cab in cabinets:
cab_x = cab.get("x", 0.0)
cab_w = cab.get("width", 12.0)
cab_h = cab.get("height", 30.0)
cab_id = cab.get("id", "CAB")
cab_type = cab.get("cabinet_type", cab.get("type", "")).lower()
is_upper = cab_id.upper().startswith("W") or "upper" in cab_type
is_pantry = cab_id.upper().startswith("T") or "pantry" in cab_type
is_sink = "sink" in cab_type or cab_id.upper().startswith("SB")
is_range = "range" in cab_type or "range" in cab_id.lower() or "cooktop" in cab_id.lower()
is_ref = "ref" in cab_type or "refrigerator" in cab_id.lower() or "ref" in cab_id.lower()
is_dw = "dw" in cab_type or "dishwasher" in cab_id.lower() or "dw" in cab_id.lower()
is_drawer = "dwr" in cab_id.lower() or "drawer" in cab_type or "drawers" in cab.get("notes", "").lower()
# Coordinate height offsets
if is_pantry:
y0 = elev_oy + 4.0 * 3.0
y1 = elev_oy + cab_h * 3.0
elif is_upper:
y0 = elev_oy + 54.0 * 3.0
y1 = y0 + cab_h * 3.0
else:
# standard base cabinet starts above 4" toe kick, ends at 34.5" box height
y0 = elev_oy + 4.0 * 3.0
y1 = elev_oy + 34.5 * 3.0
x0 = elev_ox + cab_x * 4.0
x1 = x0 + cab_w * 4.0
if is_ref:
# Refrigerator stands on floor and goes up to 72" AFF typically
y0_ref = elev_oy
y1_ref = elev_oy + 72.0 * 3.0
elev_geom["blocks"].append({
"type": "rect",
"coords": [x0, y0_ref, x1 - x0, y1_ref - y0_ref],
"id": cab_id,
"layer": "APPLIANCES",
"style": "solid"
})
# Refrigerator doors dividing vertical line
elev_geom["lines"].append({
"start": [x0 + (x1 - x0)/2, y0_ref],
"end": [x0 + (x1 - x0)/2, y1_ref],
"layer": "APPLIANCES",
"style": "solid"
})
# Refrigerator handles
elev_geom["lines"].append({
"start": [x0 + (x1 - x0)/2 - 1.5, y0_ref + 30.0 * 3.0],
"end": [x0 + (x1 - x0)/2 - 1.5, y0_ref + 48.0 * 3.0],
"layer": "APPLIANCES",
"style": "solid"
})
elev_geom["lines"].append({
"start": [x0 + (x1 - x0)/2 + 1.5, y0_ref + 30.0 * 3.0],
"end": [x0 + (x1 - x0)/2 + 1.5, y0_ref + 48.0 * 3.0],
"layer": "APPLIANCES",
"style": "solid"
})
elev_geom["texts"].append({
"pos": [(x0 + x1) / 2, (y0_ref + y1_ref) / 2],
"text": f"REFRIGERATOR\n{cab_w}\"W",
"size": 4.5,
"layer": "TEXT"
})
elif is_dw:
# Dishwasher front panel
elev_geom["blocks"].append({
"type": "rect",
"coords": [x0, y0, x1 - x0, y1 - y0],
"id": "D/W",
"layer": "APPLIANCES",
"style": "solid"
})
# Control panel line at top of D/W
elev_geom["lines"].append({
"start": [x0, y1 - 4.0 * 3.0],
"end": [x1, y1 - 4.0 * 3.0],
"layer": "APPLIANCES",
"style": "solid"
})
elev_geom["texts"].append({
"pos": [(x0 + x1) / 2, (y0 + y1) / 2],
"text": f"D/W\n{cab_w}\"W",
"size": 4.5,
"layer": "TEXT"
})
elif is_range:
# Cooktop / Range stove
# Draw stove box standing on ground Y=0, ending at Y=36 (counter level)
y1_stove = elev_oy + 36.0 * 3.0
elev_geom["blocks"].append({
"type": "rect",
"coords": [x0, elev_oy, x1 - x0, y1_stove - elev_oy],
"id": "STOVE",
"layer": "APPLIANCES",
"style": "solid"
})
# Oven glass window
elev_geom["blocks"].append({
"type": "rect",
"coords": [x0 + 4.0, elev_oy + 8.0 * 3.0, (cab_w - 8.0) * 4.0, 14.0 * 3.0],
"id": "",
"layer": "APPLIANCES",
"style": "solid"
})
# Dials/control panel line at top
elev_geom["lines"].append({
"start": [x0, y1_stove - 3.0 * 3.0],
"end": [x1, y1_stove - 3.0 * 3.0],
"layer": "APPLIANCES",
"style": "solid"
})
elev_geom["texts"].append({
"pos": [(x0 + x1) / 2, y1_stove - 1.5 * 3.0],
"text": "RANGE",
"size": 4.5,
"layer": "TEXT"
})
elif is_drawer:
# Draw 3-drawer layout
elev_geom["blocks"].append({
"type": "rect",
"coords": [x0, y0, x1 - x0, y1 - y0],
"id": cab_id,
"layer": "CABINETS_BASE",
"style": "solid"
})
# Draw horizontal dividers
dy1 = y0 + 7.0 * 3.0
dy2 = y0 + 17.0 * 3.0
elev_geom["lines"].append({
"start": [x0, dy1], "end": [x1, dy1],
"layer": "CABINETS_BASE", "style": "solid"
})
elev_geom["lines"].append({
"start": [x0, dy2], "end": [x1, dy2],
"layer": "CABINETS_BASE", "style": "solid"
})
# Draw drawer handles
for h_y in [(y0 + dy1)/2, (dy1 + dy2)/2, (dy2 + y1)/2]:
elev_geom["lines"].append({
"start": [(x0 + x1)/2 - 3.0, h_y],
"end": [(x0 + x1)/2 + 3.0, h_y],
"layer": "HANDLES",
"style": "solid"
})
else:
# Standard Cabinet Box
layer = "CABINETS_UPPER" if is_upper else "CABINETS_BASE"
elev_geom["blocks"].append({
"type": "rect",
"coords": [x0, y0, x1 - x0, y1 - y0],
"id": cab_id,
"layer": layer,
"style": "solid"
})
# Door divides and swing indicators (triangle dashes)
if cab_w > 21.0:
# Double door divide
xm = (x0 + x1) / 2
elev_geom["lines"].append({
"start": [xm, y0],
"end": [xm, y1],
"layer": layer,
"style": "solid"
})
# Left door swing triangle
elev_geom["lines"].append({
"start": [x0, y0], "end": [xm, (y0 + y1) / 2],
"layer": "SWING", "style": "dashed"
})
elev_geom["lines"].append({
"start": [x0, y1], "end": [xm, (y0 + y1) / 2],
"layer": "SWING", "style": "dashed"
})
# Right door swing triangle
elev_geom["lines"].append({
"start": [x1, y0], "end": [xm, (y0 + y1) / 2],
"layer": "SWING", "style": "dashed"
})
elev_geom["lines"].append({
"start": [x1, y1], "end": [xm, (y0 + y1) / 2],
"layer": "SWING", "style": "dashed"
})
# Handles in the center
elev_geom["lines"].append({
"start": [xm - 1.0, (y0 + y1)/2 - 3.0],
"end": [xm - 1.0, (y0 + y1)/2 + 3.0],
"layer": "HANDLES", "style": "solid"
})
elev_geom["lines"].append({
"start": [xm + 1.0, (y0 + y1)/2 - 3.0],
"end": [xm + 1.0, (y0 + y1)/2 + 3.0],
"layer": "HANDLES", "style": "solid"
})
else:
# Single door swing (left hinged hinge swing lines)
elev_geom["lines"].append({
"start": [x0, y0], "end": [x1, (y0 + y1) / 2],
"layer": "SWING", "style": "dashed"
})
elev_geom["lines"].append({
"start": [x0, y1], "end": [x1, (y0 + y1) / 2],
"layer": "SWING", "style": "dashed"
})
# Handle on the right side
elev_geom["lines"].append({
"start": [x1 - 1.5, (y0 + y1)/2 - 3.0],
"end": [x1 - 1.5, (y0 + y1)/2 + 3.0],
"layer": "HANDLES", "style": "solid"
})
# Label
elev_geom["texts"].append({
"pos": [(x0 + x1) / 2, (y0 + y1) / 2],
"text": f"{cab_id}\n{cab_w}\"x{cab_h}\"",
"size": 4.0,
"layer": "TEXT"
})
# Dimension markers at bottom of cabinet box
elev_geom["dimensions"].append({
"start": [x0, elev_oy - 10.0],
"end": [x1, elev_oy - 10.0],
"text": self._make_double_dim(cab_w)
})
# Running horizontal dimensions at top of elevation view
elev_geom["dimensions"].append({
"start": [elev_ox, elev_oy + (ceiling_height + 10.0) * 3.0],
"end": [elev_ox + wall_length * 4.0, elev_oy + (ceiling_height + 10.0) * 3.0],
"text": self._make_double_dim(wall_length)
})
# Vertical dimensions on the left of elevation
v_dims = [
(0.0, 4.0, "4\""),
(4.0, 34.5, "30.5\""),
(34.5, 36.0, "1.5\""),
(36.0, 54.0, "18\""),
(54.0, 54.0 + 30.0, "30\""), # assuming standard 30" upper
(0.0, ceiling_height, f"{ceiling_height:.0f}\" clg")
]
for start_aff, end_aff, dim_txt in v_dims:
elev_geom["dimensions"].append({
"start": [elev_ox - 24.0, elev_oy + start_aff * 3.0],
"end": [elev_ox - 24.0, elev_oy + end_aff * 3.0],
"text": dim_txt
})
# --- Side View (Section) Construction ---
# 1. Ground line (floor)
side_geom["lines"].append({
"start": [side_ox - 5.0 * 4.0, side_oy],
"end": [side_ox + 35.0 * 4.0, side_oy],
"layer": "GROUND",
"style": "solid"
})
# 2. Back wall line
side_geom["lines"].append({
"start": [side_ox, side_oy],
"end": [side_ox, side_oy + ceiling_height * 3.0],
"layer": "WALLS",
"style": "solid"
})
# Draw standard wall hatching on the left of the wall (e.g. from X=-6" to X=0)
side_geom["lines"].append({
"start": [side_ox - 6.0 * 4.0, side_oy],
"end": [side_ox - 6.0 * 4.0, side_oy + ceiling_height * 3.0],
"layer": "WALLS",
"style": "solid"
})
for hx in range(0, int(ceiling_height), 12):
side_geom["lines"].append({
"start": [side_ox - 6.0 * 4.0, side_oy + hx * 3.0],
"end": [side_ox, side_oy + (hx + 8) * 3.0],
"layer": "WALLS_HATCH",
"style": "solid"
})
# 3. Ceiling line
side_geom["lines"].append({
"start": [side_ox - 5.0 * 4.0, side_oy + ceiling_height * 3.0],
"end": [side_ox + 35.0 * 4.0, side_oy + ceiling_height * 3.0],
"layer": "CEILING",
"style": "solid"
})
# 4. Check what cabinet types are on this wall
has_base = False
has_upper = False
has_pantry = False
has_vanity = False
base_h = 34.5
upper_h = 30.0
pantry_h = 84.0
vanity_h = 34.5
for cab in cabinets:
cab_id = cab.get("id", "").upper()
cab_type = cab.get("type", "").lower() or cab.get("cabinet_type", "").lower()
is_upper = cab_id.startswith("W") or "upper" in cab_type
is_pantry = cab_id.startswith("T") or "pantry" in cab_type
is_vanity = cab_id.startswith("VAN") or "vanity" in cab_type
if is_pantry:
has_pantry = True
pantry_h = max(pantry_h, cab.get("height", 84.0))
elif is_upper:
has_upper = True
upper_h = max(upper_h, cab.get("height", 30.0))
elif is_vanity:
has_vanity = True
vanity_h = max(vanity_h, cab.get("height", 34.5))
else:
has_base = True
base_h = max(base_h, cab.get("height", 34.5))
# 5. Draw base cabinet or vanity section
if has_vanity:
van_d = 21.0
# Draw vanity outline
side_geom["blocks"].append({
"type": "rect",
"coords": [side_ox, side_oy + 4.0 * 3.0, van_d * 4.0, (vanity_h - 4.0) * 3.0],
"id": "",
"layer": "CABINETS_BASE",
"style": "solid"
})
# Toe kick (3" deep, 4" high)
side_geom["lines"].append({
"start": [side_ox + (van_d - 3.0) * 4.0, side_oy],
"end": [side_ox + (van_d - 3.0) * 4.0, side_oy + 4.0 * 3.0],
"layer": "CABINETS_BASE",
"style": "solid"
})
side_geom["lines"].append({
"start": [side_ox + (van_d - 3.0) * 4.0, side_oy + 4.0 * 3.0],
"end": [side_ox + van_d * 4.0, side_oy + 4.0 * 3.0],
"layer": "CABINETS_BASE",
"style": "solid"
})
# Countertop (22" deep, 1.5" thickness)
side_geom["blocks"].append({
"type": "rect",
"coords": [side_ox, side_oy + vanity_h * 3.0, (van_d + 1.0) * 4.0, 1.5 * 3.0],
"id": "",
"layer": "COUNTERTOP",
"style": "solid"
})
# Backsplash
side_geom["blocks"].append({
"type": "rect",
"coords": [side_ox, side_oy + (vanity_h + 1.5) * 3.0, 0.75 * 4.0, 4.0 * 3.0],
"id": "",
"layer": "COUNTERTOP",
"style": "solid"
})
elif has_base:
base_d = 24.0
# Draw base outline
side_geom["blocks"].append({
"type": "rect",
"coords": [side_ox, side_oy + 4.0 * 3.0, base_d * 4.0, (base_h - 4.0) * 3.0],
"id": "",
"layer": "CABINETS_BASE",
"style": "solid"
})
# Toe kick (3" deep, 4" high)
side_geom["lines"].append({
"start": [side_ox + (base_d - 3.0) * 4.0, side_oy],
"end": [side_ox + (base_d - 3.0) * 4.0, side_oy + 4.0 * 3.0],
"layer": "CABINETS_BASE",
"style": "solid"
})
side_geom["lines"].append({
"start": [side_ox + (base_d - 3.0) * 4.0, side_oy + 4.0 * 3.0],
"end": [side_ox + base_d * 4.0, side_oy + 4.0 * 3.0],
"layer": "CABINETS_BASE",
"style": "solid"
})
# Countertop (25" deep, 1.5" thickness)
side_geom["blocks"].append({
"type": "rect",
"coords": [side_ox, side_oy + base_h * 3.0, (base_d + 1.0) * 4.0, 1.5 * 3.0],
"id": "",
"layer": "COUNTERTOP",
"style": "solid"
})
# Backsplash
side_geom["blocks"].append({
"type": "rect",
"coords": [side_ox, side_oy + (base_h + 1.5) * 3.0, 0.75 * 4.0, 18.0 * 3.0],
"id": "",
"layer": "COUNTERTOP",
"style": "solid"
})
# 6. Draw pantry/tall cabinet section
if has_pantry:
pantry_d = 24.0
# Outline
side_geom["blocks"].append({
"type": "rect",
"coords": [side_ox, side_oy + 4.0 * 3.0, pantry_d * 4.0, (pantry_h - 4.0) * 3.0],
"id": "",
"layer": "CABINETS_BASE",
"style": "solid"
})
# Toe kick (3" deep, 4" high)
side_geom["lines"].append({
"start": [side_ox + (pantry_d - 3.0) * 4.0, side_oy],
"end": [side_ox + (pantry_d - 3.0) * 4.0, side_oy + 4.0 * 3.0],
"layer": "CABINETS_BASE",
"style": "solid"
})
side_geom["lines"].append({
"start": [side_ox + (pantry_d - 3.0) * 4.0, side_oy + 4.0 * 3.0],
"end": [side_ox + pantry_d * 4.0, side_oy + 4.0 * 3.0],
"layer": "CABINETS_BASE",
"style": "solid"
})
# 7. Draw upper cabinet section
if has_upper:
upper_d = 12.0
# Outline
side_geom["blocks"].append({
"type": "rect",
"coords": [side_ox, side_oy + 54.0 * 3.0, upper_d * 4.0, upper_h * 3.0],
"id": "",
"layer": "CABINETS_UPPER",
"style": "solid"
})
# 8. Add side view text labels
side_geom["texts"].append({
"pos": [side_ox + 15.0 * 4.0, side_oy - 15.0],
"text": "SIDE SECTION",
"size": 5.0,
"layer": "TEXT"
})
# 9. Add dimension strings
# Vertical dimension strings (left side of wall)
# Toe kick: 4"
side_geom["dimensions"].append({
"start": [side_ox - 10.0, side_oy],
"end": [side_ox - 10.0, side_oy + 4.0 * 3.0],
"text": "4\""
})
# Base/Vanity cabinet box
box_h = vanity_h if has_vanity else base_h
side_geom["dimensions"].append({
"start": [side_ox - 10.0, side_oy + 4.0 * 3.0],
"end": [side_ox - 10.0, side_oy + box_h * 3.0],
"text": f"{(box_h - 4.0):.1f}\""
})
# Countertop: 1.5"
side_geom["dimensions"].append({
"start": [side_ox - 10.0, side_oy + box_h * 3.0],
"end": [side_ox - 10.0, side_oy + (box_h + 1.5) * 3.0],
"text": "1 1/2\""
})
# Splash space: 18" (or 4" for vanity)
splash_h = 4.0 if has_vanity else 18.0
side_geom["dimensions"].append({
"start": [side_ox - 10.0, side_oy + (box_h + 1.5) * 3.0],
"end": [side_ox - 10.0, side_oy + (box_h + 1.5 + splash_h) * 3.0],
"text": f"{splash_h:.0f}\""
})
# Upper box
if has_upper:
side_geom["dimensions"].append({
"start": [side_ox - 10.0, side_oy + 54.0 * 3.0],
"end": [side_ox - 10.0, side_oy + (54.0 + upper_h) * 3.0],
"text": f"{upper_h:.0f}\""
})
# Ceiling height total
side_geom["dimensions"].append({
"start": [side_ox - 22.0, side_oy],
"end": [side_ox - 22.0, side_oy + ceiling_height * 3.0],
"text": f"{ceiling_height:.0f}\" CLG"
})
# Horizontal depth dimensions
if has_base:
side_geom["dimensions"].append({
"start": [side_ox, side_oy + (base_h + 1.5) * 3.0 + 8.0],
"end": [side_ox + 25.0 * 4.0, side_oy + (base_h + 1.5) * 3.0 + 8.0],
"text": "25\""
})
if has_vanity:
side_geom["dimensions"].append({
"start": [side_ox, side_oy + (vanity_h + 1.5) * 3.0 + 8.0],
"end": [side_ox + 22.0 * 4.0, side_oy + (vanity_h + 1.5) * 3.0 + 8.0],
"text": "22\""
})
if has_upper:
side_geom["dimensions"].append({
"start": [side_ox, side_oy + (54.0 + upper_h) * 3.0 + 8.0],
"end": [side_ox + 12.0 * 4.0, side_oy + (54.0 + upper_h) * 3.0 + 8.0],
"text": "12\""
})
return {
"plan": plan_geom,
"elevation": elev_geom,
+9 -5
View File
@@ -28,7 +28,7 @@ from dataclasses import dataclass
from pathlib import Path
from typing import Optional
from core.config import EUR_USD_RATE, CABINET_WIDTH_TOLERANCE_MM
from core.config import EUR_USD_RATE, CABINET_WIDTH_TOLERANCE_IN
# ══════════════════════════════════════════════════════════════════════════
@@ -197,20 +197,21 @@ class PriceMatcher:
def match(
self,
cabinet_type: str,
width_mm: float,
width_in: float,
quantity: int = 1,
tier: int = None,
tolerance_mm: float = CABINET_WIDTH_TOLERANCE_MM,
tolerance_in: float = CABINET_WIDTH_TOLERANCE_IN,
) -> MatchResult:
"""
Find the best price list match for a cabinet.
Args:
cabinet_type: from VALID_CABINET_TYPES (e.g., "base", "upper_wall")
width_mm: cabinet width in mm
width_in: cabinet width in inches
tolerance_in: max width deviation for fuzzy match in inches
quantity: number of units
tier: price tier (1, 2, or 3). Defaults to self.tier.
tolerance_mm: max width deviation for fuzzy match
Returns:
MatchResult with price and match quality
@@ -219,6 +220,9 @@ class PriceMatcher:
tier = tier or self.tier
kw_list = _map_type_to_price_category(cabinet_type)
width_mm = width_in * 25.4
tolerance_mm = tolerance_in * 25.4
best_entry: Optional[PriceListEntry] = None
best_delta: float = math.inf
match_quality = "NOT_FOUND"
+6 -6
View File
@@ -401,9 +401,9 @@ def _build_shop_drawing_sheet(ws, unit_type: str, config: dict, schedule, st: di
bath_cabs = [c for c in all_cabinets if c.cabinet_type in bath_types]
for cab in kitchen_cabs:
w_in = round(cab.width_mm / 25.4, 1)
h_in = round(cab.height_mm / 25.4, 1)
d_in = round(cab.depth_mm / 25.4, 1)
w_in = round(cab.width_in, 1)
h_in = round(cab.height_in, 1)
d_in = round(cab.depth_in / 25.4, 1)
vals = [item_num, cab.code, f"{cab.cabinet_type} {w_in}\"W × {h_in}\"H",
cab.cabinet_type.replace("_", " ").title(),
w_in, h_in, d_in, cab.quantity,
@@ -433,9 +433,9 @@ def _build_shop_drawing_sheet(ws, unit_type: str, config: dict, schedule, st: di
item_num_bath = 1
bath_qty = 0
for cab in bath_cabs:
w_in = round(cab.width_mm / 25.4, 1)
h_in = round(cab.height_mm / 25.4, 1)
d_in = round(cab.depth_mm / 25.4, 1)
w_in = round(cab.width_in, 1)
h_in = round(cab.height_in, 1)
d_in = round(cab.depth_in / 25.4, 1)
vals = [item_num_bath, cab.code,
f"{cab.cabinet_type} {w_in}\"W × {h_in}\"H",
cab.cabinet_type.replace("_", " ").title(),
+131 -50
View File
@@ -11,6 +11,10 @@ from __future__ import annotations
import os
from pathlib import Path
import ezdxf
try:
from ezdxf.addons.drawing.matplotlib import qsave
except ImportError:
qsave = None
class DXFDrawingGenerator:
"""
@@ -27,114 +31,164 @@ class DXFDrawingGenerator:
output_path = Path(output_path)
output_path.parent.mkdir(parents=True, exist_ok=True)
# Create drawing
doc = ezdxf.new('R2010')
# Create drawing with standard styles
doc = ezdxf.new('R2010', setup=True)
msp = doc.modelspace()
# Add typical layers
doc.layers.add('WALLS', color=7)
doc.layers.add('CABINETS_BASE', color=7) # Black/White
doc.layers.add('CABINETS_UPPER', color=7) # Black/White
doc.layers.add('WALLS', color=7) # White/Black
doc.layers.add('WALLS_HIDDEN', color=8)
doc.layers.add('WALLS_DEMO', color=1) # Red
doc.layers.add('WALLS_SECTION', color=7)
doc.layers.add('CENTERLINES', color=3) # Green
doc.layers.add('CABINETS_BASE', color=4) # Cyan
doc.layers.add('CABINETS_UPPER', color=2) # Yellow
doc.layers.add('CABINETS_SECTION', color=4)
doc.layers.add('COUNTERTOP_SECTION', color=6) # Magenta
doc.layers.add('SOFFIT', color=8)
doc.layers.add('SOFFIT_SECTION', color=8)
doc.layers.add('BACKSPLASH_SECTION', color=5) # Blue
doc.layers.add('MOLDING_SECTION', color=6)
doc.layers.add('APPLIANCES', color=7)
doc.layers.add('SINK', color=8)
doc.layers.add('HANDLES', color=7)
doc.layers.add('SWING', color=8)
doc.layers.add('GROUND', color=8)
doc.layers.add('CEILING', color=8)
doc.layers.add('DIMENSIONS', color=8) # Gray/Pencil like
doc.layers.add('TEXT', color=7) # Calculate wall length in inches dynamically to position views correctly
doc.layers.add('DIMENSIONS', color=8)
doc.layers.add('TEXT', color=7)
doc.layers.add('ANNOTATION', color=2)
doc.layers.add('ANNOTATION_TEXT', color=7)
doc.layers.add('REVISIONS', color=1) # Red for revisions
doc.layers.add('TITLEBLOCK', color=7)
wall_length_in = 90.0
if geometry["elevation"]["lines"]:
max_x_geom = max(line["end"][0] for line in geometry["elevation"]["lines"])
wall_length_in = (max_x_geom - 250.0) / 4.0
wall_length_in = max_x_geom
ELEV_Y_OFFSET = 60.0
SIDE_X_OFFSET = max(90.0, wall_length_in) + 30.0
# Helper coordinate mapping functions (converting raw visual coordinates back to actual inches)
def to_plan_inch(pt):
return ((pt[0] - 250.0) / 4.0, (pt[1] - 450.0) / 4.0)
return (pt[0], pt[1])
def to_elev_inch(pt):
return ((pt[0] - 250.0) / 4.0, (pt[1] - 150.0) / 3.0 + ELEV_Y_OFFSET)
return (pt[0], pt[1] + ELEV_Y_OFFSET)
def to_side_inch(pt):
return ((pt[0] - 250.0) / 4.0 + SIDE_X_OFFSET, (pt[1] - 150.0) / 3.0 + ELEV_Y_OFFSET)
return (pt[0] + SIDE_X_OFFSET, pt[1] + ELEV_Y_OFFSET)
# 1. Write Plan Geometry to model space
for line in geometry["plan"]["lines"]:
layer = line.get("layer", "WALLS")
msp.add_line(to_plan_inch(line["start"]), to_plan_inch(line["end"]), dxfattribs={'layer': layer})
ltype = "DASHED" if line.get("style") == "dashed" else "CONTINUOUS"
msp.add_line(to_plan_inch(line["start"]), to_plan_inch(line["end"]), dxfattribs={'layer': layer, 'linetype': ltype})
for block in geometry["plan"]["blocks"]:
layer = block.get("layer", "CABINETS_BASE")
ltype = "DASHED" if block.get("style") == "dashed" else "CONTINUOUS"
x, y, w, h = block["coords"]
x_in = (x - 250.0) / 4.0
y_in = (y - 450.0) / 4.0
w_in = w / 4.0
h_in = h / 4.0
msp.add_line((x_in, y_in), (x_in + w_in, y_in), dxfattribs={'layer': layer})
msp.add_line((x_in + w_in, y_in), (x_in + w_in, y_in + h_in), dxfattribs={'layer': layer})
msp.add_line((x_in + w_in, y_in + h_in), (x_in, y_in + h_in), dxfattribs={'layer': layer})
msp.add_line((x_in, y_in + h_in), (x_in, y_in), dxfattribs={'layer': layer})
if block.get("type") == "circle":
msp.add_circle(to_plan_inch((x, y)), w, dxfattribs={'layer': layer})
else:
x_in = x
y_in = y
w_in = w
h_in = h
msp.add_line((x_in, y_in), (x_in + w_in, y_in), dxfattribs={'layer': layer, 'linetype': ltype})
msp.add_line((x_in + w_in, y_in), (x_in + w_in, y_in + h_in), dxfattribs={'layer': layer, 'linetype': ltype})
msp.add_line((x_in + w_in, y_in + h_in), (x_in, y_in + h_in), dxfattribs={'layer': layer, 'linetype': ltype})
msp.add_line((x_in, y_in + h_in), (x_in, y_in), dxfattribs={'layer': layer, 'linetype': ltype})
for txt in geometry["plan"]["texts"]:
layer = txt.get("layer", "TEXT")
pos_in = to_plan_inch(txt["pos"])
text_str = txt["text"].replace('\n', ' ')
msp.add_text(text_str, dxfattribs={'layer': layer, 'height': 2.5}).set_placement(pos_in)
text_str = txt["text"]
msp.add_mtext(text_str, dxfattribs={'layer': layer, 'char_height': 2.5}).set_location(pos_in)
for dim in geometry["plan"]["dimensions"]:
layer = "DIMENSIONS"
s_in = to_plan_inch(dim["start"])
e_in = to_plan_inch(dim["end"])
msp.add_line(s_in, e_in, dxfattribs={'layer': layer})
text_pos = [(s_in[0] + e_in[0])/2, (s_in[1] + e_in[1])/2 + 2.0]
msp.add_text(dim["text"], dxfattribs={'layer': layer, 'height': 2.0}).set_placement(text_pos)
dim_entity = msp.add_linear_dim(
base=s_in,
p1=s_in,
p2=e_in,
dimstyle='EZDXF',
override={'dimtxsty': 'Standard', 'dimtxt': 2.0},
text=dim["text"],
dxfattribs={'layer': layer}
)
dim_entity.render()
# 2. Write Elevation Geometry
for line in geometry["elevation"]["lines"]:
layer = line.get("layer", "WALLS")
msp.add_line(to_elev_inch(line["start"]), to_elev_inch(line["end"]), dxfattribs={'layer': layer})
ltype = "DASHED" if line.get("style") == "dashed" else "CONTINUOUS"
msp.add_line(to_elev_inch(line["start"]), to_elev_inch(line["end"]), dxfattribs={'layer': layer, 'linetype': ltype})
for block in geometry["elevation"]["blocks"]:
layer = block.get("layer", "CABINETS_BASE")
ltype = "DASHED" if block.get("style") == "dashed" else "CONTINUOUS"
x, y, w, h = block["coords"]
x_in = (x - 250.0) / 4.0
y_in = (y - 150.0) / 3.0 + ELEV_Y_OFFSET
w_in = w / 4.0
h_in = h / 3.0
msp.add_line((x_in, y_in), (x_in + w_in, y_in), dxfattribs={'layer': layer})
msp.add_line((x_in + w_in, y_in), (x_in + w_in, y_in + h_in), dxfattribs={'layer': layer})
msp.add_line((x_in + w_in, y_in + h_in), (x_in, y_in + h_in), dxfattribs={'layer': layer})
msp.add_line((x_in, y_in + h_in), (x_in, y_in), dxfattribs={'layer': layer})
if block.get("type") == "circle":
msp.add_circle((x, y + ELEV_Y_OFFSET), w, dxfattribs={'layer': layer})
else:
x_in = x
y_in = y + ELEV_Y_OFFSET
w_in = w
h_in = h
msp.add_line((x_in, y_in), (x_in + w_in, y_in), dxfattribs={'layer': layer, 'linetype': ltype})
msp.add_line((x_in + w_in, y_in), (x_in + w_in, y_in + h_in), dxfattribs={'layer': layer, 'linetype': ltype})
msp.add_line((x_in + w_in, y_in + h_in), (x_in, y_in + h_in), dxfattribs={'layer': layer, 'linetype': ltype})
msp.add_line((x_in, y_in + h_in), (x_in, y_in), dxfattribs={'layer': layer, 'linetype': ltype})
for txt in geometry["elevation"]["texts"]:
layer = txt.get("layer", "TEXT")
pos_in = to_elev_inch(txt["pos"])
text_str = txt["text"].replace('\n', ' ')
msp.add_text(text_str, dxfattribs={'layer': layer, 'height': 2.5}).set_placement(pos_in)
text_str = txt["text"]
msp.add_mtext(text_str, dxfattribs={'layer': layer, 'char_height': 2.5}).set_location(pos_in)
for dim in geometry["elevation"]["dimensions"]:
layer = "DIMENSIONS"
s_in = to_elev_inch(dim["start"])
e_in = to_elev_inch(dim["end"])
msp.add_line(s_in, e_in, dxfattribs={'layer': layer})
text_pos = [(s_in[0] + e_in[0])/2, (s_in[1] + e_in[1])/2 + 2.0]
msp.add_text(dim["text"], dxfattribs={'layer': layer, 'height': 2.0}).set_placement(text_pos)
# Use angled dimension if vertical
angle = 90 if abs(s_in[0] - e_in[0]) < 0.1 else 0
dim_entity = msp.add_linear_dim(
base=s_in,
p1=s_in,
p2=e_in,
angle=angle,
dimstyle='EZDXF',
override={'dimtxsty': 'Standard', 'dimtxt': 2.0},
text=dim["text"],
dxfattribs={'layer': layer}
)
dim_entity.render()
# 3. Write Side Section Geometry
for line in geometry.get("side", {}).get("lines", []):
layer = line.get("layer", "WALLS")
msp.add_line(to_side_inch(line["start"]), to_side_inch(line["end"]), dxfattribs={'layer': layer})
ltype = "DASHED" if line.get("style") == "dashed" else "CONTINUOUS"
msp.add_line(to_side_inch(line["start"]), to_side_inch(line["end"]), dxfattribs={'layer': layer, 'linetype': ltype})
for block in geometry.get("side", {}).get("blocks", []):
layer = block.get("layer", "CABINETS_BASE")
ltype = "DASHED" if block.get("style") == "dashed" else "CONTINUOUS"
x, y, w, h = block["coords"]
x_in = (x - 250.0) / 4.0 + SIDE_X_OFFSET
y_in = (y - 150.0) / 3.0 + ELEV_Y_OFFSET
w_in = w / 4.0
h_in = h / 3.0
msp.add_line((x_in, y_in), (x_in + w_in, y_in), dxfattribs={'layer': layer})
msp.add_line((x_in + w_in, y_in), (x_in + w_in, y_in + h_in), dxfattribs={'layer': layer})
msp.add_line((x_in + w_in, y_in + h_in), (x_in, y_in + h_in), dxfattribs={'layer': layer})
msp.add_line((x_in, y_in + h_in), (x_in, y_in), dxfattribs={'layer': layer})
msp.add_line((x_in, y_in), (x_in + w_in, y_in), dxfattribs={'layer': layer, 'linetype': ltype})
msp.add_line((x_in + w_in, y_in), (x_in + w_in, y_in + h_in), dxfattribs={'layer': layer, 'linetype': ltype})
msp.add_line((x_in + w_in, y_in + h_in), (x_in, y_in + h_in), dxfattribs={'layer': layer, 'linetype': ltype})
msp.add_line((x_in, y_in + h_in), (x_in, y_in), dxfattribs={'layer': layer, 'linetype': ltype})
for txt in geometry.get("side", {}).get("texts", []):
layer = txt.get("layer", "TEXT")
@@ -146,16 +200,43 @@ class DXFDrawingGenerator:
layer = "DIMENSIONS"
s_in = to_side_inch(dim["start"])
e_in = to_side_inch(dim["end"])
msp.add_line(s_in, e_in, dxfattribs={'layer': layer})
text_pos = [(s_in[0] + e_in[0])/2, (s_in[1] + e_in[1])/2 + 2.0]
msp.add_text(dim["text"], dxfattribs={'layer': layer, 'height': 2.0}).set_placement(text_pos)
# Use angled dimension if vertical
angle = 90 if abs(s_in[0] - e_in[0]) < 0.1 else 0
dim_entity = msp.add_linear_dim(
base=s_in,
p1=s_in,
p2=e_in,
angle=angle,
dimstyle='EZDXF',
override={'dimtxsty': 'Standard', 'dimtxt': 2.0},
text=dim["text"],
dxfattribs={'layer': layer}
)
dim_entity.render()
# 4. Add view labels to DXF model space
msp.add_text("COUNTERTOP PLAN VIEW", dxfattribs={'layer': 'TEXT', 'height': 3.5}).set_placement((wall_length_in / 2, -40.0))
msp.add_text("FRONT ELEVATION VIEW", dxfattribs={'layer': 'TEXT', 'height': 3.5}).set_placement((wall_length_in / 2, ELEV_Y_OFFSET - 15.0))
msp.add_text("SIDE SECTION VIEW", dxfattribs={'layer': 'TEXT', 'height': 3.5}).set_placement((SIDE_X_OFFSET + 15.0, ELEV_Y_OFFSET - 15.0))
# (Labels are now generated dynamically by the geometry engines for each wall)
# Save file
doc.saveas(str(output_path))
print(f" [SUCCESS] DXF drawing saved: {output_path}")
# Also save to PDF if matplotlib is available
if qsave:
from ezdxf.addons.drawing.config import Configuration, BackgroundPolicy, ColorPolicy
# We want a white background and monochrome black lines for printing
config = Configuration(
background_policy=BackgroundPolicy.WHITE,
color_policy=ColorPolicy.BLACK
)
pdf_path = str(output_path).replace('.dxf', '.pdf')
try:
# Specify high resolution and white background
qsave(doc.modelspace(), pdf_path, bg='#FFFFFF', config=config, dpi=300)
print(f" [SUCCESS] DXF-based PDF drawing saved: {pdf_path}")
except Exception as e:
print(f" [WARN] Failed to export DXF to PDF: {e}")
return output_path
+449 -390
View File
@@ -708,288 +708,139 @@ def _draw_generic_matrix(c: canvas.Canvas, config: dict, unit_schedules: dict,
# PAGES 3+: UNIT ELEVATION PAGES
# ══════════════════════════════════════════════════════════════════════════
def _draw_unit_page(c: canvas.Canvas, config: dict, unit_type: str, schedule,
page_num: int, total_pages: int):
"""Draw one page for a unit type elevation schedule."""
import math
def format_imperial_arch(inches: float) -> str:
"""Format decimal inches to architectural feet/inches (e.g., [2-11 7/16])."""
inches_round = round(inches * 16) / 16.0
feet = int(inches_round // 12)
rem_in = int(inches_round % 12)
frac = int(round((inches_round - int(inches_round)) * 16))
if frac == 16:
rem_in += 1
frac = 0
if rem_in == 12:
feet += 1
rem_in = 0
def frac_str(f):
if f == 0: return ""
if f % 8 == 0: return f"{f//8}/2"
if f % 4 == 0: return f"{f//4}/4"
if f % 2 == 0: return f"{f//2}/8"
return f"{f}/16"
f_str = frac_str(frac)
# Handle pure fraction (e.g. [13/16])
if feet == 0 and rem_in == 0 and f_str:
return f"[{f_str}]"
# Format components
if feet > 0:
if rem_in == 0 and not f_str:
return f"[{feet}]"
elif not f_str:
return f"[{feet}-{rem_in}]"
else:
return f"[{feet}-{rem_in} {f_str}]"
else:
if not f_str:
return f"[{rem_in}]"
else:
return f"[{rem_in} {f_str}]"
def draw_dimension_line(c, x0: float, y0: float, x1: float, y1: float, text_val: str):
"""Draws a dimension line with architectural tick marks and stacked metric/imperial text."""
c.saveState()
c.setStrokeColor(colors.black)
c.setLineWidth(0.5)
# Draw main line
c.line(x0, y0, x1, y1)
# Draw architectural ticks (45 degree short lines)
tick_len = 4
for px, py in [(x0, y0), (x1, y1)]:
c.line(px - tick_len, py - tick_len, px + tick_len, py + tick_len)
# Process text value to extract inches
try:
if '"' in text_val:
inches = float(text_val.replace('"', '').strip())
else:
inches = float(text_val)
except ValueError:
inches = 0.0
# If valid dimension, calculate metric (cm) and imperial
if inches > 0:
cm_val = inches * 2.54
metric_str = f"{cm_val:.2f}"
imperial_str = format_imperial_arch(inches)
c.setFont("Helvetica", 5.0)
c.setFillColor(colors.black)
# Horizontal dimension
if abs(y1 - y0) < 1.0:
cx = (x0 + x1) / 2
cy = y0
c.drawCentredString(cx, cy + 2, metric_str)
c.drawCentredString(cx, cy - 6, imperial_str)
# Vertical dimension
else:
cx = x0
cy = (y0 + y1) / 2
c.translate(cx, cy)
c.rotate(90)
c.drawCentredString(0, 2, metric_str)
c.drawCentredString(0, -6, imperial_str)
c.restoreState()
def _draw_unit_pages(c, config: dict, unit_type: str, schedule,
start_page_num: int, total_pages: int) -> int:
"""Draw pages for a unit type: CAD Title Block, Schedule."""
is_ada = "ACC" in unit_type or "ADA" in unit_type
page_num = start_page_num
# If no schedule, just print empty message
if not schedule:
_draw_page_border(c)
_draw_title_block(c, config, page_num, total_pages, f"UNIT {unit_type}")
c.setFillColor(colors.black)
c.setFont(_FONT_REG, 8)
c.drawString(DA_L + 20, DA_T - 28, "No AI schedule available — PDF not processed")
c.showPage()
page_num += 1
return page_num
# ---------------------------------------------------------
# PAGE 1: CAD DRAWING (Title Block Only, Content Merged Later)
# ---------------------------------------------------------
_draw_page_border(c)
_draw_title_block(c, config, page_num, total_pages, f"UNIT {unit_type}")
# We do NOT draw geometry manually here anymore.
# The PyPDF2 merge step in generate_shop_drawings will overlay the DXF PDF onto this page.
c.showPage()
page_num += 1
is_ada = "ACC" in unit_type or "ADA" in unit_type
# ---------------------------------------------------------
# PAGE 2: SCHEDULE
# ---------------------------------------------------------
_draw_page_border(c)
_draw_title_block(c, config, page_num, total_pages, f"UNIT {unit_type} SCHEDULE")
# Page header
# Page header for the schedule
c.setFillColor(NAVY)
c.setFont(_FONT_BOLD, 12)
c.drawString(DA_L + 4, DA_T - 18, f"UNIT {unit_type} — CABINET SCHEDULE & LAYOUTS")
# Render Geometries from GeometryEngine on the Left
wall_length_inches = 90.0
if schedule:
from core.geometry_engine import GeometryEngine
# Build walls for GeometryEngine
walls_info = []
for ev in schedule.elevations:
cabs_list = []
base_x = 0
for cab in ev.cabinets:
w_in = round(cab.width_mm / 25.4)
h_in = round(cab.height_mm / 25.4)
cabs_list.append({
"id": cab.cabinet_id or cab.code,
"x": base_x,
"width": w_in,
"height": h_in,
"type": cab.cabinet_type,
"cabinet_type": cab.cabinet_type
})
base_x += w_in
wall_name = ev.elevation_label.replace("ELEVATION ", "").strip()
if wall_name.upper() in ("KITCHEN", "BATH", "VANITY", "MASTER_BATH"):
wall_name = "A"
walls_info.append({
"name": wall_name,
"length": max(90.0, base_x),
"cabinets": cabs_list
})
if not walls_info:
walls_info.append({
"name": "A",
"length": 90.0,
"cabinets": []
})
geom_engine = GeometryEngine()
ceiling_height = 108.0
for ev in schedule.elevations:
if ev.ceiling_height_in is not None:
ceiling_height = ev.ceiling_height_in
break
geom_data = geom_engine.generate_layout_geometry(
walls = walls_info,
appliances = [],
ceiling_height = ceiling_height,
soffit_height = ceiling_height - 12.0
)
# Left visual drawings area: X from 40 to 460 (width 420 pt).
# We reserve 280 pt for plan/elevation width, and the rest for side view.
visual_width_allowed = 280.0
# Calculate total width of all walls including 100pt spacing (which is 25 inches)
total_length_inches = sum(w.get("length", 90.0) for w in walls_info) + (len(walls_info) - 1) * 25.0
wall_length_inches = total_length_inches
draw_scale = 1.0
if wall_length_inches * 4.0 > visual_width_allowed:
draw_scale = visual_width_allowed / (wall_length_inches * 4.0)
GE_PLAN_OX = 250.0
GE_PLAN_OY = 450.0
GE_ELEV_OX = 250.0
GE_ELEV_OY = 150.0
GE_SIDE_OX = 250.0
GE_SIDE_OY = 150.0
PDF_PLAN_OX = 50.0
PDF_PLAN_OY = 580.0
PDF_ELEV_OX = 50.0
PDF_ELEV_OY = 180.0
PDF_SIDE_OX = 370.0
PDF_SIDE_OY = 180.0
# --- Draw Plan View ---
for line in geom_data.get("plan", {}).get("lines", []):
x0 = (line["start"][0] - GE_PLAN_OX) * draw_scale + PDF_PLAN_OX
y0 = (line["start"][1] - GE_PLAN_OY) * draw_scale + PDF_PLAN_OY
x1 = (line["end"][0] - GE_PLAN_OX) * draw_scale + PDF_PLAN_OX
y1 = (line["end"][1] - GE_PLAN_OY) * draw_scale + PDF_PLAN_OY
c.saveState()
c.setStrokeColor(NAVY if line.get("layer") == "WALLS" else colors.black)
c.setLineWidth(1.5 if line.get("layer") == "WALLS" else 0.5)
if line.get("style") == "dashed":
c.setDash([2, 2])
c.line(x0, y0, x1, y1)
c.restoreState()
for block in geom_data.get("plan", {}).get("blocks", []):
x, y, w, h = block["coords"]
x_new = (x - GE_PLAN_OX) * draw_scale + PDF_PLAN_OX
y_new = (y - GE_PLAN_OY) * draw_scale + PDF_PLAN_OY
w_new = w * draw_scale
h_new = h * draw_scale
c.saveState()
c.setStrokeColor(colors.black)
c.setFillColor(colors.white)
if block.get("style") == "dashed":
c.setDash([2, 2])
c.rect(x_new, y_new, w_new, h_new, fill=1, stroke=1)
c.restoreState()
for txt in geom_data.get("plan", {}).get("texts", []):
pos_x = (txt["pos"][0] - GE_PLAN_OX) * draw_scale + PDF_PLAN_OX
pos_y = (txt["pos"][1] - GE_PLAN_OY) * draw_scale + PDF_PLAN_OY
text_str = txt["text"]
c.saveState()
c.setFont(_FONT_REG, max(4.0, txt.get("size", 5.0) * draw_scale))
c.setFillColor(colors.black)
lines = text_str.split('\n')
for i, line_text in enumerate(lines):
c.drawCentredString(pos_x, pos_y - i * (max(4.0, txt.get("size", 5.0) * draw_scale) + 1), line_text)
c.restoreState()
for dim in geom_data.get("plan", {}).get("dimensions", []):
x0 = (dim["start"][0] - GE_PLAN_OX) * draw_scale + PDF_PLAN_OX
y0 = (dim["start"][1] - GE_PLAN_OY) * draw_scale + PDF_PLAN_OY
x1 = (dim["end"][0] - GE_PLAN_OX) * draw_scale + PDF_PLAN_OX
y1 = (dim["end"][1] - GE_PLAN_OY) * draw_scale + PDF_PLAN_OY
text_str = dim["text"]
c.saveState()
c.setStrokeColor(PENCIL_MEDIUM)
c.setLineWidth(0.5)
c.line(x0, y0, x1, y1)
c.line(x0, y0 - 3, x0, y0 + 3)
c.line(x1, y1 - 3, x1, y1 + 3)
c.setFont(_FONT_REG, 5.0)
c.setFillColor(PENCIL_MEDIUM)
c.drawCentredString((x0 + x1) / 2, (y0 + y1) / 2 + 4, text_str)
c.restoreState()
# --- Draw Elevation View ---
for line in geom_data.get("elevation", {}).get("lines", []):
x0 = (line["start"][0] - GE_ELEV_OX) * draw_scale + PDF_ELEV_OX
y0 = (line["start"][1] - GE_ELEV_OY) * draw_scale + PDF_ELEV_OY
x1 = (line["end"][0] - GE_ELEV_OX) * draw_scale + PDF_ELEV_OX
y1 = (line["end"][1] - GE_ELEV_OY) * draw_scale + PDF_ELEV_OY
c.saveState()
c.setStrokeColor(NAVY if line.get("layer") in ("GROUND", "CEILING") else colors.black)
c.setLineWidth(1.0 if line.get("layer") in ("GROUND", "CEILING") else 0.5)
if line.get("style") == "dashed":
c.setDash([2, 2])
c.line(x0, y0, x1, y1)
c.restoreState()
for block in geom_data.get("elevation", {}).get("blocks", []):
x, y, w, h = block["coords"]
x_new = (x - GE_ELEV_OX) * draw_scale + PDF_ELEV_OX
y_new = (y - GE_ELEV_OY) * draw_scale + PDF_ELEV_OY
w_new = w * draw_scale
h_new = h * draw_scale
c.saveState()
c.setStrokeColor(colors.black)
c.setFillColor(colors.white)
if block.get("style") == "dashed":
c.setDash([2, 2])
c.rect(x_new, y_new, w_new, h_new, fill=1, stroke=1)
c.restoreState()
for txt in geom_data.get("elevation", {}).get("texts", []):
pos_x = (txt["pos"][0] - GE_ELEV_OX) * draw_scale + PDF_ELEV_OX
pos_y = (txt["pos"][1] - GE_ELEV_OY) * draw_scale + PDF_ELEV_OY
text_str = txt["text"]
c.saveState()
c.setFont(_FONT_REG, max(4.0, txt.get("size", 5.0) * draw_scale))
c.setFillColor(colors.black)
lines = text_str.split('\n')
for i, line_text in enumerate(lines):
c.drawCentredString(pos_x, pos_y - i * (max(4.0, txt.get("size", 5.0) * draw_scale) + 1), line_text)
c.restoreState()
for dim in geom_data.get("elevation", {}).get("dimensions", []):
x0 = (dim["start"][0] - GE_ELEV_OX) * draw_scale + PDF_ELEV_OX
y0 = (dim["start"][1] - GE_ELEV_OY) * draw_scale + PDF_ELEV_OY
x1 = (dim["end"][0] - GE_ELEV_OX) * draw_scale + PDF_ELEV_OX
y1 = (dim["end"][1] - GE_ELEV_OY) * draw_scale + PDF_ELEV_OY
text_str = dim["text"]
c.saveState()
c.setStrokeColor(PENCIL_MEDIUM)
c.setLineWidth(0.5)
c.line(x0, y0, x1, y1)
c.line(x0 - 3, y0, x0 + 3, y0)
c.line(x1 - 3, y1, x1 + 3, y1)
c.setFont(_FONT_REG, 5.0)
c.setFillColor(PENCIL_MEDIUM)
c.drawCentredString((x0 + x1) / 2, (y0 + y1) / 2 + 4, text_str)
c.restoreState()
# --- Draw Side View (Section) ---
for line in geom_data.get("side", {}).get("lines", []):
x0 = (line["start"][0] - GE_SIDE_OX) * draw_scale + PDF_SIDE_OX
y0 = (line["start"][1] - GE_SIDE_OY) * draw_scale + PDF_SIDE_OY
x1 = (line["end"][0] - GE_SIDE_OX) * draw_scale + PDF_SIDE_OX
y1 = (line["end"][1] - GE_SIDE_OY) * draw_scale + PDF_SIDE_OY
c.saveState()
c.setStrokeColor(NAVY if line.get("layer") in ("GROUND", "CEILING", "WALLS") else colors.black)
c.setLineWidth(1.0 if line.get("layer") in ("GROUND", "CEILING", "WALLS") else 0.5)
if line.get("style") == "dashed":
c.setDash([2, 2])
c.line(x0, y0, x1, y1)
c.restoreState()
for block in geom_data.get("side", {}).get("blocks", []):
x, y, w, h = block["coords"]
x_new = (x - GE_SIDE_OX) * draw_scale + PDF_SIDE_OX
y_new = (y - GE_SIDE_OY) * draw_scale + PDF_SIDE_OY
w_new = w * draw_scale
h_new = h * draw_scale
c.saveState()
c.setStrokeColor(colors.black)
c.setFillColor(colors.white)
if block.get("style") == "dashed":
c.setDash([2, 2])
c.rect(x_new, y_new, w_new, h_new, fill=1, stroke=1)
c.restoreState()
for txt in geom_data.get("side", {}).get("texts", []):
pos_x = (txt["pos"][0] - GE_SIDE_OX) * draw_scale + PDF_SIDE_OX
pos_y = (txt["pos"][1] - GE_SIDE_OY) * draw_scale + PDF_SIDE_OY
text_str = txt["text"]
c.saveState()
c.setFont(_FONT_REG, max(4.0, txt.get("size", 5.0) * draw_scale))
c.setFillColor(colors.black)
lines = text_str.split('\n')
for i, line_text in enumerate(lines):
c.drawCentredString(pos_x, pos_y - i * (max(4.0, txt.get("size", 5.0) * draw_scale) + 1), line_text)
c.restoreState()
for dim in geom_data.get("side", {}).get("dimensions", []):
x0 = (dim["start"][0] - GE_SIDE_OX) * draw_scale + PDF_SIDE_OX
y0 = (dim["start"][1] - GE_SIDE_OY) * draw_scale + PDF_SIDE_OY
x1 = (dim["end"][0] - GE_SIDE_OX) * draw_scale + PDF_SIDE_OX
y1 = (dim["end"][1] - GE_SIDE_OY) * draw_scale + PDF_SIDE_OY
text_str = dim["text"]
c.saveState()
c.setStrokeColor(PENCIL_MEDIUM)
c.setLineWidth(0.5)
c.line(x0, y0, x1, y1)
if abs(x0 - x1) < 0.1: # Vertical dimension
c.line(x0 - 3, y0, x0 + 3, y0)
c.line(x1 - 3, y1, x1 + 3, y1)
c.setFont(_FONT_REG, 4.5)
c.setFillColor(PENCIL_MEDIUM)
c.drawRightString(x0 - 4, (y0 + y1) / 2 - 1.5, text_str)
else: # Horizontal dimension
c.line(x0, y0 - 3, x0, y0 + 3)
c.line(x1, y1 - 3, x1, y1 + 3)
c.setFont(_FONT_REG, 4.5)
c.setFillColor(PENCIL_MEDIUM)
c.drawCentredString((x0 + x1) / 2, (y0 + y1) / 2 + 4, text_str)
c.restoreState()
# Draw labels
c.saveState()
c.setFont(_FONT_BOLD, 8)
c.setFillColor(NAVY)
plan_w = wall_length_inches * 4.0 * draw_scale
c.drawCentredString(PDF_PLAN_OX + plan_w / 2, PDF_PLAN_OY - 35, "COUNTERTOP PLAN VIEW")
c.drawCentredString(PDF_ELEV_OX + plan_w / 2, PDF_ELEV_OY - 20, "FRONT ELEVATION VIEW")
c.drawCentredString(PDF_SIDE_OX + 30.0 * 4.0 * draw_scale / 2, PDF_SIDE_OY - 20, "SIDE SECTION VIEW")
c.restoreState()
# --- Draw Cabinet Schedule Table on the Right ---
c.drawString(DA_L + 4, DA_T - 18, f"UNIT {unit_type} - CABINET SCHEDULE")
c.setFont(_FONT_REG, 8)
c.setFillColor(colors.black)
labels = [
@@ -998,124 +849,265 @@ def _draw_unit_page(c: canvas.Canvas, config: dict, unit_type: str, schedule,
("FINISH:", f"Standard {config.get('finish_tier', 1)}"),
("ADA:", "YES (Fully Accessible)" if is_ada else "NO (FHA Type B)"),
]
y = DA_T - 30
y = DA_T - 40
for label, val in labels:
c.setFont(_FONT_BOLD, 7)
c.drawString(490.0, y, label)
c.drawString(50.0, y, label)
c.setFont(_FONT_REG, 7)
c.drawString(550.0, y, val)
c.drawString(110.0, y, val)
y -= 10
col_widths = [25, 60, 180, 70, 40, 40, 40, 30, 60, 110]
headers = ["#", "Code", "Description", "Type",
"W(in)", "H(in)", "D(in)", "Qty", "Elev.", "Location"]
table_x = 490.0
table_x = 50.0
table_y = y - 8
# Header row
c.setFillColor(LTGRAY)
c.rect(table_x, table_y - 12, sum(col_widths), 12, fill=1, stroke=0)
c.setFillColor(NAVY)
c.setFont(_FONT_BOLD, 6.5)
x_pos = table_x
for w, h in zip(col_widths, headers):
c.drawCentredString(x_pos + w / 2, table_y - 8, h)
x_pos += w
c.rect(table_x, table_y, sum(col_widths), 12, fill=1, stroke=1)
c.setFillColor(colors.black)
c.setFont(_FONT_BOLD, 6)
cx = table_x
for i, hw in enumerate(col_widths):
c.drawString(cx + 4, table_y + 4, headers[i])
cx += hw
if not schedule:
c.setFillColor(colors.black)
c.setFont(_FONT_REG, 8)
c.drawString(table_x + 4, table_y - 28, "No AI schedule available — PDF not processed")
return
all_cabs = schedule.all_cabinets
kitchen_cabs = [cab for cab in all_cabs
if cab.cabinet_type not in ("vanity", "medicine_cabinet", "linen", "appliance_space")]
bath_cabs = [cab for cab in all_cabs
if cab.cabinet_type in ("vanity", "medicine_cabinet", "linen")]
row_y = table_y - 12
def draw_section(label, cabs, start_y):
y = start_y
y -= 14
c.setFillColor(LTGRAY)
c.rect(table_x, y, sum(col_widths), 11, fill=1, stroke=0)
c.setFillColor(NAVY)
c.setFont(_FONT_BOLD, 7)
c.drawString(table_x + 3, y + 3, label)
alt = False
item_count = 0
qty_total = 0
for item_num, cab in enumerate(cabs, 1):
# Rows
y = table_y - 12
c.setFont(_FONT_REG, 6)
idx = 1
for ev in schedule.elevations:
for cab in ev.cabinets:
cx = table_x
# #
c.drawString(cx + 4, y + 4, str(idx))
cx += col_widths[0]
# Code
c.drawString(cx + 4, y + 4, str(cab.cabinet_id))
cx += col_widths[1]
# Description
notes_str = getattr(cab, 'notes', '') or ''
desc = notes_str[:40] + "..." if len(notes_str) > 40 else notes_str
c.drawString(cx + 4, y + 4, desc)
cx += col_widths[2]
# Type
c.drawString(cx + 4, y + 4, str(cab.cabinet_type))
cx += col_widths[3]
# W, H, D
w_in = round(cab.width_in, 1) if hasattr(cab, 'width_in') else "-"
h_in = round(cab.height_in, 1) if hasattr(cab, 'height_in') else "-"
d_in = round(cab.depth_in, 1) if hasattr(cab, 'depth_in') else "-"
c.drawString(cx + 4, y + 4, str(w_in))
cx += col_widths[4]
c.drawString(cx + 4, y + 4, str(h_in))
cx += col_widths[5]
c.drawString(cx + 4, y + 4, str(d_in))
cx += col_widths[6]
# Qty
c.drawString(cx + 4, y + 4, str(cab.quantity))
cx += col_widths[7]
# Elev
c.drawString(cx + 4, y + 4, str(getattr(ev, 'elevation_label', '')))
cx += col_widths[8]
# Location
c.drawString(cx + 4, y + 4, str(cab.location))
y -= 12
if y < MARGIN + 20:
break
idx += 1
# Pagination
if y < DA_B + 20:
c.showPage()
_draw_page_border(c)
_draw_title_block(c, config, page_num, total_pages, f"UNIT {unit_type} SCHEDULE (CONT)")
page_num += 1
y = DA_T - 30
if alt:
c.setFillColor(LTGRAY)
c.rect(table_x, y, sum(col_widths), 12, fill=1, stroke=0)
alt = not alt
c.showPage()
page_num += 1
w_in = round(cab.width_mm / 25.4, 1)
h_in = round(cab.height_mm / 25.4, 1)
d_in = round(cab.depth_mm / 25.4, 1)
vals = [
str(item_num),
cab.code,
f"{cab.cabinet_type.replace('_', ' ').title()} {w_in}\"W",
cab.cabinet_type.replace("_", " ").title()[:12],
f"{w_in}\"",
f"{h_in}\"",
f"{d_in}\"",
str(cab.quantity),
(cab.elevation_ref or "")[:8],
(cab.location or "")[:18],
]
return page_num
def add_sections_to_pdf(c, config, sections_list, page_num, total_pages):
try:
from core.engines.section_generator import SectionGenerator
from reportlab.lib import colors
except ImportError:
return page_num
for section_spec in sections_list:
try:
section_geom = SectionGenerator.generate_section(
section_spec['type'],
width=section_spec.get('width', 84.0),
height=section_spec.get('height', 228.0)
)
except ValueError:
continue
c.showPage()
page_num += 1
_draw_title_block(c, config, page_num, total_pages, section_geom['title'])
_draw_page_border(c)
c.setFont("Helvetica", 8)
c.setFillColor(colors.black)
for i, callout in enumerate(section_geom.get('callouts', [])):
y_pos = PAGE_H - 100 - (i * 15)
c.drawString(100, y_pos, f"• {callout}")
geom = section_geom['geometry']
draw_scale = 1.5
PDF_OX, PDF_OY = 300, 200
for line in geom.get("lines", []):
x0 = line["start"][0] * draw_scale + PDF_OX
y0 = line["start"][1] * draw_scale + PDF_OY
x1 = line["end"][0] * draw_scale + PDF_OX
y1 = line["end"][1] * draw_scale + PDF_OY
c.setStrokeColor(colors.black)
c.setLineWidth(1.0 if line.get("layer") == "SECTION" else 0.5)
c.line(x0, y0, x1, y1)
for block in geom.get("blocks", []):
x, y, w, h = block["coords"]
x_new = x * draw_scale + PDF_OX
y_new = y * draw_scale + PDF_OY
w_new = w * draw_scale
h_new = h * draw_scale
c.setStrokeColor(colors.black)
c.setFillColor(colors.white)
c.rect(x_new, y_new, w_new, h_new, fill=1, stroke=1)
for txt in geom.get("texts", []):
pos_x = txt["pos"][0] * draw_scale + PDF_OX
pos_y = txt["pos"][1] * draw_scale + PDF_OY
c.setFont("Helvetica-Bold" if txt.get("bold") else "Helvetica", txt.get("size", 5.0) * draw_scale)
c.setFillColor(colors.black)
x_pos = table_x
for i, (w, v) in enumerate(zip(col_widths, vals)):
c.setFont(_FONT_BOLD if i == 1 else _FONT_REG, 6)
if i in (4, 5, 6, 7):
c.drawCentredString(x_pos + w / 2, y + 3, v)
if txt.get("align") == "center":
c.drawCentredString(pos_x, pos_y, txt["text"])
else:
c.drawString(pos_x, pos_y, txt["text"])
for dim in geom.get("dimensions", []):
x0 = dim["start"][0] * draw_scale + PDF_OX
y0 = dim["start"][1] * draw_scale + PDF_OY
x1 = dim["end"][0] * draw_scale + PDF_OX
y1 = dim["end"][1] * draw_scale + PDF_OY
draw_dimension_line(c, x0, y0, x1, y1, dim.get("text", str(dim.get("value", ""))))
return page_num
def add_parts_lists_to_pdf(c, config, page_num, total_pages):
try:
from core.engines.parts_list_generator import PartsListGenerator
from reportlab.lib import colors
except ImportError:
return page_num
parts_sheets = PartsListGenerator.generate_all_parts_sheets(config)
MARGIN = 50
RECT_W = 120
RECT_H = 120
SPACING = 30
COLS = 5
for sheet in parts_sheets:
c.showPage()
page_num += 1
_draw_title_block(c, config, page_num, total_pages, sheet['title'])
_draw_page_border(c)
c.setFont("Helvetica-Bold", 14)
c.setFillColor(colors.black)
c.drawString(MARGIN, PAGE_H - 80, f"PARTS BY {sheet['title']}")
c.setFont("Helvetica", 8)
c.drawString(MARGIN, PAGE_H - 95, 'SCALE 1/2" = 1\'-0"')
y_offset = PAGE_H - 140
for layout in sheet.get('page_layout', []):
if y_offset < 200: # Need new page
c.showPage()
page_num += 1
_draw_title_block(c, config, page_num, total_pages, sheet['title'])
_draw_page_border(c)
y_offset = PAGE_H - 100
c.setFont("Helvetica-Bold", 11)
c.drawString(MARGIN, y_offset, f"SECTION: {layout['section']}")
y_offset -= 30
x_pos = MARGIN
y_pos = y_offset
col_count = 0
for part in layout.get('parts', []):
_draw_part_rectangle(c, x_pos, y_pos - RECT_H, RECT_W, RECT_H, part)
col_count += 1
if col_count >= COLS:
x_pos = MARGIN
y_pos -= (RECT_H + SPACING + 20)
col_count = 0
else:
c.drawString(x_pos + 2, y + 3, v)
x_pos += w
x_pos += (RECT_W + SPACING)
if col_count != 0:
y_pos -= (RECT_H + SPACING + 20)
y_offset = y_pos - 10
return page_num
# Row divider
c.setStrokeColor(colors.lightgrey)
c.setLineWidth(0.2)
c.line(table_x, y, table_x + sum(col_widths), y)
item_count += 1
qty_total += cab.quantity
# Subtotal row
y -= 12
c.setFillColor(LTGRAY)
c.rect(table_x, y, sum(col_widths), 12, fill=1, stroke=0)
c.setFillColor(NAVY)
c.setFont(_FONT_BOLD, 7)
c.drawString(table_x + 3, y + 3, f"{label} SUBTOTAL")
c.drawRightString(table_x + sum(col_widths[:8]), y + 3, str(qty_total))
return y
row_y = draw_section("SECTION 1 — KITCHEN CABINETS", kitchen_cabs, row_y)
if row_y and row_y > MARGIN + 60:
row_y = draw_section("SECTION 2 — BATHROOM CABINETS", bath_cabs, row_y - 4)
# Table border
c.setStrokeColor(NAVY)
c.setLineWidth(0.75)
c.rect(table_x, row_y if row_y else MARGIN + 20, sum(col_widths),
table_y - (row_y if row_y else MARGIN + 20), fill=0, stroke=1)
# ══════════════════════════════════════════════════════════════════════════
# MAIN ENTRY POINT
# ══════════════════════════════════════════════════════════════════════════
def _draw_part_rectangle(c, x, y, width, height, part):
from reportlab.lib import colors
c.setStrokeColor(colors.black)
c.rect(x, y, width, height, stroke=1, fill=0)
c.setLineWidth(0.5)
# Top dimension line
c.line(x + 5, y + height + 5, x + width - 5, y + height + 5)
c.line(x + 5, y + height + 2, x + 5, y + height + 8)
c.line(x + width - 5, y + height + 2, x + width - 5, y + height + 8)
c.setFont("Helvetica", 7)
c.drawCentredString(x + width / 2, y + height + 10, f'{part.width_in}" W ({part.width_mm:.0f} mm)')
# Left dimension line
c.line(x - 5, y + 5, x - 5, y + height - 5)
c.line(x - 8, y + 5, x - 2, y + 5)
c.line(x - 8, y + height - 5, x - 2, y + height - 5)
c.saveState()
c.translate(x - 12, y + height / 2)
c.rotate(90)
c.drawCentredString(0, 0, f'{part.height_in}" H ({part.height_mm:.0f} mm)')
c.restoreState()
# Details
c.setFont("Helvetica-Bold", 14)
c.drawCentredString(x + width / 2, y + height / 2 + 20, str(part.part_id))
c.setFont("Helvetica", 8)
c.drawCentredString(x + width / 2, y + height / 2 + 5, f"({part.quantity}x)")
c.setFont("Helvetica", 7)
c.drawCentredString(x + width / 2, y + height / 2 - 10, str(part.material))
c.drawCentredString(x + width / 2, y + height / 2 - 20, str(part.finish))
if hasattr(part, 'edge_banding') and part.edge_banding:
c.setFont("Helvetica-Oblique", 6)
c.drawCentredString(x + width / 2, y + 5, f"Edge: {part.edge_banding}")
def generate_shop_drawings(
config: dict,
@@ -1124,21 +1116,25 @@ def generate_shop_drawings(
output_path: str | Path,
) -> Path:
"""
Generate the complete shop drawing PDF.
Args:
config: project_config.json dict
unit_schedules: {unit_type: UnitSchedule} from pipeline
unit_totals: {unit_type: count} unit quantities
output_path: where to save the PDF
Generate the complete shop drawing PDF by stamping DXF PDFs onto title block pages.
"""
import tempfile
import os
from pathlib import Path
from reportlab.pdfgen import canvas
from pypdf import PdfWriter, PdfReader, Transformation
output_path = Path(output_path)
output_path.parent.mkdir(parents=True, exist_ok=True)
# Calculate total pages: cover + matrix + one per unit type
total_pages = 2 + len(unit_totals)
# Estimate total pages (can be imprecise, it's just for PAGE X OF Y)
total_pages = 2 + len(unit_totals) * 2
c = canvas.Canvas(str(output_path), pagesize=(PAGE_W, PAGE_H))
# 1. Create temporary reportlab PDF with title blocks and schedules
fd, temp_path = tempfile.mkstemp(suffix=".pdf")
os.close(fd)
c = canvas.Canvas(temp_path, pagesize=(PAGE_W, PAGE_H))
c.setTitle(f"Cabinet Shop Drawings — {config.get('project_name', 'Project')}")
c.setAuthor("Italian Kitchen and Bath — AI Estimation System")
@@ -1151,15 +1147,78 @@ def generate_shop_drawings(
c.showPage()
# Pages 3+: Unit schedules
for page_num, unit_type in enumerate(unit_totals.keys(), 3):
page_num = 3
# Keep track of which reportlab page index corresponds to a unit's CAD drawing
# page_num is 1-indexed. The Cover is page 1 (index 0). Matrix is page 2 (index 1).
# The first unit's CAD page will be page 3 (index 2).
cad_page_mapping = {}
for unit_type in unit_totals.keys():
schedule = unit_schedules.get(unit_type)
_draw_unit_page(c, config, unit_type, schedule, page_num, total_pages)
c.showPage()
cad_page_mapping[page_num - 1] = unit_type
page_num = _draw_unit_pages(c, config, unit_type, schedule, page_num, total_pages)
sections_list = [
{'type': 'kitchen_base'},
{'type': 'kitchen_upper'},
{'type': 'kitchen_pantry'},
{'type': 'vanity_standard'},
{'type': 'vanity_ada'}
]
page_num = add_sections_to_pdf(c, config, sections_list, page_num, total_pages)
page_num = add_parts_lists_to_pdf(c, config, page_num, total_pages)
c.save()
print(f" [SUCCESS] Shop drawing PDF saved: {output_path} ({total_pages} pages)")
return output_path
# 2. Merge DXF PDFs onto the Title Block pages using PyPDF2
writer = PdfWriter()
reader_base = PdfReader(temp_path)
dxf_dir = output_path.parent / "dxf"
for page_idx, base_page in enumerate(reader_base.pages):
if page_idx in cad_page_mapping:
unit_type = cad_page_mapping[page_idx]
dxf_pdf_path = dxf_dir / f"{unit_type.replace(' ', '_')}.pdf"
if dxf_pdf_path.exists():
reader_dxf = PdfReader(dxf_pdf_path)
if len(reader_dxf.pages) > 0:
dxf_page = reader_dxf.pages[0]
# Calculate translation to center the DXF perfectly inside the drawing area
# Drawing area limits: DA_L=50, DA_R=1134, DA_B=50, DA_T=742
da_w = 1134 - 50
da_h = 742 - 50
tx = 50 + (da_w - float(dxf_page.mediabox.width)) / 2
ty = 50 + (da_h - float(dxf_page.mediabox.height)) / 2
op = Transformation().translate(tx, ty)
dxf_page.add_transformation(op)
# Fix PyPDF clipping issue by expanding the mediabox before merging
dxf_page.mediabox = base_page.mediabox
dxf_page.cropbox = base_page.cropbox
base_page.merge_page(dxf_page)
else:
print(f" [WARN] DXF PDF for {unit_type} has no pages.")
else:
print(f" [WARN] DXF PDF not found for {unit_type}: {dxf_pdf_path}")
writer.add_page(base_page)
with open(output_path, "wb") as f:
writer.write(f)
try:
os.remove(temp_path)
except:
pass
print(f" [SUCCESS] Shop drawing PDF saved: {output_path} ({len(reader_base.pages)} pages)")
return output_path
# ══════════════════════════════════════════════════════════════════════════
# CLI TEST
File diff suppressed because it is too large Load Diff
Binary file not shown.
File diff suppressed because it is too large Load Diff
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large Load Diff
Binary file not shown.
File diff suppressed because it is too large Load Diff
Binary file not shown.
File diff suppressed because it is too large Load Diff
Binary file not shown.
@@ -22,9 +22,9 @@
{
"item_num": 1,
"cabinet_type": "upper_wall",
"width_mm": 900,
"height_mm": 762.0,
"depth_mm": 330.0,
"width_in": 35.43,
"height_in": 30.0,
"depth_in": 12.99,
"location": "Left of microwave shelf, top row, Elevation 1",
"elevation_ref": "UNIT A1 KITCHEN EL.",
"confidence": 0.9,
@@ -36,9 +36,9 @@
{
"item_num": 2,
"cabinet_type": "microwave_shelf",
"width_mm": 762.0,
"height_mm": 380.0,
"depth_mm": 330.0,
"width_in": 30.0,
"height_in": 14.96,
"depth_in": 12.99,
"location": "Above range, Elevation 1",
"elevation_ref": "UNIT A1 KITCHEN EL.",
"confidence": 0.9,
@@ -50,9 +50,9 @@
{
"item_num": 3,
"cabinet_type": "upper_wall",
"width_mm": 762.0,
"height_mm": 762.0,
"depth_mm": 330.0,
"width_in": 30.0,
"height_in": 30.0,
"depth_in": 12.99,
"location": "Right of microwave shelf, top row, Elevation 1",
"elevation_ref": "UNIT A1 KITCHEN EL.",
"confidence": 0.9,
@@ -64,9 +64,9 @@
{
"item_num": 4,
"cabinet_type": "appliance_space",
"width_mm": 762.0,
"height_mm": 900.0,
"depth_mm": 600.0,
"width_in": 30.0,
"height_in": 35.43,
"depth_in": 23.62,
"location": "Range space, Elevation 1",
"elevation_ref": "UNIT A1 KITCHEN EL.",
"confidence": 0.95,
@@ -78,9 +78,9 @@
{
"item_num": 5,
"cabinet_type": "base",
"width_mm": 900,
"height_mm": 720.0,
"depth_mm": 600.0,
"width_in": 35.43,
"height_in": 28.35,
"depth_in": 23.62,
"location": "Left of range, Elevation 1",
"elevation_ref": "UNIT A1 KITCHEN EL.",
"confidence": 0.9,
@@ -92,9 +92,9 @@
{
"item_num": 6,
"cabinet_type": "base",
"width_mm": 762.0,
"height_mm": 720.0,
"depth_mm": 600.0,
"width_in": 30.0,
"height_in": 28.35,
"depth_in": 23.62,
"location": "Right of range, Elevation 1",
"elevation_ref": "UNIT A1 KITCHEN EL.",
"confidence": 0.9,
@@ -106,9 +106,9 @@
{
"item_num": 7,
"cabinet_type": "appliance_space",
"width_mm": 762.0,
"height_mm": 1700.0,
"depth_mm": 600.0,
"width_in": 30.0,
"height_in": 66.93,
"depth_in": 23.62,
"location": "Refrigerator space, Elevation 1",
"elevation_ref": "UNIT A1 KITCHEN EL.",
"confidence": 0.95,
@@ -120,9 +120,9 @@
{
"item_num": 8,
"cabinet_type": "pantry",
"width_mm": 300.0,
"height_mm": 2130.0,
"depth_mm": 600.0,
"width_in": 11.81,
"height_in": 83.86,
"depth_in": 23.62,
"location": "Right of refrigerator, Elevation 1",
"elevation_ref": "UNIT A1 KITCHEN EL.",
"confidence": 0.8,
@@ -134,9 +134,9 @@
{
"item_num": 9,
"cabinet_type": "upper_wall",
"width_mm": 900,
"height_mm": 762.0,
"depth_mm": 330.0,
"width_in": 35.43,
"height_in": 30.0,
"depth_in": 12.99,
"location": "Left of refrigerator, Elevation 1",
"elevation_ref": "UNIT A1 KITCHEN EL.",
"confidence": 0.85,
@@ -160,9 +160,9 @@
{
"item_num": 1,
"cabinet_type": "vanity",
"width_mm": 1880.0,
"height_mm": 870.0,
"depth_mm": 530.0,
"width_in": 74.02,
"height_in": 34.25,
"depth_in": 20.87,
"location": "Bathroom, left wall",
"elevation_ref": "A-6.00A",
"confidence": 0.8,
@@ -174,9 +174,9 @@
{
"item_num": 2,
"cabinet_type": "linen",
"width_mm": 600.0,
"height_mm": 2130.0,
"depth_mm": 600.0,
"width_in": 23.62,
"height_in": 83.86,
"depth_in": 23.62,
"location": "Bathroom, right of vanity",
"elevation_ref": "A-6.00A",
"confidence": 0.7,
@@ -22,9 +22,9 @@
{
"item_num": 1,
"cabinet_type": "upper_wall",
"width_mm": 900,
"height_mm": 762.0,
"depth_mm": 330.0,
"width_in": 35.43,
"height_in": 30.0,
"depth_in": 12.99,
"location": "Left of microwave shelf, top row, Elevation 1",
"elevation_ref": "UNIT A1 KITCHEN EL.",
"confidence": 0.9,
@@ -36,9 +36,9 @@
{
"item_num": 2,
"cabinet_type": "microwave_shelf",
"width_mm": 762.0,
"height_mm": 380.0,
"depth_mm": 330.0,
"width_in": 30.0,
"height_in": 14.96,
"depth_in": 12.99,
"location": "Above range, Elevation 1",
"elevation_ref": "UNIT A1 KITCHEN EL.",
"confidence": 0.9,
@@ -50,9 +50,9 @@
{
"item_num": 3,
"cabinet_type": "upper_wall",
"width_mm": 762.0,
"height_mm": 762.0,
"depth_mm": 330.0,
"width_in": 30.0,
"height_in": 30.0,
"depth_in": 12.99,
"location": "Right of microwave shelf, top row, Elevation 1",
"elevation_ref": "UNIT A1 KITCHEN EL.",
"confidence": 0.9,
@@ -64,9 +64,9 @@
{
"item_num": 4,
"cabinet_type": "appliance_space",
"width_mm": 762.0,
"height_mm": 900.0,
"depth_mm": 600.0,
"width_in": 30.0,
"height_in": 35.43,
"depth_in": 23.62,
"location": "Range space, Elevation 1",
"elevation_ref": "UNIT A1 KITCHEN EL.",
"confidence": 0.95,
@@ -78,9 +78,9 @@
{
"item_num": 5,
"cabinet_type": "base",
"width_mm": 900,
"height_mm": 864.0,
"depth_mm": 600.0,
"width_in": 35.43,
"height_in": 34.02,
"depth_in": 23.62,
"location": "Left of range, Elevation 1",
"elevation_ref": "UNIT A1 KITCHEN EL.",
"confidence": 0.9,
@@ -92,9 +92,9 @@
{
"item_num": 6,
"cabinet_type": "base",
"width_mm": 762.0,
"height_mm": 864.0,
"depth_mm": 600.0,
"width_in": 30.0,
"height_in": 34.02,
"depth_in": 23.62,
"location": "Right of range, Elevation 1",
"elevation_ref": "UNIT A1 KITCHEN EL.",
"confidence": 0.9,
@@ -106,9 +106,9 @@
{
"item_num": 7,
"cabinet_type": "appliance_space",
"width_mm": 762.0,
"height_mm": 1700.0,
"depth_mm": 600.0,
"width_in": 30.0,
"height_in": 66.93,
"depth_in": 23.62,
"location": "Refrigerator space, Elevation 1",
"elevation_ref": "UNIT A1 KITCHEN EL.",
"confidence": 0.95,
@@ -120,9 +120,9 @@
{
"item_num": 8,
"cabinet_type": "pantry",
"width_mm": 300.0,
"height_mm": 2130.0,
"depth_mm": 600.0,
"width_in": 11.81,
"height_in": 83.86,
"depth_in": 23.62,
"location": "Right of refrigerator, Elevation 1",
"elevation_ref": "UNIT A1 KITCHEN EL.",
"confidence": 0.8,
@@ -134,9 +134,9 @@
{
"item_num": 9,
"cabinet_type": "upper_wall",
"width_mm": 900,
"height_mm": 762.0,
"depth_mm": 330.0,
"width_in": 35.43,
"height_in": 30.0,
"depth_in": 12.99,
"location": "Left of refrigerator, Elevation 1",
"elevation_ref": "UNIT A1 KITCHEN EL.",
"confidence": 0.85,
@@ -160,9 +160,9 @@
{
"item_num": 1,
"cabinet_type": "vanity",
"width_mm": 1880.0,
"height_mm": 864.0,
"depth_mm": 530.0,
"width_in": 74.02,
"height_in": 34.02,
"depth_in": 20.87,
"location": "Bathroom, left wall",
"elevation_ref": "A-6.00A",
"confidence": 0.8,
@@ -174,9 +174,9 @@
{
"item_num": 2,
"cabinet_type": "linen",
"width_mm": 600.0,
"height_mm": 2130.0,
"depth_mm": 600.0,
"width_in": 23.62,
"height_in": 83.86,
"depth_in": 23.62,
"location": "Bathroom, right of vanity",
"elevation_ref": "A-6.00A",
"confidence": 0.7,
@@ -22,9 +22,9 @@
{
"item_num": 1,
"cabinet_type": "upper_wall",
"width_mm": 900,
"height_mm": 762.0,
"depth_mm": 330.0,
"width_in": 35.43,
"height_in": 30.0,
"depth_in": 12.99,
"location": "Left of microwave shelf, top row, Elevation 1",
"elevation_ref": "UNIT A1 KITCHEN EL.",
"confidence": 0.9,
@@ -36,9 +36,9 @@
{
"item_num": 2,
"cabinet_type": "microwave_shelf",
"width_mm": 762.0,
"height_mm": 380.0,
"depth_mm": 330.0,
"width_in": 30.0,
"height_in": 14.96,
"depth_in": 12.99,
"location": "Above range, Elevation 1",
"elevation_ref": "UNIT A1 KITCHEN EL.",
"confidence": 0.9,
@@ -50,9 +50,9 @@
{
"item_num": 3,
"cabinet_type": "upper_wall",
"width_mm": 762.0,
"height_mm": 762.0,
"depth_mm": 330.0,
"width_in": 30.0,
"height_in": 30.0,
"depth_in": 12.99,
"location": "Right of microwave shelf, top row, Elevation 1",
"elevation_ref": "UNIT A1 KITCHEN EL.",
"confidence": 0.9,
@@ -64,9 +64,9 @@
{
"item_num": 4,
"cabinet_type": "appliance_space",
"width_mm": 762.0,
"height_mm": 900.0,
"depth_mm": 600.0,
"width_in": 30.0,
"height_in": 35.43,
"depth_in": 23.62,
"location": "Range space, Elevation 1",
"elevation_ref": "UNIT A1 KITCHEN EL.",
"confidence": 0.95,
@@ -78,9 +78,9 @@
{
"item_num": 5,
"cabinet_type": "base",
"width_mm": 900,
"height_mm": 720.0,
"depth_mm": 600.0,
"width_in": 35.43,
"height_in": 28.35,
"depth_in": 23.62,
"location": "Left of range, Elevation 1",
"elevation_ref": "UNIT A1 KITCHEN EL.",
"confidence": 0.9,
@@ -92,9 +92,9 @@
{
"item_num": 6,
"cabinet_type": "base",
"width_mm": 762.0,
"height_mm": 720.0,
"depth_mm": 600.0,
"width_in": 30.0,
"height_in": 28.35,
"depth_in": 23.62,
"location": "Right of range, Elevation 1",
"elevation_ref": "UNIT A1 KITCHEN EL.",
"confidence": 0.9,
@@ -106,9 +106,9 @@
{
"item_num": 7,
"cabinet_type": "appliance_space",
"width_mm": 762.0,
"height_mm": 1700.0,
"depth_mm": 600.0,
"width_in": 30.0,
"height_in": 66.93,
"depth_in": 23.62,
"location": "Refrigerator space, Elevation 1",
"elevation_ref": "UNIT A1 KITCHEN EL.",
"confidence": 0.95,
@@ -120,9 +120,9 @@
{
"item_num": 8,
"cabinet_type": "pantry",
"width_mm": 300.0,
"height_mm": 2130.0,
"depth_mm": 600.0,
"width_in": 11.81,
"height_in": 83.86,
"depth_in": 23.62,
"location": "Right of refrigerator, Elevation 1",
"elevation_ref": "UNIT A1 KITCHEN EL.",
"confidence": 0.8,
@@ -134,9 +134,9 @@
{
"item_num": 9,
"cabinet_type": "upper_wall",
"width_mm": 900,
"height_mm": 762.0,
"depth_mm": 330.0,
"width_in": 35.43,
"height_in": 30.0,
"depth_in": 12.99,
"location": "Left of refrigerator, Elevation 1",
"elevation_ref": "UNIT A1 KITCHEN EL.",
"confidence": 0.85,
@@ -160,9 +160,9 @@
{
"item_num": 1,
"cabinet_type": "vanity",
"width_mm": 1880.0,
"height_mm": 870.0,
"depth_mm": 530.0,
"width_in": 74.02,
"height_in": 34.25,
"depth_in": 20.87,
"location": "Bathroom, left wall",
"elevation_ref": "A-6.00A",
"confidence": 0.8,
@@ -174,9 +174,9 @@
{
"item_num": 2,
"cabinet_type": "linen",
"width_mm": 600.0,
"height_mm": 2130.0,
"depth_mm": 600.0,
"width_in": 23.62,
"height_in": 83.86,
"depth_in": 23.62,
"location": "Bathroom, right of vanity",
"elevation_ref": "A-6.00A",
"confidence": 0.7,
@@ -22,9 +22,9 @@
{
"item_num": 1,
"cabinet_type": "upper_wall",
"width_mm": 900,
"height_mm": 762.0,
"depth_mm": 330.0,
"width_in": 35.43,
"height_in": 30.0,
"depth_in": 12.99,
"location": "Left of microwave shelf, top row, Elevation 1",
"elevation_ref": "UNIT A1 KITCHEN EL.",
"confidence": 0.9,
@@ -36,9 +36,9 @@
{
"item_num": 2,
"cabinet_type": "microwave_shelf",
"width_mm": 762.0,
"height_mm": 380.0,
"depth_mm": 330.0,
"width_in": 30.0,
"height_in": 14.96,
"depth_in": 12.99,
"location": "Above range, Elevation 1",
"elevation_ref": "UNIT A1 KITCHEN EL.",
"confidence": 0.9,
@@ -50,9 +50,9 @@
{
"item_num": 3,
"cabinet_type": "upper_wall",
"width_mm": 762.0,
"height_mm": 762.0,
"depth_mm": 330.0,
"width_in": 30.0,
"height_in": 30.0,
"depth_in": 12.99,
"location": "Right of microwave shelf, top row, Elevation 1",
"elevation_ref": "UNIT A1 KITCHEN EL.",
"confidence": 0.9,
@@ -64,9 +64,9 @@
{
"item_num": 4,
"cabinet_type": "appliance_space",
"width_mm": 762.0,
"height_mm": 900.0,
"depth_mm": 600.0,
"width_in": 30.0,
"height_in": 35.43,
"depth_in": 23.62,
"location": "Range space, Elevation 1",
"elevation_ref": "UNIT A1 KITCHEN EL.",
"confidence": 0.95,
@@ -78,9 +78,9 @@
{
"item_num": 5,
"cabinet_type": "base",
"width_mm": 900,
"height_mm": 720.0,
"depth_mm": 600.0,
"width_in": 35.43,
"height_in": 28.35,
"depth_in": 23.62,
"location": "Left of range, Elevation 1",
"elevation_ref": "UNIT A1 KITCHEN EL.",
"confidence": 0.9,
@@ -92,9 +92,9 @@
{
"item_num": 6,
"cabinet_type": "base",
"width_mm": 762.0,
"height_mm": 720.0,
"depth_mm": 600.0,
"width_in": 30.0,
"height_in": 28.35,
"depth_in": 23.62,
"location": "Right of range, Elevation 1",
"elevation_ref": "UNIT A1 KITCHEN EL.",
"confidence": 0.9,
@@ -106,9 +106,9 @@
{
"item_num": 7,
"cabinet_type": "appliance_space",
"width_mm": 762.0,
"height_mm": 1700.0,
"depth_mm": 600.0,
"width_in": 30.0,
"height_in": 66.93,
"depth_in": 23.62,
"location": "Refrigerator space, Elevation 1",
"elevation_ref": "UNIT A1 KITCHEN EL.",
"confidence": 0.95,
@@ -120,9 +120,9 @@
{
"item_num": 8,
"cabinet_type": "pantry",
"width_mm": 300.0,
"height_mm": 2130.0,
"depth_mm": 600.0,
"width_in": 11.81,
"height_in": 83.86,
"depth_in": 23.62,
"location": "Right of refrigerator, Elevation 1",
"elevation_ref": "UNIT A1 KITCHEN EL.",
"confidence": 0.8,
@@ -134,9 +134,9 @@
{
"item_num": 9,
"cabinet_type": "upper_wall",
"width_mm": 900,
"height_mm": 762.0,
"depth_mm": 330.0,
"width_in": 35.43,
"height_in": 30.0,
"depth_in": 12.99,
"location": "Left of refrigerator, Elevation 1",
"elevation_ref": "UNIT A1 KITCHEN EL.",
"confidence": 0.85,
@@ -160,9 +160,9 @@
{
"item_num": 1,
"cabinet_type": "vanity",
"width_mm": 1880.0,
"height_mm": 870.0,
"depth_mm": 530.0,
"width_in": 74.02,
"height_in": 34.25,
"depth_in": 20.87,
"location": "Bathroom, left wall",
"elevation_ref": "A-6.00A",
"confidence": 0.8,
@@ -174,9 +174,9 @@
{
"item_num": 2,
"cabinet_type": "linen",
"width_mm": 600.0,
"height_mm": 2130.0,
"depth_mm": 600.0,
"width_in": 23.62,
"height_in": 83.86,
"depth_in": 23.62,
"location": "Bathroom, right of vanity",
"elevation_ref": "A-6.00A",
"confidence": 0.7,
@@ -22,9 +22,9 @@
{
"item_num": 1,
"cabinet_type": "upper_wall",
"width_mm": 900,
"height_mm": 762.0,
"depth_mm": 330.0,
"width_in": 35.43,
"height_in": 30.0,
"depth_in": 12.99,
"location": "Left of microwave shelf, top row, Elevation 1",
"elevation_ref": "UNIT A1 KITCHEN EL.",
"confidence": 0.9,
@@ -36,9 +36,9 @@
{
"item_num": 2,
"cabinet_type": "microwave_shelf",
"width_mm": 762.0,
"height_mm": 380.0,
"depth_mm": 330.0,
"width_in": 30.0,
"height_in": 14.96,
"depth_in": 12.99,
"location": "Above range, Elevation 1",
"elevation_ref": "UNIT A1 KITCHEN EL.",
"confidence": 0.9,
@@ -50,9 +50,9 @@
{
"item_num": 3,
"cabinet_type": "upper_wall",
"width_mm": 762.0,
"height_mm": 762.0,
"depth_mm": 330.0,
"width_in": 30.0,
"height_in": 30.0,
"depth_in": 12.99,
"location": "Right of microwave shelf, top row, Elevation 1",
"elevation_ref": "UNIT A1 KITCHEN EL.",
"confidence": 0.9,
@@ -64,9 +64,9 @@
{
"item_num": 4,
"cabinet_type": "appliance_space",
"width_mm": 762.0,
"height_mm": 900.0,
"depth_mm": 600.0,
"width_in": 30.0,
"height_in": 35.43,
"depth_in": 23.62,
"location": "Range space, Elevation 1",
"elevation_ref": "UNIT A1 KITCHEN EL.",
"confidence": 0.95,
@@ -78,9 +78,9 @@
{
"item_num": 5,
"cabinet_type": "base",
"width_mm": 900,
"height_mm": 864.0,
"depth_mm": 600.0,
"width_in": 35.43,
"height_in": 34.02,
"depth_in": 23.62,
"location": "Left of range, Elevation 1",
"elevation_ref": "UNIT A1 KITCHEN EL.",
"confidence": 0.9,
@@ -92,9 +92,9 @@
{
"item_num": 6,
"cabinet_type": "base",
"width_mm": 762.0,
"height_mm": 864.0,
"depth_mm": 600.0,
"width_in": 30.0,
"height_in": 34.02,
"depth_in": 23.62,
"location": "Right of range, Elevation 1",
"elevation_ref": "UNIT A1 KITCHEN EL.",
"confidence": 0.9,
@@ -106,9 +106,9 @@
{
"item_num": 7,
"cabinet_type": "appliance_space",
"width_mm": 762.0,
"height_mm": 1700.0,
"depth_mm": 600.0,
"width_in": 30.0,
"height_in": 66.93,
"depth_in": 23.62,
"location": "Refrigerator space, Elevation 1",
"elevation_ref": "UNIT A1 KITCHEN EL.",
"confidence": 0.95,
@@ -120,9 +120,9 @@
{
"item_num": 8,
"cabinet_type": "pantry",
"width_mm": 300.0,
"height_mm": 2130.0,
"depth_mm": 600.0,
"width_in": 11.81,
"height_in": 83.86,
"depth_in": 23.62,
"location": "Right of refrigerator, Elevation 1",
"elevation_ref": "UNIT A1 KITCHEN EL.",
"confidence": 0.8,
@@ -134,9 +134,9 @@
{
"item_num": 9,
"cabinet_type": "upper_wall",
"width_mm": 900,
"height_mm": 762.0,
"depth_mm": 330.0,
"width_in": 35.43,
"height_in": 30.0,
"depth_in": 12.99,
"location": "Left of refrigerator, Elevation 1",
"elevation_ref": "UNIT A1 KITCHEN EL.",
"confidence": 0.85,
@@ -160,9 +160,9 @@
{
"item_num": 1,
"cabinet_type": "vanity",
"width_mm": 1880.0,
"height_mm": 864.0,
"depth_mm": 530.0,
"width_in": 74.02,
"height_in": 34.02,
"depth_in": 20.87,
"location": "Bathroom, left wall",
"elevation_ref": "A-6.00A",
"confidence": 0.8,
@@ -174,9 +174,9 @@
{
"item_num": 2,
"cabinet_type": "linen",
"width_mm": 600.0,
"height_mm": 2130.0,
"depth_mm": 600.0,
"width_in": 23.62,
"height_in": 83.86,
"depth_in": 23.62,
"location": "Bathroom, right of vanity",
"elevation_ref": "A-6.00A",
"confidence": 0.7,
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -9,9 +9,9 @@
{
"item_num": 1,
"cabinet_type": "upper_wall",
"width_mm": 366,
"height_mm": 914,
"depth_mm": 330,
"width_in": 14.41,
"height_in": 35.98,
"depth_in": 12.99,
"location": "left of sink",
"elevation_ref": "ELEVATION A",
"confidence": 0.9,
@@ -22,9 +22,9 @@
{
"item_num": 2,
"cabinet_type": "upper_wall",
"width_mm": 610,
"height_mm": 914,
"depth_mm": 330,
"width_in": 24.02,
"height_in": 35.98,
"depth_in": 12.99,
"location": "above microwave",
"elevation_ref": "ELEVATION A",
"confidence": 0.9,
@@ -35,9 +35,9 @@
{
"item_num": 3,
"cabinet_type": "upper_wall",
"width_mm": 366,
"height_mm": 914,
"depth_mm": 330,
"width_in": 14.41,
"height_in": 35.98,
"depth_in": 12.99,
"location": "right of microwave",
"elevation_ref": "ELEVATION A",
"confidence": 0.9,
@@ -48,9 +48,9 @@
{
"item_num": 4,
"cabinet_type": "upper_wall",
"width_mm": 914,
"height_mm": 914,
"depth_mm": 330,
"width_in": 35.98,
"height_in": 35.98,
"depth_in": 12.99,
"location": "right wall",
"elevation_ref": "ELEVATION A",
"confidence": 0.9,
@@ -61,9 +61,9 @@
{
"item_num": 5,
"cabinet_type": "microwave_shelf",
"width_mm": 610,
"height_mm": 914,
"depth_mm": 330,
"width_in": 24.02,
"height_in": 35.98,
"depth_in": 12.99,
"location": "above microwave",
"elevation_ref": "ELEVATION A",
"confidence": 0.9,
@@ -74,9 +74,9 @@
{
"item_num": 6,
"cabinet_type": "sink_base",
"width_mm": 610,
"height_mm": 914,
"depth_mm": 330,
"width_in": 24.02,
"height_in": 35.98,
"depth_in": 12.99,
"location": "under sink",
"elevation_ref": "ELEVATION A",
"confidence": 0.9,
@@ -87,9 +87,9 @@
{
"item_num": 7,
"cabinet_type": "dw_adjacent",
"width_mm": 305,
"height_mm": 914,
"depth_mm": 330,
"width_in": 12.01,
"height_in": 35.98,
"depth_in": 12.99,
"location": "next to dishwasher",
"elevation_ref": "ELEVATION A",
"confidence": 0.9,
@@ -100,9 +100,9 @@
{
"item_num": 8,
"cabinet_type": "base",
"width_mm": 610,
"height_mm": 914,
"depth_mm": 330,
"width_in": 24.02,
"height_in": 35.98,
"depth_in": 12.99,
"location": "right of sink",
"elevation_ref": "ELEVATION A",
"confidence": 0.9,
@@ -113,9 +113,9 @@
{
"item_num": 9,
"cabinet_type": "appliance_space",
"width_mm": 610,
"height_mm": 914,
"depth_mm": 330,
"width_in": 24.02,
"height_in": 35.98,
"depth_in": 12.99,
"location": "range",
"elevation_ref": "ELEVATION A",
"confidence": 0.9,
@@ -126,9 +126,9 @@
{
"item_num": 10,
"cabinet_type": "base",
"width_mm": 914,
"height_mm": 914,
"depth_mm": 330,
"width_in": 35.98,
"height_in": 35.98,
"depth_in": 12.99,
"location": "right side",
"elevation_ref": "ELEVATION A",
"confidence": 0.9,
@@ -139,9 +139,9 @@
{
"item_num": 11,
"cabinet_type": "appliance_space",
"width_mm": 305,
"height_mm": 914,
"depth_mm": 330,
"width_in": 12.01,
"height_in": 35.98,
"depth_in": 12.99,
"location": "dishwasher",
"elevation_ref": "ELEVATION A",
"confidence": 0.9,
@@ -159,9 +159,9 @@
{
"item_num": 1,
"cabinet_type": "upper_wall",
"width_mm": 914,
"height_mm": 914,
"depth_mm": 610,
"width_in": 35.98,
"height_in": 35.98,
"depth_in": 24.02,
"location": "left of sink",
"elevation_ref": "ELEVATION A",
"confidence": 0.9,
@@ -172,9 +172,9 @@
{
"item_num": 2,
"cabinet_type": "upper_wall",
"width_mm": 914,
"height_mm": 914,
"depth_mm": 610,
"width_in": 35.98,
"height_in": 35.98,
"depth_in": 24.02,
"location": "above sink",
"elevation_ref": "ELEVATION A",
"confidence": 0.9,
@@ -185,9 +185,9 @@
{
"item_num": 3,
"cabinet_type": "upper_wall",
"width_mm": 610,
"height_mm": 914,
"depth_mm": 610,
"width_in": 24.02,
"height_in": 35.98,
"depth_in": 24.02,
"location": "right of sink",
"elevation_ref": "ELEVATION A",
"confidence": 0.9,
@@ -198,9 +198,9 @@
{
"item_num": 4,
"cabinet_type": "base",
"width_mm": 914,
"height_mm": 864,
"depth_mm": 610,
"width_in": 35.98,
"height_in": 34.02,
"depth_in": 24.02,
"location": "left of oven",
"elevation_ref": "ELEVATION A",
"confidence": 0.9,
@@ -211,9 +211,9 @@
{
"item_num": 5,
"cabinet_type": "appliance_space",
"width_mm": 610,
"height_mm": 864,
"depth_mm": 610,
"width_in": 24.02,
"height_in": 34.02,
"depth_in": 24.02,
"location": "oven",
"elevation_ref": "ELEVATION A",
"confidence": 0.9,
@@ -224,9 +224,9 @@
{
"item_num": 6,
"cabinet_type": "base",
"width_mm": 914,
"height_mm": 864,
"depth_mm": 610,
"width_in": 35.98,
"height_in": 34.02,
"depth_in": 24.02,
"location": "right of oven",
"elevation_ref": "ELEVATION A",
"confidence": 0.9,
@@ -237,9 +237,9 @@
{
"item_num": 7,
"cabinet_type": "appliance_space",
"width_mm": 914,
"height_mm": 1780,
"depth_mm": 610,
"width_in": 35.98,
"height_in": 70.08,
"depth_in": 24.02,
"location": "refrigerator",
"elevation_ref": "ELEVATION A",
"confidence": 0.9,
@@ -8,9 +8,9 @@
{
"item_num": 1,
"cabinet_type": "upper_wall",
"width_mm": 366,
"height_mm": 914,
"depth_mm": 330,
"width_in": 14.41,
"height_in": 35.98,
"depth_in": 12.99,
"location": "left of sink",
"elevation_ref": "ELEVATION A",
"confidence": 0.9,
@@ -21,9 +21,9 @@
{
"item_num": 2,
"cabinet_type": "upper_wall",
"width_mm": 610,
"height_mm": 914,
"depth_mm": 330,
"width_in": 24.02,
"height_in": 35.98,
"depth_in": 12.99,
"location": "above microwave",
"elevation_ref": "ELEVATION A",
"confidence": 0.9,
@@ -34,9 +34,9 @@
{
"item_num": 3,
"cabinet_type": "upper_wall",
"width_mm": 366,
"height_mm": 914,
"depth_mm": 330,
"width_in": 14.41,
"height_in": 35.98,
"depth_in": 12.99,
"location": "right of microwave",
"elevation_ref": "ELEVATION A",
"confidence": 0.9,
@@ -47,9 +47,9 @@
{
"item_num": 4,
"cabinet_type": "upper_wall",
"width_mm": 914,
"height_mm": 914,
"depth_mm": 330,
"width_in": 35.98,
"height_in": 35.98,
"depth_in": 12.99,
"location": "right wall",
"elevation_ref": "ELEVATION A",
"confidence": 0.9,
@@ -60,9 +60,9 @@
{
"item_num": 5,
"cabinet_type": "microwave_shelf",
"width_mm": 610,
"height_mm": 914,
"depth_mm": 330,
"width_in": 24.02,
"height_in": 35.98,
"depth_in": 12.99,
"location": "above microwave",
"elevation_ref": "ELEVATION A",
"confidence": 0.9,
@@ -73,9 +73,9 @@
{
"item_num": 6,
"cabinet_type": "sink_base",
"width_mm": 610,
"height_mm": 914,
"depth_mm": 330,
"width_in": 24.02,
"height_in": 35.98,
"depth_in": 12.99,
"location": "under sink",
"elevation_ref": "ELEVATION A",
"confidence": 0.9,
@@ -86,9 +86,9 @@
{
"item_num": 7,
"cabinet_type": "dw_adjacent",
"width_mm": 305,
"height_mm": 914,
"depth_mm": 330,
"width_in": 12.01,
"height_in": 35.98,
"depth_in": 12.99,
"location": "next to dishwasher",
"elevation_ref": "ELEVATION A",
"confidence": 0.9,
@@ -99,9 +99,9 @@
{
"item_num": 8,
"cabinet_type": "base",
"width_mm": 610,
"height_mm": 914,
"depth_mm": 330,
"width_in": 24.02,
"height_in": 35.98,
"depth_in": 12.99,
"location": "right of sink",
"elevation_ref": "ELEVATION A",
"confidence": 0.9,
@@ -112,9 +112,9 @@
{
"item_num": 9,
"cabinet_type": "appliance_space",
"width_mm": 610,
"height_mm": 914,
"depth_mm": 330,
"width_in": 24.02,
"height_in": 35.98,
"depth_in": 12.99,
"location": "range",
"elevation_ref": "ELEVATION A",
"confidence": 0.9,
@@ -125,9 +125,9 @@
{
"item_num": 10,
"cabinet_type": "base",
"width_mm": 914,
"height_mm": 914,
"depth_mm": 330,
"width_in": 35.98,
"height_in": 35.98,
"depth_in": 12.99,
"location": "right side",
"elevation_ref": "ELEVATION A",
"confidence": 0.9,
@@ -138,9 +138,9 @@
{
"item_num": 11,
"cabinet_type": "appliance_space",
"width_mm": 305,
"height_mm": 914,
"depth_mm": 330,
"width_in": 12.01,
"height_in": 35.98,
"depth_in": 12.99,
"location": "dishwasher",
"elevation_ref": "ELEVATION A",
"confidence": 0.9,
@@ -158,9 +158,9 @@
{
"item_num": 1,
"cabinet_type": "upper_wall",
"width_mm": 914,
"height_mm": 914,
"depth_mm": 610,
"width_in": 35.98,
"height_in": 35.98,
"depth_in": 24.02,
"location": "left of sink",
"elevation_ref": "ELEVATION A",
"confidence": 0.9,
@@ -171,9 +171,9 @@
{
"item_num": 2,
"cabinet_type": "upper_wall",
"width_mm": 914,
"height_mm": 914,
"depth_mm": 610,
"width_in": 35.98,
"height_in": 35.98,
"depth_in": 24.02,
"location": "above sink",
"elevation_ref": "ELEVATION A",
"confidence": 0.9,
@@ -184,9 +184,9 @@
{
"item_num": 3,
"cabinet_type": "upper_wall",
"width_mm": 610,
"height_mm": 914,
"depth_mm": 610,
"width_in": 24.02,
"height_in": 35.98,
"depth_in": 24.02,
"location": "right of sink",
"elevation_ref": "ELEVATION A",
"confidence": 0.9,
@@ -197,9 +197,9 @@
{
"item_num": 4,
"cabinet_type": "base",
"width_mm": 914,
"height_mm": 864,
"depth_mm": 610,
"width_in": 35.98,
"height_in": 34.02,
"depth_in": 24.02,
"location": "left of oven",
"elevation_ref": "ELEVATION A",
"confidence": 0.9,
@@ -210,9 +210,9 @@
{
"item_num": 5,
"cabinet_type": "appliance_space",
"width_mm": 610,
"height_mm": 864,
"depth_mm": 610,
"width_in": 24.02,
"height_in": 34.02,
"depth_in": 24.02,
"location": "oven",
"elevation_ref": "ELEVATION A",
"confidence": 0.9,
@@ -223,9 +223,9 @@
{
"item_num": 6,
"cabinet_type": "base",
"width_mm": 914,
"height_mm": 864,
"depth_mm": 610,
"width_in": 35.98,
"height_in": 34.02,
"depth_in": 24.02,
"location": "right of oven",
"elevation_ref": "ELEVATION A",
"confidence": 0.9,
@@ -236,9 +236,9 @@
{
"item_num": 7,
"cabinet_type": "appliance_space",
"width_mm": 914,
"height_mm": 1780,
"depth_mm": 610,
"width_in": 35.98,
"height_in": 70.08,
"depth_in": 24.02,
"location": "refrigerator",
"elevation_ref": "ELEVATION A",
"confidence": 0.9,
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -15,79 +15,79 @@
{
"item_num": 1,
"cabinet_type": "upper_wall",
"width_mm": 914.4,
"height_mm": 762.0,
"depth_mm": 304.79999999999995,
"width_in": 36.0,
"height_in": 30.0,
"depth_in": 12.0,
"location": "Standard upper",
"elevation_ref": "Elev.1",
"confidence": 1.0,
"quantity": 2,
"is_ada": false,
"notes": "Wall Cabinet — 36\"W x 30\"H x 12\"D",
"notes": "Wall Cabinet \u00e2\u20ac\u201d 36\"W x 30\"H x 12\"D",
"source": "manual"
},
{
"item_num": 2,
"cabinet_type": "appliance_space",
"width_mm": 762.0,
"height_mm": 304.79999999999995,
"depth_mm": 304.79999999999995,
"width_in": 30.0,
"height_in": 12.0,
"depth_in": 12.0,
"location": "Over fridge",
"elevation_ref": "Elev.1",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Wall Cabinet — 30\"W x 12\"H x 12\"D (Fridge)",
"notes": "Wall Cabinet \u00e2\u20ac\u201d 30\"W x 12\"H x 12\"D (Fridge)",
"source": "manual"
},
{
"item_num": 3,
"cabinet_type": "upper_wall",
"width_mm": 762.0,
"height_mm": 457.2,
"depth_mm": 304.79999999999995,
"width_in": 30.0,
"height_in": 18.0,
"depth_in": 12.0,
"location": "Over microwave",
"elevation_ref": "Elev.1",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Wall Cabinet — 30\"W x 18\"H x 12\"D (Microwave)",
"notes": "Wall Cabinet \u00e2\u20ac\u201d 30\"W x 18\"H x 12\"D (Microwave)",
"source": "manual"
},
{
"item_num": 4,
"cabinet_type": "upper_wall",
"width_mm": 762.0,
"height_mm": 762.0,
"depth_mm": 304.79999999999995,
"width_in": 30.0,
"height_in": 30.0,
"depth_in": 12.0,
"location": "End upper",
"elevation_ref": "Elev.1",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Wall Cabinet — 30\"W x 30\"H x 12\"D",
"notes": "Wall Cabinet \u00e2\u20ac\u201d 30\"W x 30\"H x 12\"D",
"source": "manual"
},
{
"item_num": 5,
"cabinet_type": "base",
"width_mm": 914.4,
"height_mm": 876.3,
"depth_mm": 609.5999999999999,
"width_in": 36.0,
"height_in": 34.5,
"depth_in": 24.0,
"location": "Standard base",
"elevation_ref": "Elev.2",
"confidence": 1.0,
"quantity": 2,
"is_ada": false,
"notes": "Base Cabinet — 36\"W",
"notes": "Base Cabinet \u00e2\u20ac\u201d 36\"W",
"source": "manual"
},
{
"item_num": 6,
"cabinet_type": "appliance_space",
"width_mm": 762.0,
"height_mm": 876.3,
"depth_mm": 609.5999999999999,
"width_in": 30.0,
"height_in": 34.5,
"depth_in": 24.0,
"location": "DW space",
"elevation_ref": "Elev.2",
"confidence": 1.0,
@@ -99,43 +99,43 @@
{
"item_num": 7,
"cabinet_type": "sink_base",
"width_mm": 914.4,
"height_mm": 876.3,
"depth_mm": 609.5999999999999,
"width_in": 36.0,
"height_in": 34.5,
"depth_in": 24.0,
"location": "Sink base",
"elevation_ref": "Elev.2",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Sink Base Cabinet — 36\"W",
"notes": "Sink Base Cabinet \u00e2\u20ac\u201d 36\"W",
"source": "manual"
},
{
"item_num": 8,
"cabinet_type": "base",
"width_mm": 609.5999999999999,
"height_mm": 876.3,
"depth_mm": 609.5999999999999,
"width_in": 24.0,
"height_in": 34.5,
"depth_in": 24.0,
"location": "Standard base",
"elevation_ref": "Elev.2",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Base Cabinet — 24\"W",
"notes": "Base Cabinet \u00e2\u20ac\u201d 24\"W",
"source": "manual"
},
{
"item_num": 9,
"cabinet_type": "pantry",
"width_mm": 381.0,
"height_mm": 2133.6,
"depth_mm": 609.5999999999999,
"width_in": 15.0,
"height_in": 84.0,
"depth_in": 24.0,
"location": "Tall pantry",
"elevation_ref": "Elev.2",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Tall Pantry Cabinet — 15\"W",
"notes": "Tall Pantry Cabinet \u00e2\u20ac\u201d 15\"W",
"source": "manual"
}
]
@@ -151,43 +151,43 @@
{
"item_num": 1,
"cabinet_type": "vanity",
"width_mm": 914.4,
"height_mm": 876.3,
"depth_mm": 533.4,
"width_in": 36.0,
"height_in": 34.5,
"depth_in": 21.0,
"location": "Single sink",
"elevation_ref": "Floor Plan",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Bathroom Vanity — 36\"W",
"notes": "Bathroom Vanity \u00e2\u20ac\u201d 36\"W",
"source": "manual"
},
{
"item_num": 2,
"cabinet_type": "medicine_cabinet",
"width_mm": 914.4,
"height_mm": 762.0,
"depth_mm": 101.6,
"width_in": 36.0,
"height_in": 30.0,
"depth_in": 4.0,
"location": "Mirror cabinet",
"elevation_ref": "Floor Plan",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Medicine Cabinet — 36\"W",
"notes": "Medicine Cabinet \u00e2\u20ac\u201d 36\"W",
"source": "manual"
},
{
"item_num": 3,
"cabinet_type": "linen",
"width_mm": 457.2,
"height_mm": 2133.6,
"depth_mm": 457.2,
"width_in": 18.0,
"height_in": 84.0,
"depth_in": 18.0,
"location": "Linen storage",
"elevation_ref": "Elev.3",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Linen Cabinet — 18\"W",
"notes": "Linen Cabinet \u00e2\u20ac\u201d 18\"W",
"source": "manual"
}
]
@@ -15,79 +15,79 @@
{
"item_num": 1,
"cabinet_type": "upper_wall",
"width_mm": 914.4,
"height_mm": 762.0,
"depth_mm": 304.79999999999995,
"width_in": 36.0,
"height_in": 30.0,
"depth_in": 12.0,
"location": "Standard upper",
"elevation_ref": "Elev.1",
"confidence": 1.0,
"quantity": 2,
"is_ada": true,
"notes": "Wall Cabinet — 36\"W x 30\"H x 12\"D",
"notes": "Wall Cabinet \u00e2\u20ac\u201d 36\"W x 30\"H x 12\"D",
"source": "manual"
},
{
"item_num": 2,
"cabinet_type": "appliance_space",
"width_mm": 762.0,
"height_mm": 304.79999999999995,
"depth_mm": 304.79999999999995,
"width_in": 30.0,
"height_in": 12.0,
"depth_in": 12.0,
"location": "Over fridge",
"elevation_ref": "Elev.1",
"confidence": 1.0,
"quantity": 1,
"is_ada": true,
"notes": "Wall Cabinet — 30\"W x 12\"H x 12\"D (Fridge)",
"notes": "Wall Cabinet \u00e2\u20ac\u201d 30\"W x 12\"H x 12\"D (Fridge)",
"source": "manual"
},
{
"item_num": 3,
"cabinet_type": "upper_wall",
"width_mm": 762.0,
"height_mm": 457.2,
"depth_mm": 304.79999999999995,
"width_in": 30.0,
"height_in": 18.0,
"depth_in": 12.0,
"location": "Over microwave",
"elevation_ref": "Elev.1",
"confidence": 1.0,
"quantity": 1,
"is_ada": true,
"notes": "Wall Cabinet — 30\"W x 18\"H x 12\"D (Microwave)",
"notes": "Wall Cabinet \u00e2\u20ac\u201d 30\"W x 18\"H x 12\"D (Microwave)",
"source": "manual"
},
{
"item_num": 4,
"cabinet_type": "upper_wall",
"width_mm": 762.0,
"height_mm": 762.0,
"depth_mm": 304.79999999999995,
"width_in": 30.0,
"height_in": 30.0,
"depth_in": 12.0,
"location": "End upper",
"elevation_ref": "Elev.1",
"confidence": 1.0,
"quantity": 1,
"is_ada": true,
"notes": "Wall Cabinet — 30\"W x 30\"H x 12\"D",
"notes": "Wall Cabinet \u00e2\u20ac\u201d 30\"W x 30\"H x 12\"D",
"source": "manual"
},
{
"item_num": 5,
"cabinet_type": "base",
"width_mm": 914.4,
"height_mm": 876.3,
"depth_mm": 609.5999999999999,
"width_in": 36.0,
"height_in": 34.5,
"depth_in": 24.0,
"location": "ADA base",
"elevation_ref": "Elev.2",
"confidence": 1.0,
"quantity": 2,
"is_ada": true,
"notes": "Base Cabinet — 36\"W (Accessible)",
"notes": "Base Cabinet \u00e2\u20ac\u201d 36\"W (Accessible)",
"source": "manual"
},
{
"item_num": 6,
"cabinet_type": "appliance_space",
"width_mm": 762.0,
"height_mm": 876.3,
"depth_mm": 609.5999999999999,
"width_in": 30.0,
"height_in": 34.5,
"depth_in": 24.0,
"location": "ADA DW space",
"elevation_ref": "Elev.2",
"confidence": 1.0,
@@ -99,43 +99,43 @@
{
"item_num": 7,
"cabinet_type": "sink_base",
"width_mm": 914.4,
"height_mm": 876.3,
"depth_mm": 609.5999999999999,
"width_in": 36.0,
"height_in": 34.5,
"depth_in": 24.0,
"location": "ADA Sink base",
"elevation_ref": "Elev.2",
"confidence": 1.0,
"quantity": 1,
"is_ada": true,
"notes": "Sink Base Cabinet — 36\"W (Accessible)",
"notes": "Sink Base Cabinet \u00e2\u20ac\u201d 36\"W (Accessible)",
"source": "manual"
},
{
"item_num": 8,
"cabinet_type": "base",
"width_mm": 609.5999999999999,
"height_mm": 876.3,
"depth_mm": 609.5999999999999,
"width_in": 24.0,
"height_in": 34.5,
"depth_in": 24.0,
"location": "ADA base",
"elevation_ref": "Elev.2",
"confidence": 1.0,
"quantity": 1,
"is_ada": true,
"notes": "Base Cabinet — 24\"W (Accessible)",
"notes": "Base Cabinet \u00e2\u20ac\u201d 24\"W (Accessible)",
"source": "manual"
},
{
"item_num": 9,
"cabinet_type": "pantry",
"width_mm": 381.0,
"height_mm": 2133.6,
"depth_mm": 609.5999999999999,
"width_in": 15.0,
"height_in": 84.0,
"depth_in": 24.0,
"location": "Tall pantry",
"elevation_ref": "Elev.2",
"confidence": 1.0,
"quantity": 1,
"is_ada": true,
"notes": "Tall Pantry Cabinet — 15\"W",
"notes": "Tall Pantry Cabinet \u00e2\u20ac\u201d 15\"W",
"source": "manual"
}
]
@@ -151,43 +151,43 @@
{
"item_num": 1,
"cabinet_type": "vanity",
"width_mm": 914.4,
"height_mm": 876.3,
"depth_mm": 533.4,
"width_in": 36.0,
"height_in": 34.5,
"depth_in": 21.0,
"location": "ADA Single sink",
"elevation_ref": "Floor Plan",
"confidence": 1.0,
"quantity": 1,
"is_ada": true,
"notes": "Bathroom Vanity — 36\"W (Accessible)",
"notes": "Bathroom Vanity \u00e2\u20ac\u201d 36\"W (Accessible)",
"source": "manual"
},
{
"item_num": 2,
"cabinet_type": "medicine_cabinet",
"width_mm": 914.4,
"height_mm": 762.0,
"depth_mm": 101.6,
"width_in": 36.0,
"height_in": 30.0,
"depth_in": 4.0,
"location": "Mirror cabinet",
"elevation_ref": "Floor Plan",
"confidence": 1.0,
"quantity": 1,
"is_ada": true,
"notes": "Medicine Cabinet — 36\"W",
"notes": "Medicine Cabinet \u00e2\u20ac\u201d 36\"W",
"source": "manual"
},
{
"item_num": 3,
"cabinet_type": "linen",
"width_mm": 457.2,
"height_mm": 2133.6,
"depth_mm": 457.2,
"width_in": 18.0,
"height_in": 84.0,
"depth_in": 18.0,
"location": "Linen storage",
"elevation_ref": "Elev.3",
"confidence": 1.0,
"quantity": 1,
"is_ada": true,
"notes": "Linen Cabinet — 18\"W",
"notes": "Linen Cabinet \u00e2\u20ac\u201d 18\"W",
"source": "manual"
}
]
@@ -15,79 +15,79 @@
{
"item_num": 1,
"cabinet_type": "upper_wall",
"width_mm": 914.4,
"height_mm": 762.0,
"depth_mm": 304.79999999999995,
"width_in": 36.0,
"height_in": 30.0,
"depth_in": 12.0,
"location": "Standard upper",
"elevation_ref": "Elev.1",
"confidence": 1.0,
"quantity": 2,
"is_ada": false,
"notes": "Wall Cabinet — 36\"W x 30\"H x 12\"D",
"notes": "Wall Cabinet \u00e2\u20ac\u201d 36\"W x 30\"H x 12\"D",
"source": "manual"
},
{
"item_num": 2,
"cabinet_type": "upper_wall",
"width_mm": 762.0,
"height_mm": 762.0,
"depth_mm": 304.79999999999995,
"width_in": 30.0,
"height_in": 30.0,
"depth_in": 12.0,
"location": "Wall cabinets",
"elevation_ref": "Elev.1",
"confidence": 1.0,
"quantity": 2,
"is_ada": false,
"notes": "Wall Cabinet — 30\"W x 30\"H x 12\"D",
"notes": "Wall Cabinet \u00e2\u20ac\u201d 30\"W x 30\"H x 12\"D",
"source": "manual"
},
{
"item_num": 3,
"cabinet_type": "appliance_space",
"width_mm": 762.0,
"height_mm": 304.79999999999995,
"depth_mm": 304.79999999999995,
"width_in": 30.0,
"height_in": 12.0,
"depth_in": 12.0,
"location": "Over fridge",
"elevation_ref": "Elev.1",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Wall Cabinet — 30\"W x 12\"H x 12\"D (Fridge)",
"notes": "Wall Cabinet \u00e2\u20ac\u201d 30\"W x 12\"H x 12\"D (Fridge)",
"source": "manual"
},
{
"item_num": 4,
"cabinet_type": "upper_wall",
"width_mm": 762.0,
"height_mm": 457.2,
"depth_mm": 304.79999999999995,
"width_in": 30.0,
"height_in": 18.0,
"depth_in": 12.0,
"location": "Over microwave",
"elevation_ref": "Elev.1",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Wall Cabinet — 30\"W x 18\"H x 12\"D (Microwave)",
"notes": "Wall Cabinet \u00e2\u20ac\u201d 30\"W x 18\"H x 12\"D (Microwave)",
"source": "manual"
},
{
"item_num": 5,
"cabinet_type": "base",
"width_mm": 914.4,
"height_mm": 876.3,
"depth_mm": 609.5999999999999,
"width_in": 36.0,
"height_in": 34.5,
"depth_in": 24.0,
"location": "Standard base",
"elevation_ref": "Elev.2",
"confidence": 1.0,
"quantity": 2,
"is_ada": false,
"notes": "Base Cabinet — 36\"W",
"notes": "Base Cabinet \u00e2\u20ac\u201d 36\"W",
"source": "manual"
},
{
"item_num": 6,
"cabinet_type": "appliance_space",
"width_mm": 762.0,
"height_mm": 876.3,
"depth_mm": 609.5999999999999,
"width_in": 30.0,
"height_in": 34.5,
"depth_in": 24.0,
"location": "DW space",
"elevation_ref": "Elev.2",
"confidence": 1.0,
@@ -99,43 +99,43 @@
{
"item_num": 7,
"cabinet_type": "sink_base",
"width_mm": 914.4,
"height_mm": 876.3,
"depth_mm": 609.5999999999999,
"width_in": 36.0,
"height_in": 34.5,
"depth_in": 24.0,
"location": "Sink base",
"elevation_ref": "Elev.2",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Sink Base Cabinet — 36\"W",
"notes": "Sink Base Cabinet \u00e2\u20ac\u201d 36\"W",
"source": "manual"
},
{
"item_num": 8,
"cabinet_type": "base",
"width_mm": 609.5999999999999,
"height_mm": 876.3,
"depth_mm": 609.5999999999999,
"width_in": 24.0,
"height_in": 34.5,
"depth_in": 24.0,
"location": "Base cabinets",
"elevation_ref": "Elev.2",
"confidence": 1.0,
"quantity": 2,
"is_ada": false,
"notes": "Base Cabinet — 24\"W",
"notes": "Base Cabinet \u00e2\u20ac\u201d 24\"W",
"source": "manual"
},
{
"item_num": 9,
"cabinet_type": "pantry",
"width_mm": 381.0,
"height_mm": 2133.6,
"depth_mm": 609.5999999999999,
"width_in": 15.0,
"height_in": 84.0,
"depth_in": 24.0,
"location": "Tall pantry",
"elevation_ref": "Elev.2",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Tall Pantry Cabinet — 15\"W",
"notes": "Tall Pantry Cabinet \u00e2\u20ac\u201d 15\"W",
"source": "manual"
}
]
@@ -151,43 +151,43 @@
{
"item_num": 1,
"cabinet_type": "vanity",
"width_mm": 762.0,
"height_mm": 876.3,
"depth_mm": 533.4,
"width_in": 30.0,
"height_in": 34.5,
"depth_in": 21.0,
"location": "Single sink",
"elevation_ref": "Floor Plan",
"confidence": 1.0,
"quantity": 2,
"is_ada": false,
"notes": "Bathroom Vanity — 30\"W",
"notes": "Bathroom Vanity \u00e2\u20ac\u201d 30\"W",
"source": "manual"
},
{
"item_num": 2,
"cabinet_type": "medicine_cabinet",
"width_mm": 762.0,
"height_mm": 762.0,
"depth_mm": 101.6,
"width_in": 30.0,
"height_in": 30.0,
"depth_in": 4.0,
"location": "Mirror cabinet",
"elevation_ref": "Floor Plan",
"confidence": 1.0,
"quantity": 2,
"is_ada": false,
"notes": "Medicine Cabinet — 30\"W",
"notes": "Medicine Cabinet \u00e2\u20ac\u201d 30\"W",
"source": "manual"
},
{
"item_num": 3,
"cabinet_type": "linen",
"width_mm": 457.2,
"height_mm": 2133.6,
"depth_mm": 457.2,
"width_in": 18.0,
"height_in": 84.0,
"depth_in": 18.0,
"location": "Linen storage",
"elevation_ref": "Elev.3",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Linen Cabinet — 18\"W",
"notes": "Linen Cabinet \u00e2\u20ac\u201d 18\"W",
"source": "manual"
}
]
@@ -15,79 +15,79 @@
{
"item_num": 1,
"cabinet_type": "upper_wall",
"width_mm": 914.4,
"height_mm": 762.0,
"depth_mm": 304.79999999999995,
"width_in": 36.0,
"height_in": 30.0,
"depth_in": 12.0,
"location": "Standard upper",
"elevation_ref": "Elev.1",
"confidence": 1.0,
"quantity": 2,
"is_ada": true,
"notes": "Wall Cabinet — 36\"W x 30\"H x 12\"D",
"notes": "Wall Cabinet \u00e2\u20ac\u201d 36\"W x 30\"H x 12\"D",
"source": "manual"
},
{
"item_num": 2,
"cabinet_type": "upper_wall",
"width_mm": 762.0,
"height_mm": 762.0,
"depth_mm": 304.79999999999995,
"width_in": 30.0,
"height_in": 30.0,
"depth_in": 12.0,
"location": "Wall cabinets",
"elevation_ref": "Elev.1",
"confidence": 1.0,
"quantity": 2,
"is_ada": true,
"notes": "Wall Cabinet — 30\"W x 30\"H x 12\"D",
"notes": "Wall Cabinet \u00e2\u20ac\u201d 30\"W x 30\"H x 12\"D",
"source": "manual"
},
{
"item_num": 3,
"cabinet_type": "appliance_space",
"width_mm": 762.0,
"height_mm": 304.79999999999995,
"depth_mm": 304.79999999999995,
"width_in": 30.0,
"height_in": 12.0,
"depth_in": 12.0,
"location": "Over fridge",
"elevation_ref": "Elev.1",
"confidence": 1.0,
"quantity": 1,
"is_ada": true,
"notes": "Wall Cabinet — 30\"W x 12\"H x 12\"D (Fridge)",
"notes": "Wall Cabinet \u00e2\u20ac\u201d 30\"W x 12\"H x 12\"D (Fridge)",
"source": "manual"
},
{
"item_num": 4,
"cabinet_type": "upper_wall",
"width_mm": 762.0,
"height_mm": 457.2,
"depth_mm": 304.79999999999995,
"width_in": 30.0,
"height_in": 18.0,
"depth_in": 12.0,
"location": "Over microwave",
"elevation_ref": "Elev.1",
"confidence": 1.0,
"quantity": 1,
"is_ada": true,
"notes": "Wall Cabinet — 30\"W x 18\"H x 12\"D (Microwave)",
"notes": "Wall Cabinet \u00e2\u20ac\u201d 30\"W x 18\"H x 12\"D (Microwave)",
"source": "manual"
},
{
"item_num": 5,
"cabinet_type": "base",
"width_mm": 914.4,
"height_mm": 876.3,
"depth_mm": 609.5999999999999,
"width_in": 36.0,
"height_in": 34.5,
"depth_in": 24.0,
"location": "ADA base",
"elevation_ref": "Elev.2",
"confidence": 1.0,
"quantity": 2,
"is_ada": true,
"notes": "Base Cabinet — 36\"W (Accessible)",
"notes": "Base Cabinet \u00e2\u20ac\u201d 36\"W (Accessible)",
"source": "manual"
},
{
"item_num": 6,
"cabinet_type": "appliance_space",
"width_mm": 762.0,
"height_mm": 876.3,
"depth_mm": 609.5999999999999,
"width_in": 30.0,
"height_in": 34.5,
"depth_in": 24.0,
"location": "ADA DW space",
"elevation_ref": "Elev.2",
"confidence": 1.0,
@@ -99,43 +99,43 @@
{
"item_num": 7,
"cabinet_type": "sink_base",
"width_mm": 914.4,
"height_mm": 876.3,
"depth_mm": 609.5999999999999,
"width_in": 36.0,
"height_in": 34.5,
"depth_in": 24.0,
"location": "ADA Sink base",
"elevation_ref": "Elev.2",
"confidence": 1.0,
"quantity": 1,
"is_ada": true,
"notes": "Sink Base Cabinet — 36\"W (Accessible)",
"notes": "Sink Base Cabinet \u00e2\u20ac\u201d 36\"W (Accessible)",
"source": "manual"
},
{
"item_num": 8,
"cabinet_type": "base",
"width_mm": 609.5999999999999,
"height_mm": 876.3,
"depth_mm": 609.5999999999999,
"width_in": 24.0,
"height_in": 34.5,
"depth_in": 24.0,
"location": "ADA base",
"elevation_ref": "Elev.2",
"confidence": 1.0,
"quantity": 2,
"is_ada": true,
"notes": "Base Cabinet — 24\"W (Accessible)",
"notes": "Base Cabinet \u00e2\u20ac\u201d 24\"W (Accessible)",
"source": "manual"
},
{
"item_num": 9,
"cabinet_type": "pantry",
"width_mm": 381.0,
"height_mm": 2133.6,
"depth_mm": 609.5999999999999,
"width_in": 15.0,
"height_in": 84.0,
"depth_in": 24.0,
"location": "Tall pantry",
"elevation_ref": "Elev.2",
"confidence": 1.0,
"quantity": 1,
"is_ada": true,
"notes": "Tall Pantry Cabinet — 15\"W",
"notes": "Tall Pantry Cabinet \u00e2\u20ac\u201d 15\"W",
"source": "manual"
}
]
@@ -151,43 +151,43 @@
{
"item_num": 1,
"cabinet_type": "vanity",
"width_mm": 762.0,
"height_mm": 876.3,
"depth_mm": 533.4,
"width_in": 30.0,
"height_in": 34.5,
"depth_in": 21.0,
"location": "ADA Single sink",
"elevation_ref": "Floor Plan",
"confidence": 1.0,
"quantity": 2,
"is_ada": true,
"notes": "Bathroom Vanity — 30\"W (Accessible)",
"notes": "Bathroom Vanity \u00e2\u20ac\u201d 30\"W (Accessible)",
"source": "manual"
},
{
"item_num": 2,
"cabinet_type": "medicine_cabinet",
"width_mm": 762.0,
"height_mm": 762.0,
"depth_mm": 101.6,
"width_in": 30.0,
"height_in": 30.0,
"depth_in": 4.0,
"location": "Mirror cabinet",
"elevation_ref": "Floor Plan",
"confidence": 1.0,
"quantity": 2,
"is_ada": true,
"notes": "Medicine Cabinet — 30\"W",
"notes": "Medicine Cabinet \u00e2\u20ac\u201d 30\"W",
"source": "manual"
},
{
"item_num": 3,
"cabinet_type": "linen",
"width_mm": 457.2,
"height_mm": 2133.6,
"depth_mm": 457.2,
"width_in": 18.0,
"height_in": 84.0,
"depth_in": 18.0,
"location": "Linen storage",
"elevation_ref": "Elev.3",
"confidence": 1.0,
"quantity": 1,
"is_ada": true,
"notes": "Linen Cabinet — 18\"W",
"notes": "Linen Cabinet \u00e2\u20ac\u201d 18\"W",
"source": "manual"
}
]
@@ -15,79 +15,79 @@
{
"item_num": 1,
"cabinet_type": "upper_wall",
"width_mm": 914.4,
"height_mm": 762.0,
"depth_mm": 304.79999999999995,
"width_in": 36.0,
"height_in": 30.0,
"depth_in": 12.0,
"location": "Standard upper",
"elevation_ref": "Elev.1",
"confidence": 1.0,
"quantity": 3,
"is_ada": false,
"notes": "Wall Cabinet — 36\"W x 30\"H x 12\"D",
"notes": "Wall Cabinet \u00e2\u20ac\u201d 36\"W x 30\"H x 12\"D",
"source": "manual"
},
{
"item_num": 2,
"cabinet_type": "appliance_space",
"width_mm": 762.0,
"height_mm": 304.79999999999995,
"depth_mm": 304.79999999999995,
"width_in": 30.0,
"height_in": 12.0,
"depth_in": 12.0,
"location": "Over fridge",
"elevation_ref": "Elev.1",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Wall Cabinet — 30\"W x 12\"H x 12\"D (Fridge)",
"notes": "Wall Cabinet \u00e2\u20ac\u201d 30\"W x 12\"H x 12\"D (Fridge)",
"source": "manual"
},
{
"item_num": 3,
"cabinet_type": "upper_wall",
"width_mm": 762.0,
"height_mm": 457.2,
"depth_mm": 304.79999999999995,
"width_in": 30.0,
"height_in": 18.0,
"depth_in": 12.0,
"location": "Over microwave",
"elevation_ref": "Elev.1",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Wall Cabinet — 30\"W x 18\"H x 12\"D (Microwave)",
"notes": "Wall Cabinet \u00e2\u20ac\u201d 30\"W x 18\"H x 12\"D (Microwave)",
"source": "manual"
},
{
"item_num": 4,
"cabinet_type": "upper_wall",
"width_mm": 762.0,
"height_mm": 762.0,
"depth_mm": 304.79999999999995,
"width_in": 30.0,
"height_in": 30.0,
"depth_in": 12.0,
"location": "Wall cabinet",
"elevation_ref": "Elev.1",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Wall Cabinet — 30\"W x 30\"H x 12\"D",
"notes": "Wall Cabinet \u00e2\u20ac\u201d 30\"W x 30\"H x 12\"D",
"source": "manual"
},
{
"item_num": 5,
"cabinet_type": "base",
"width_mm": 914.4,
"height_mm": 876.3,
"depth_mm": 609.5999999999999,
"width_in": 36.0,
"height_in": 34.5,
"depth_in": 24.0,
"location": "Base run",
"elevation_ref": "Elev.2",
"confidence": 1.0,
"quantity": 3,
"is_ada": false,
"notes": "Base Cabinet — 36\"W",
"notes": "Base Cabinet \u00e2\u20ac\u201d 36\"W",
"source": "manual"
},
{
"item_num": 6,
"cabinet_type": "appliance_space",
"width_mm": 762.0,
"height_mm": 876.3,
"depth_mm": 609.5999999999999,
"width_in": 30.0,
"height_in": 34.5,
"depth_in": 24.0,
"location": "DW space",
"elevation_ref": "Elev.2",
"confidence": 1.0,
@@ -99,43 +99,43 @@
{
"item_num": 7,
"cabinet_type": "sink_base",
"width_mm": 914.4,
"height_mm": 876.3,
"depth_mm": 609.5999999999999,
"width_in": 36.0,
"height_in": 34.5,
"depth_in": 24.0,
"location": "Sink base",
"elevation_ref": "Elev.2",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Sink Base Cabinet — 36\"W",
"notes": "Sink Base Cabinet \u00e2\u20ac\u201d 36\"W",
"source": "manual"
},
{
"item_num": 8,
"cabinet_type": "base",
"width_mm": 609.5999999999999,
"height_mm": 876.3,
"depth_mm": 609.5999999999999,
"width_in": 24.0,
"height_in": 34.5,
"depth_in": 24.0,
"location": "Base cabinet",
"elevation_ref": "Elev.2",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Base Cabinet — 24\"W",
"notes": "Base Cabinet \u00e2\u20ac\u201d 24\"W",
"source": "manual"
},
{
"item_num": 9,
"cabinet_type": "pantry",
"width_mm": 381.0,
"height_mm": 2133.6,
"depth_mm": 609.5999999999999,
"width_in": 15.0,
"height_in": 84.0,
"depth_in": 24.0,
"location": "Tall pantry",
"elevation_ref": "Elev.2",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Tall Pantry Cabinet — 15\"W",
"notes": "Tall Pantry Cabinet \u00e2\u20ac\u201d 15\"W",
"source": "manual"
}
]
@@ -151,71 +151,71 @@
{
"item_num": 1,
"cabinet_type": "vanity",
"width_mm": 914.4,
"height_mm": 876.3,
"depth_mm": 533.4,
"width_in": 36.0,
"height_in": 34.5,
"depth_in": 21.0,
"location": "Vanity run",
"elevation_ref": "Floor Plan",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Bathroom Vanity — 36\"W",
"notes": "Bathroom Vanity \u00e2\u20ac\u201d 36\"W",
"source": "manual"
},
{
"item_num": 2,
"cabinet_type": "vanity",
"width_mm": 762.0,
"height_mm": 876.3,
"depth_mm": 533.4,
"width_in": 30.0,
"height_in": 34.5,
"depth_in": 21.0,
"location": "Vanity run",
"elevation_ref": "Floor Plan",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Bathroom Vanity — 30\"W",
"notes": "Bathroom Vanity \u00e2\u20ac\u201d 30\"W",
"source": "manual"
},
{
"item_num": 3,
"cabinet_type": "medicine_cabinet",
"width_mm": 914.4,
"height_mm": 762.0,
"depth_mm": 101.6,
"width_in": 36.0,
"height_in": 30.0,
"depth_in": 4.0,
"location": "Mirror cabinet",
"elevation_ref": "Floor Plan",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Medicine Cabinet — 36\"W",
"notes": "Medicine Cabinet \u00e2\u20ac\u201d 36\"W",
"source": "manual"
},
{
"item_num": 4,
"cabinet_type": "medicine_cabinet",
"width_mm": 762.0,
"height_mm": 762.0,
"depth_mm": 101.6,
"width_in": 30.0,
"height_in": 30.0,
"depth_in": 4.0,
"location": "Mirror cabinet",
"elevation_ref": "Floor Plan",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Medicine Cabinet — 30\"W",
"notes": "Medicine Cabinet \u00e2\u20ac\u201d 30\"W",
"source": "manual"
},
{
"item_num": 5,
"cabinet_type": "linen",
"width_mm": 457.2,
"height_mm": 2133.6,
"depth_mm": 457.2,
"width_in": 18.0,
"height_in": 84.0,
"depth_in": 18.0,
"location": "Linen storage",
"elevation_ref": "Elev.3",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Linen Cabinet — 18\"W",
"notes": "Linen Cabinet \u00e2\u20ac\u201d 18\"W",
"source": "manual"
}
]
@@ -15,79 +15,79 @@
{
"item_num": 1,
"cabinet_type": "upper_wall",
"width_mm": 914.4,
"height_mm": 762.0,
"depth_mm": 304.79999999999995,
"width_in": 36.0,
"height_in": 30.0,
"depth_in": 12.0,
"location": "Standard upper",
"elevation_ref": "Elev.1",
"confidence": 1.0,
"quantity": 3,
"is_ada": false,
"notes": "Wall Cabinet — 36\"W x 30\"H x 12\"D",
"notes": "Wall Cabinet \u00e2\u20ac\u201d 36\"W x 30\"H x 12\"D",
"source": "manual"
},
{
"item_num": 2,
"cabinet_type": "appliance_space",
"width_mm": 762.0,
"height_mm": 304.79999999999995,
"depth_mm": 304.79999999999995,
"width_in": 30.0,
"height_in": 12.0,
"depth_in": 12.0,
"location": "Over fridge",
"elevation_ref": "Elev.1",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Wall Cabinet — 30\"W x 12\"H x 12\"D (Fridge)",
"notes": "Wall Cabinet \u00e2\u20ac\u201d 30\"W x 12\"H x 12\"D (Fridge)",
"source": "manual"
},
{
"item_num": 3,
"cabinet_type": "upper_wall",
"width_mm": 762.0,
"height_mm": 457.2,
"depth_mm": 304.79999999999995,
"width_in": 30.0,
"height_in": 18.0,
"depth_in": 12.0,
"location": "Over microwave",
"elevation_ref": "Elev.1",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Wall Cabinet — 30\"W x 18\"H x 12\"D (Microwave)",
"notes": "Wall Cabinet \u00e2\u20ac\u201d 30\"W x 18\"H x 12\"D (Microwave)",
"source": "manual"
},
{
"item_num": 4,
"cabinet_type": "upper_wall",
"width_mm": 762.0,
"height_mm": 762.0,
"depth_mm": 304.79999999999995,
"width_in": 30.0,
"height_in": 30.0,
"depth_in": 12.0,
"location": "Wall cabinet",
"elevation_ref": "Elev.1",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Wall Cabinet — 30\"W x 30\"H x 12\"D",
"notes": "Wall Cabinet \u00e2\u20ac\u201d 30\"W x 30\"H x 12\"D",
"source": "manual"
},
{
"item_num": 5,
"cabinet_type": "base",
"width_mm": 914.4,
"height_mm": 876.3,
"depth_mm": 609.5999999999999,
"width_in": 36.0,
"height_in": 34.5,
"depth_in": 24.0,
"location": "Base run",
"elevation_ref": "Elev.2",
"confidence": 1.0,
"quantity": 3,
"is_ada": false,
"notes": "Base Cabinet — 36\"W",
"notes": "Base Cabinet \u00e2\u20ac\u201d 36\"W",
"source": "manual"
},
{
"item_num": 6,
"cabinet_type": "appliance_space",
"width_mm": 762.0,
"height_mm": 876.3,
"depth_mm": 609.5999999999999,
"width_in": 30.0,
"height_in": 34.5,
"depth_in": 24.0,
"location": "DW space",
"elevation_ref": "Elev.2",
"confidence": 1.0,
@@ -99,43 +99,43 @@
{
"item_num": 7,
"cabinet_type": "sink_base",
"width_mm": 914.4,
"height_mm": 876.3,
"depth_mm": 609.5999999999999,
"width_in": 36.0,
"height_in": 34.5,
"depth_in": 24.0,
"location": "Sink base",
"elevation_ref": "Elev.2",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Sink Base Cabinet — 36\"W",
"notes": "Sink Base Cabinet \u00e2\u20ac\u201d 36\"W",
"source": "manual"
},
{
"item_num": 8,
"cabinet_type": "base",
"width_mm": 609.5999999999999,
"height_mm": 876.3,
"depth_mm": 609.5999999999999,
"width_in": 24.0,
"height_in": 34.5,
"depth_in": 24.0,
"location": "Base cabinet",
"elevation_ref": "Elev.2",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Base Cabinet — 24\"W",
"notes": "Base Cabinet \u00e2\u20ac\u201d 24\"W",
"source": "manual"
},
{
"item_num": 9,
"cabinet_type": "pantry",
"width_mm": 381.0,
"height_mm": 2133.6,
"depth_mm": 609.5999999999999,
"width_in": 15.0,
"height_in": 84.0,
"depth_in": 24.0,
"location": "Tall pantry",
"elevation_ref": "Elev.2",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Tall Pantry Cabinet — 15\"W",
"notes": "Tall Pantry Cabinet \u00e2\u20ac\u201d 15\"W",
"source": "manual"
}
]
@@ -151,71 +151,71 @@
{
"item_num": 1,
"cabinet_type": "vanity",
"width_mm": 914.4,
"height_mm": 876.3,
"depth_mm": 533.4,
"width_in": 36.0,
"height_in": 34.5,
"depth_in": 21.0,
"location": "Vanity run",
"elevation_ref": "Floor Plan",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Bathroom Vanity — 36\"W",
"notes": "Bathroom Vanity \u00e2\u20ac\u201d 36\"W",
"source": "manual"
},
{
"item_num": 2,
"cabinet_type": "vanity",
"width_mm": 762.0,
"height_mm": 876.3,
"depth_mm": 533.4,
"width_in": 30.0,
"height_in": 34.5,
"depth_in": 21.0,
"location": "Vanity run",
"elevation_ref": "Floor Plan",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Bathroom Vanity — 30\"W",
"notes": "Bathroom Vanity \u00e2\u20ac\u201d 30\"W",
"source": "manual"
},
{
"item_num": 3,
"cabinet_type": "medicine_cabinet",
"width_mm": 914.4,
"height_mm": 762.0,
"depth_mm": 101.6,
"width_in": 36.0,
"height_in": 30.0,
"depth_in": 4.0,
"location": "Mirror cabinet",
"elevation_ref": "Floor Plan",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Medicine Cabinet — 36\"W",
"notes": "Medicine Cabinet \u00e2\u20ac\u201d 36\"W",
"source": "manual"
},
{
"item_num": 4,
"cabinet_type": "medicine_cabinet",
"width_mm": 762.0,
"height_mm": 762.0,
"depth_mm": 101.6,
"width_in": 30.0,
"height_in": 30.0,
"depth_in": 4.0,
"location": "Mirror cabinet",
"elevation_ref": "Floor Plan",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Medicine Cabinet — 30\"W",
"notes": "Medicine Cabinet \u00e2\u20ac\u201d 30\"W",
"source": "manual"
},
{
"item_num": 5,
"cabinet_type": "linen",
"width_mm": 457.2,
"height_mm": 2133.6,
"depth_mm": 457.2,
"width_in": 18.0,
"height_in": 84.0,
"depth_in": 18.0,
"location": "Linen storage",
"elevation_ref": "Elev.3",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Linen Cabinet — 18\"W",
"notes": "Linen Cabinet \u00e2\u20ac\u201d 18\"W",
"source": "manual"
}
]
@@ -15,79 +15,79 @@
{
"item_num": 1,
"cabinet_type": "upper_wall",
"width_mm": 914.4,
"height_mm": 762.0,
"depth_mm": 304.79999999999995,
"width_in": 36.0,
"height_in": 30.0,
"depth_in": 12.0,
"location": "Standard upper",
"elevation_ref": "Elev.1",
"confidence": 1.0,
"quantity": 3,
"is_ada": true,
"notes": "Wall Cabinet — 36\"W x 30\"H x 12\"D",
"notes": "Wall Cabinet \u00e2\u20ac\u201d 36\"W x 30\"H x 12\"D",
"source": "manual"
},
{
"item_num": 2,
"cabinet_type": "appliance_space",
"width_mm": 762.0,
"height_mm": 304.79999999999995,
"depth_mm": 304.79999999999995,
"width_in": 30.0,
"height_in": 12.0,
"depth_in": 12.0,
"location": "Over fridge",
"elevation_ref": "Elev.1",
"confidence": 1.0,
"quantity": 1,
"is_ada": true,
"notes": "Wall Cabinet — 30\"W x 12\"H x 12\"D (Fridge)",
"notes": "Wall Cabinet \u00e2\u20ac\u201d 30\"W x 12\"H x 12\"D (Fridge)",
"source": "manual"
},
{
"item_num": 3,
"cabinet_type": "upper_wall",
"width_mm": 762.0,
"height_mm": 457.2,
"depth_mm": 304.79999999999995,
"width_in": 30.0,
"height_in": 18.0,
"depth_in": 12.0,
"location": "Over microwave",
"elevation_ref": "Elev.1",
"confidence": 1.0,
"quantity": 1,
"is_ada": true,
"notes": "Wall Cabinet — 30\"W x 18\"H x 12\"D (Microwave)",
"notes": "Wall Cabinet \u00e2\u20ac\u201d 30\"W x 18\"H x 12\"D (Microwave)",
"source": "manual"
},
{
"item_num": 4,
"cabinet_type": "upper_wall",
"width_mm": 762.0,
"height_mm": 762.0,
"depth_mm": 304.79999999999995,
"width_in": 30.0,
"height_in": 30.0,
"depth_in": 12.0,
"location": "Wall cabinet",
"elevation_ref": "Elev.1",
"confidence": 1.0,
"quantity": 1,
"is_ada": true,
"notes": "Wall Cabinet — 30\"W x 30\"H x 12\"D",
"notes": "Wall Cabinet \u00e2\u20ac\u201d 30\"W x 30\"H x 12\"D",
"source": "manual"
},
{
"item_num": 5,
"cabinet_type": "base",
"width_mm": 914.4,
"height_mm": 876.3,
"depth_mm": 609.5999999999999,
"width_in": 36.0,
"height_in": 34.5,
"depth_in": 24.0,
"location": "Base run",
"elevation_ref": "Elev.2",
"confidence": 1.0,
"quantity": 3,
"is_ada": true,
"notes": "Base Cabinet — 36\"W (Accessible)",
"notes": "Base Cabinet \u00e2\u20ac\u201d 36\"W (Accessible)",
"source": "manual"
},
{
"item_num": 6,
"cabinet_type": "appliance_space",
"width_mm": 762.0,
"height_mm": 876.3,
"depth_mm": 609.5999999999999,
"width_in": 30.0,
"height_in": 34.5,
"depth_in": 24.0,
"location": "DW space",
"elevation_ref": "Elev.2",
"confidence": 1.0,
@@ -99,43 +99,43 @@
{
"item_num": 7,
"cabinet_type": "sink_base",
"width_mm": 914.4,
"height_mm": 876.3,
"depth_mm": 609.5999999999999,
"width_in": 36.0,
"height_in": 34.5,
"depth_in": 24.0,
"location": "Sink base",
"elevation_ref": "Elev.2",
"confidence": 1.0,
"quantity": 1,
"is_ada": true,
"notes": "Sink Base Cabinet — 36\"W (Accessible)",
"notes": "Sink Base Cabinet \u00e2\u20ac\u201d 36\"W (Accessible)",
"source": "manual"
},
{
"item_num": 8,
"cabinet_type": "base",
"width_mm": 609.5999999999999,
"height_mm": 876.3,
"depth_mm": 609.5999999999999,
"width_in": 24.0,
"height_in": 34.5,
"depth_in": 24.0,
"location": "Base cabinet",
"elevation_ref": "Elev.2",
"confidence": 1.0,
"quantity": 1,
"is_ada": true,
"notes": "Base Cabinet — 24\"W (Accessible)",
"notes": "Base Cabinet \u00e2\u20ac\u201d 24\"W (Accessible)",
"source": "manual"
},
{
"item_num": 9,
"cabinet_type": "pantry",
"width_mm": 381.0,
"height_mm": 2133.6,
"depth_mm": 609.5999999999999,
"width_in": 15.0,
"height_in": 84.0,
"depth_in": 24.0,
"location": "Tall pantry",
"elevation_ref": "Elev.2",
"confidence": 1.0,
"quantity": 1,
"is_ada": true,
"notes": "Tall Pantry Cabinet — 15\"W",
"notes": "Tall Pantry Cabinet \u00e2\u20ac\u201d 15\"W",
"source": "manual"
}
]
@@ -151,71 +151,71 @@
{
"item_num": 1,
"cabinet_type": "vanity",
"width_mm": 914.4,
"height_mm": 876.3,
"depth_mm": 533.4,
"width_in": 36.0,
"height_in": 34.5,
"depth_in": 21.0,
"location": "Vanity run",
"elevation_ref": "Floor Plan",
"confidence": 1.0,
"quantity": 1,
"is_ada": true,
"notes": "Bathroom Vanity — 36\"W (Accessible)",
"notes": "Bathroom Vanity \u00e2\u20ac\u201d 36\"W (Accessible)",
"source": "manual"
},
{
"item_num": 2,
"cabinet_type": "vanity",
"width_mm": 762.0,
"height_mm": 876.3,
"depth_mm": 533.4,
"width_in": 30.0,
"height_in": 34.5,
"depth_in": 21.0,
"location": "Vanity run",
"elevation_ref": "Floor Plan",
"confidence": 1.0,
"quantity": 1,
"is_ada": true,
"notes": "Bathroom Vanity — 30\"W (Accessible)",
"notes": "Bathroom Vanity \u00e2\u20ac\u201d 30\"W (Accessible)",
"source": "manual"
},
{
"item_num": 3,
"cabinet_type": "medicine_cabinet",
"width_mm": 914.4,
"height_mm": 762.0,
"depth_mm": 101.6,
"width_in": 36.0,
"height_in": 30.0,
"depth_in": 4.0,
"location": "Mirror cabinet",
"elevation_ref": "Floor Plan",
"confidence": 1.0,
"quantity": 1,
"is_ada": true,
"notes": "Medicine Cabinet — 36\"W",
"notes": "Medicine Cabinet \u00e2\u20ac\u201d 36\"W",
"source": "manual"
},
{
"item_num": 4,
"cabinet_type": "medicine_cabinet",
"width_mm": 762.0,
"height_mm": 762.0,
"depth_mm": 101.6,
"width_in": 30.0,
"height_in": 30.0,
"depth_in": 4.0,
"location": "Mirror cabinet",
"elevation_ref": "Floor Plan",
"confidence": 1.0,
"quantity": 1,
"is_ada": true,
"notes": "Medicine Cabinet — 30\"W",
"notes": "Medicine Cabinet \u00e2\u20ac\u201d 30\"W",
"source": "manual"
},
{
"item_num": 5,
"cabinet_type": "linen",
"width_mm": 457.2,
"height_mm": 2133.6,
"depth_mm": 457.2,
"width_in": 18.0,
"height_in": 84.0,
"depth_in": 18.0,
"location": "Linen storage",
"elevation_ref": "Elev.3",
"confidence": 1.0,
"quantity": 1,
"is_ada": true,
"notes": "Linen Cabinet — 18\"W",
"notes": "Linen Cabinet \u00e2\u20ac\u201d 18\"W",
"source": "manual"
}
]
@@ -15,79 +15,79 @@
{
"item_num": 1,
"cabinet_type": "upper_wall",
"width_mm": 914.4,
"height_mm": 762.0,
"depth_mm": 304.79999999999995,
"width_in": 36.0,
"height_in": 30.0,
"depth_in": 12.0,
"location": "Standard upper",
"elevation_ref": "Elev.1",
"confidence": 1.0,
"quantity": 3,
"is_ada": false,
"notes": "Wall Cabinet — 36\"W x 30\"H x 12\"D",
"notes": "Wall Cabinet \u00e2\u20ac\u201d 36\"W x 30\"H x 12\"D",
"source": "manual"
},
{
"item_num": 2,
"cabinet_type": "appliance_space",
"width_mm": 762.0,
"height_mm": 304.79999999999995,
"depth_mm": 304.79999999999995,
"width_in": 30.0,
"height_in": 12.0,
"depth_in": 12.0,
"location": "Over fridge",
"elevation_ref": "Elev.1",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Wall Cabinet — 30\"W x 12\"H x 12\"D (Fridge)",
"notes": "Wall Cabinet \u00e2\u20ac\u201d 30\"W x 12\"H x 12\"D (Fridge)",
"source": "manual"
},
{
"item_num": 3,
"cabinet_type": "upper_wall",
"width_mm": 762.0,
"height_mm": 457.2,
"depth_mm": 304.79999999999995,
"width_in": 30.0,
"height_in": 18.0,
"depth_in": 12.0,
"location": "Over microwave",
"elevation_ref": "Elev.1",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Wall Cabinet — 30\"W x 18\"H x 12\"D (Microwave)",
"notes": "Wall Cabinet \u00e2\u20ac\u201d 30\"W x 18\"H x 12\"D (Microwave)",
"source": "manual"
},
{
"item_num": 4,
"cabinet_type": "upper_wall",
"width_mm": 762.0,
"height_mm": 762.0,
"depth_mm": 304.79999999999995,
"width_in": 30.0,
"height_in": 30.0,
"depth_in": 12.0,
"location": "Wall cabinet",
"elevation_ref": "Elev.1",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Wall Cabinet — 30\"W x 30\"H x 12\"D",
"notes": "Wall Cabinet \u00e2\u20ac\u201d 30\"W x 30\"H x 12\"D",
"source": "manual"
},
{
"item_num": 5,
"cabinet_type": "base",
"width_mm": 914.4,
"height_mm": 876.3,
"depth_mm": 609.5999999999999,
"width_in": 36.0,
"height_in": 34.5,
"depth_in": 24.0,
"location": "Base run",
"elevation_ref": "Elev.2",
"confidence": 1.0,
"quantity": 3,
"is_ada": false,
"notes": "Base Cabinet — 36\"W",
"notes": "Base Cabinet \u00e2\u20ac\u201d 36\"W",
"source": "manual"
},
{
"item_num": 6,
"cabinet_type": "appliance_space",
"width_mm": 762.0,
"height_mm": 876.3,
"depth_mm": 609.5999999999999,
"width_in": 30.0,
"height_in": 34.5,
"depth_in": 24.0,
"location": "DW space",
"elevation_ref": "Elev.2",
"confidence": 1.0,
@@ -99,43 +99,43 @@
{
"item_num": 7,
"cabinet_type": "sink_base",
"width_mm": 914.4,
"height_mm": 876.3,
"depth_mm": 609.5999999999999,
"width_in": 36.0,
"height_in": 34.5,
"depth_in": 24.0,
"location": "Sink base",
"elevation_ref": "Elev.2",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Sink Base Cabinet — 36\"W",
"notes": "Sink Base Cabinet \u00e2\u20ac\u201d 36\"W",
"source": "manual"
},
{
"item_num": 8,
"cabinet_type": "base",
"width_mm": 609.5999999999999,
"height_mm": 876.3,
"depth_mm": 609.5999999999999,
"width_in": 24.0,
"height_in": 34.5,
"depth_in": 24.0,
"location": "Base cabinet",
"elevation_ref": "Elev.2",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Base Cabinet — 24\"W",
"notes": "Base Cabinet \u00e2\u20ac\u201d 24\"W",
"source": "manual"
},
{
"item_num": 9,
"cabinet_type": "pantry",
"width_mm": 381.0,
"height_mm": 2133.6,
"depth_mm": 609.5999999999999,
"width_in": 15.0,
"height_in": 84.0,
"depth_in": 24.0,
"location": "Tall pantry",
"elevation_ref": "Elev.2",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Tall Pantry Cabinet — 15\"W",
"notes": "Tall Pantry Cabinet \u00e2\u20ac\u201d 15\"W",
"source": "manual"
}
]
@@ -151,71 +151,71 @@
{
"item_num": 1,
"cabinet_type": "vanity",
"width_mm": 914.4,
"height_mm": 876.3,
"depth_mm": 533.4,
"width_in": 36.0,
"height_in": 34.5,
"depth_in": 21.0,
"location": "Vanity run",
"elevation_ref": "Floor Plan",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Bathroom Vanity — 36\"W",
"notes": "Bathroom Vanity \u00e2\u20ac\u201d 36\"W",
"source": "manual"
},
{
"item_num": 2,
"cabinet_type": "vanity",
"width_mm": 762.0,
"height_mm": 876.3,
"depth_mm": 533.4,
"width_in": 30.0,
"height_in": 34.5,
"depth_in": 21.0,
"location": "Vanity run",
"elevation_ref": "Floor Plan",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Bathroom Vanity — 30\"W",
"notes": "Bathroom Vanity \u00e2\u20ac\u201d 30\"W",
"source": "manual"
},
{
"item_num": 3,
"cabinet_type": "medicine_cabinet",
"width_mm": 914.4,
"height_mm": 762.0,
"depth_mm": 101.6,
"width_in": 36.0,
"height_in": 30.0,
"depth_in": 4.0,
"location": "Mirror cabinet",
"elevation_ref": "Floor Plan",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Medicine Cabinet — 36\"W",
"notes": "Medicine Cabinet \u00e2\u20ac\u201d 36\"W",
"source": "manual"
},
{
"item_num": 4,
"cabinet_type": "medicine_cabinet",
"width_mm": 762.0,
"height_mm": 762.0,
"depth_mm": 101.6,
"width_in": 30.0,
"height_in": 30.0,
"depth_in": 4.0,
"location": "Mirror cabinet",
"elevation_ref": "Floor Plan",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Medicine Cabinet — 30\"W",
"notes": "Medicine Cabinet \u00e2\u20ac\u201d 30\"W",
"source": "manual"
},
{
"item_num": 5,
"cabinet_type": "linen",
"width_mm": 457.2,
"height_mm": 2133.6,
"depth_mm": 457.2,
"width_in": 18.0,
"height_in": 84.0,
"depth_in": 18.0,
"location": "Linen storage",
"elevation_ref": "Elev.3",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Linen Cabinet — 18\"W",
"notes": "Linen Cabinet \u00e2\u20ac\u201d 18\"W",
"source": "manual"
}
]
@@ -15,79 +15,79 @@
{
"item_num": 1,
"cabinet_type": "upper_wall",
"width_mm": 914.4,
"height_mm": 762.0,
"depth_mm": 304.79999999999995,
"width_in": 36.0,
"height_in": 30.0,
"depth_in": 12.0,
"location": "Standard upper",
"elevation_ref": "Elev.1",
"confidence": 1.0,
"quantity": 3,
"is_ada": false,
"notes": "Wall Cabinet — 36\"W x 30\"H x 12\"D",
"notes": "Wall Cabinet \u00e2\u20ac\u201d 36\"W x 30\"H x 12\"D",
"source": "manual"
},
{
"item_num": 2,
"cabinet_type": "upper_wall",
"width_mm": 762.0,
"height_mm": 762.0,
"depth_mm": 304.79999999999995,
"width_in": 30.0,
"height_in": 30.0,
"depth_in": 12.0,
"location": "Standard upper",
"elevation_ref": "Elev.1",
"confidence": 1.0,
"quantity": 2,
"is_ada": false,
"notes": "Wall Cabinet — 30\"W x 30\"H x 12\"D",
"notes": "Wall Cabinet \u00e2\u20ac\u201d 30\"W x 30\"H x 12\"D",
"source": "manual"
},
{
"item_num": 3,
"cabinet_type": "appliance_space",
"width_mm": 762.0,
"height_mm": 304.79999999999995,
"depth_mm": 304.79999999999995,
"width_in": 30.0,
"height_in": 12.0,
"depth_in": 12.0,
"location": "Over fridge",
"elevation_ref": "Elev.1",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Wall Cabinet — 30\"W x 12\"H x 12\"D (Fridge)",
"notes": "Wall Cabinet \u00e2\u20ac\u201d 30\"W x 12\"H x 12\"D (Fridge)",
"source": "manual"
},
{
"item_num": 4,
"cabinet_type": "upper_wall",
"width_mm": 762.0,
"height_mm": 457.2,
"depth_mm": 304.79999999999995,
"width_in": 30.0,
"height_in": 18.0,
"depth_in": 12.0,
"location": "Over microwave",
"elevation_ref": "Elev.1",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Wall Cabinet — 30\"W x 18\"H x 12\"D (Microwave)",
"notes": "Wall Cabinet \u00e2\u20ac\u201d 30\"W x 18\"H x 12\"D (Microwave)",
"source": "manual"
},
{
"item_num": 5,
"cabinet_type": "base",
"width_mm": 914.4,
"height_mm": 876.3,
"depth_mm": 609.5999999999999,
"width_in": 36.0,
"height_in": 34.5,
"depth_in": 24.0,
"location": "Base run",
"elevation_ref": "Elev.2",
"confidence": 1.0,
"quantity": 3,
"is_ada": false,
"notes": "Base Cabinet — 36\"W",
"notes": "Base Cabinet \u00e2\u20ac\u201d 36\"W",
"source": "manual"
},
{
"item_num": 6,
"cabinet_type": "appliance_space",
"width_mm": 762.0,
"height_mm": 876.3,
"depth_mm": 609.5999999999999,
"width_in": 30.0,
"height_in": 34.5,
"depth_in": 24.0,
"location": "DW space",
"elevation_ref": "Elev.2",
"confidence": 1.0,
@@ -99,37 +99,37 @@
{
"item_num": 7,
"cabinet_type": "sink_base",
"width_mm": 914.4,
"height_mm": 876.3,
"depth_mm": 609.5999999999999,
"width_in": 36.0,
"height_in": 34.5,
"depth_in": 24.0,
"location": "Sink base",
"elevation_ref": "Elev.2",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Sink Base Cabinet — 36\"W",
"notes": "Sink Base Cabinet \u00e2\u20ac\u201d 36\"W",
"source": "manual"
},
{
"item_num": 8,
"cabinet_type": "base",
"width_mm": 609.5999999999999,
"height_mm": 876.3,
"depth_mm": 609.5999999999999,
"width_in": 24.0,
"height_in": 34.5,
"depth_in": 24.0,
"location": "Base cabinet",
"elevation_ref": "Elev.2",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Base Cabinet — 24\"W",
"notes": "Base Cabinet \u00e2\u20ac\u201d 24\"W",
"source": "manual"
},
{
"item_num": 9,
"cabinet_type": "base",
"width_mm": 914.4,
"height_mm": 876.3,
"depth_mm": 609.5999999999999,
"width_in": 36.0,
"height_in": 34.5,
"depth_in": 24.0,
"location": "Roll-out drawers",
"elevation_ref": "Elev.2",
"confidence": 1.0,
@@ -141,15 +141,15 @@
{
"item_num": 10,
"cabinet_type": "pantry",
"width_mm": 381.0,
"height_mm": 2133.6,
"depth_mm": 609.5999999999999,
"width_in": 15.0,
"height_in": 84.0,
"depth_in": 24.0,
"location": "Tall pantry",
"elevation_ref": "Elev.2",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Tall Pantry Cabinet — 15\"W",
"notes": "Tall Pantry Cabinet \u00e2\u20ac\u201d 15\"W",
"source": "manual"
}
]
@@ -165,71 +165,71 @@
{
"item_num": 1,
"cabinet_type": "vanity",
"width_mm": 1524.0,
"height_mm": 876.3,
"depth_mm": 533.4,
"width_in": 60.0,
"height_in": 34.5,
"depth_in": 21.0,
"location": "Double sink vanity",
"elevation_ref": "Floor Plan",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Bathroom Vanity — 60\"W",
"notes": "Bathroom Vanity \u00e2\u20ac\u201d 60\"W",
"source": "manual"
},
{
"item_num": 2,
"cabinet_type": "vanity",
"width_mm": 914.4,
"height_mm": 876.3,
"depth_mm": 533.4,
"width_in": 36.0,
"height_in": 34.5,
"depth_in": 21.0,
"location": "Single sink vanity",
"elevation_ref": "Floor Plan",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Bathroom Vanity — 36\"W",
"notes": "Bathroom Vanity \u00e2\u20ac\u201d 36\"W",
"source": "manual"
},
{
"item_num": 3,
"cabinet_type": "medicine_cabinet",
"width_mm": 1524.0,
"height_mm": 762.0,
"depth_mm": 101.6,
"width_in": 60.0,
"height_in": 30.0,
"depth_in": 4.0,
"location": "Double mirror",
"elevation_ref": "Floor Plan",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Medicine Cabinet — 60\"W",
"notes": "Medicine Cabinet \u00e2\u20ac\u201d 60\"W",
"source": "manual"
},
{
"item_num": 4,
"cabinet_type": "medicine_cabinet",
"width_mm": 914.4,
"height_mm": 762.0,
"depth_mm": 101.6,
"width_in": 36.0,
"height_in": 30.0,
"depth_in": 4.0,
"location": "Single mirror",
"elevation_ref": "Floor Plan",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Medicine Cabinet — 36\"W",
"notes": "Medicine Cabinet \u00e2\u20ac\u201d 36\"W",
"source": "manual"
},
{
"item_num": 5,
"cabinet_type": "linen",
"width_mm": 457.2,
"height_mm": 2133.6,
"depth_mm": 457.2,
"width_in": 18.0,
"height_in": 84.0,
"depth_in": 18.0,
"location": "Linen storage",
"elevation_ref": "Elev.3",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Linen Cabinet — 18\"W",
"notes": "Linen Cabinet \u00e2\u20ac\u201d 18\"W",
"source": "manual"
}
]
@@ -15,79 +15,79 @@
{
"item_num": 1,
"cabinet_type": "upper_wall",
"width_mm": 914.4,
"height_mm": 762.0,
"depth_mm": 304.79999999999995,
"width_in": 36.0,
"height_in": 30.0,
"depth_in": 12.0,
"location": "Standard upper",
"elevation_ref": "Elev.1",
"confidence": 1.0,
"quantity": 3,
"is_ada": false,
"notes": "Wall Cabinet — 36\"W x 30\"H x 12\"D",
"notes": "Wall Cabinet \u00e2\u20ac\u201d 36\"W x 30\"H x 12\"D",
"source": "manual"
},
{
"item_num": 2,
"cabinet_type": "upper_wall",
"width_mm": 762.0,
"height_mm": 762.0,
"depth_mm": 304.79999999999995,
"width_in": 30.0,
"height_in": 30.0,
"depth_in": 12.0,
"location": "Standard upper",
"elevation_ref": "Elev.1",
"confidence": 1.0,
"quantity": 2,
"is_ada": false,
"notes": "Wall Cabinet — 30\"W x 30\"H x 12\"D",
"notes": "Wall Cabinet \u00e2\u20ac\u201d 30\"W x 30\"H x 12\"D",
"source": "manual"
},
{
"item_num": 3,
"cabinet_type": "appliance_space",
"width_mm": 762.0,
"height_mm": 304.79999999999995,
"depth_mm": 304.79999999999995,
"width_in": 30.0,
"height_in": 12.0,
"depth_in": 12.0,
"location": "Over fridge",
"elevation_ref": "Elev.1",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Wall Cabinet — 30\"W x 12\"H x 12\"D (Fridge)",
"notes": "Wall Cabinet \u00e2\u20ac\u201d 30\"W x 12\"H x 12\"D (Fridge)",
"source": "manual"
},
{
"item_num": 4,
"cabinet_type": "upper_wall",
"width_mm": 762.0,
"height_mm": 457.2,
"depth_mm": 304.79999999999995,
"width_in": 30.0,
"height_in": 18.0,
"depth_in": 12.0,
"location": "Over microwave",
"elevation_ref": "Elev.1",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Wall Cabinet — 30\"W x 18\"H x 12\"D (Microwave)",
"notes": "Wall Cabinet \u00e2\u20ac\u201d 30\"W x 18\"H x 12\"D (Microwave)",
"source": "manual"
},
{
"item_num": 5,
"cabinet_type": "base",
"width_mm": 914.4,
"height_mm": 876.3,
"depth_mm": 609.5999999999999,
"width_in": 36.0,
"height_in": 34.5,
"depth_in": 24.0,
"location": "Base run",
"elevation_ref": "Elev.2",
"confidence": 1.0,
"quantity": 3,
"is_ada": false,
"notes": "Base Cabinet — 36\"W",
"notes": "Base Cabinet \u00e2\u20ac\u201d 36\"W",
"source": "manual"
},
{
"item_num": 6,
"cabinet_type": "appliance_space",
"width_mm": 762.0,
"height_mm": 876.3,
"depth_mm": 609.5999999999999,
"width_in": 30.0,
"height_in": 34.5,
"depth_in": 24.0,
"location": "DW space",
"elevation_ref": "Elev.2",
"confidence": 1.0,
@@ -99,37 +99,37 @@
{
"item_num": 7,
"cabinet_type": "sink_base",
"width_mm": 914.4,
"height_mm": 876.3,
"depth_mm": 609.5999999999999,
"width_in": 36.0,
"height_in": 34.5,
"depth_in": 24.0,
"location": "Sink base",
"elevation_ref": "Elev.2",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Sink Base Cabinet — 36\"W",
"notes": "Sink Base Cabinet \u00e2\u20ac\u201d 36\"W",
"source": "manual"
},
{
"item_num": 8,
"cabinet_type": "base",
"width_mm": 609.5999999999999,
"height_mm": 876.3,
"depth_mm": 609.5999999999999,
"width_in": 24.0,
"height_in": 34.5,
"depth_in": 24.0,
"location": "Base cabinet",
"elevation_ref": "Elev.2",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Base Cabinet — 24\"W",
"notes": "Base Cabinet \u00e2\u20ac\u201d 24\"W",
"source": "manual"
},
{
"item_num": 9,
"cabinet_type": "base",
"width_mm": 914.4,
"height_mm": 876.3,
"depth_mm": 609.5999999999999,
"width_in": 36.0,
"height_in": 34.5,
"depth_in": 24.0,
"location": "Roll-out drawers",
"elevation_ref": "Elev.2",
"confidence": 1.0,
@@ -141,15 +141,15 @@
{
"item_num": 10,
"cabinet_type": "pantry",
"width_mm": 381.0,
"height_mm": 2133.6,
"depth_mm": 609.5999999999999,
"width_in": 15.0,
"height_in": 84.0,
"depth_in": 24.0,
"location": "Tall pantry",
"elevation_ref": "Elev.2",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Tall Pantry Cabinet — 15\"W",
"notes": "Tall Pantry Cabinet \u00e2\u20ac\u201d 15\"W",
"source": "manual"
}
]
@@ -165,71 +165,71 @@
{
"item_num": 1,
"cabinet_type": "vanity",
"width_mm": 1524.0,
"height_mm": 876.3,
"depth_mm": 533.4,
"width_in": 60.0,
"height_in": 34.5,
"depth_in": 21.0,
"location": "Double sink vanity",
"elevation_ref": "Floor Plan",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Bathroom Vanity — 60\"W",
"notes": "Bathroom Vanity \u00e2\u20ac\u201d 60\"W",
"source": "manual"
},
{
"item_num": 2,
"cabinet_type": "vanity",
"width_mm": 914.4,
"height_mm": 876.3,
"depth_mm": 533.4,
"width_in": 36.0,
"height_in": 34.5,
"depth_in": 21.0,
"location": "Single sink vanity",
"elevation_ref": "Floor Plan",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Bathroom Vanity — 36\"W",
"notes": "Bathroom Vanity \u00e2\u20ac\u201d 36\"W",
"source": "manual"
},
{
"item_num": 3,
"cabinet_type": "medicine_cabinet",
"width_mm": 1524.0,
"height_mm": 762.0,
"depth_mm": 101.6,
"width_in": 60.0,
"height_in": 30.0,
"depth_in": 4.0,
"location": "Double mirror",
"elevation_ref": "Floor Plan",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Medicine Cabinet — 60\"W",
"notes": "Medicine Cabinet \u00e2\u20ac\u201d 60\"W",
"source": "manual"
},
{
"item_num": 4,
"cabinet_type": "medicine_cabinet",
"width_mm": 914.4,
"height_mm": 762.0,
"depth_mm": 101.6,
"width_in": 36.0,
"height_in": 30.0,
"depth_in": 4.0,
"location": "Single mirror",
"elevation_ref": "Floor Plan",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Medicine Cabinet — 36\"W",
"notes": "Medicine Cabinet \u00e2\u20ac\u201d 36\"W",
"source": "manual"
},
{
"item_num": 5,
"cabinet_type": "linen",
"width_mm": 457.2,
"height_mm": 2133.6,
"depth_mm": 457.2,
"width_in": 18.0,
"height_in": 84.0,
"depth_in": 18.0,
"location": "Linen storage",
"elevation_ref": "Elev.3",
"confidence": 1.0,
"quantity": 1,
"is_ada": false,
"notes": "Linen Cabinet — 18\"W",
"notes": "Linen Cabinet \u00e2\u20ac\u201d 18\"W",
"source": "manual"
}
]
@@ -15,79 +15,79 @@
{
"item_num": 1,
"cabinet_type": "upper_wall",
"width_mm": 914.4,
"height_mm": 762.0,
"depth_mm": 304.79999999999995,
"width_in": 36.0,
"height_in": 30.0,
"depth_in": 12.0,
"location": "Standard upper",
"elevation_ref": "Elev.1",
"confidence": 1.0,
"quantity": 3,
"is_ada": true,
"notes": "Wall Cabinet — 36\"W x 30\"H x 12\"D",
"notes": "Wall Cabinet \u00e2\u20ac\u201d 36\"W x 30\"H x 12\"D",
"source": "manual"
},
{
"item_num": 2,
"cabinet_type": "upper_wall",
"width_mm": 762.0,
"height_mm": 762.0,
"depth_mm": 304.79999999999995,
"width_in": 30.0,
"height_in": 30.0,
"depth_in": 12.0,
"location": "Standard upper",
"elevation_ref": "Elev.1",
"confidence": 1.0,
"quantity": 2,
"is_ada": true,
"notes": "Wall Cabinet — 30\"W x 30\"H x 12\"D",
"notes": "Wall Cabinet \u00e2\u20ac\u201d 30\"W x 30\"H x 12\"D",
"source": "manual"
},
{
"item_num": 3,
"cabinet_type": "appliance_space",
"width_mm": 762.0,
"height_mm": 304.79999999999995,
"depth_mm": 304.79999999999995,
"width_in": 30.0,
"height_in": 12.0,
"depth_in": 12.0,
"location": "Over fridge",
"elevation_ref": "Elev.1",
"confidence": 1.0,
"quantity": 1,
"is_ada": true,
"notes": "Wall Cabinet — 30\"W x 12\"H x 12\"D (Fridge)",
"notes": "Wall Cabinet \u00e2\u20ac\u201d 30\"W x 12\"H x 12\"D (Fridge)",
"source": "manual"
},
{
"item_num": 4,
"cabinet_type": "upper_wall",
"width_mm": 762.0,
"height_mm": 457.2,
"depth_mm": 304.79999999999995,
"width_in": 30.0,
"height_in": 18.0,
"depth_in": 12.0,
"location": "Over microwave",
"elevation_ref": "Elev.1",
"confidence": 1.0,
"quantity": 1,
"is_ada": true,
"notes": "Wall Cabinet — 30\"W x 18\"H x 12\"D (Microwave)",
"notes": "Wall Cabinet \u00e2\u20ac\u201d 30\"W x 18\"H x 12\"D (Microwave)",
"source": "manual"
},
{
"item_num": 5,
"cabinet_type": "base",
"width_mm": 914.4,
"height_mm": 876.3,
"depth_mm": 609.5999999999999,
"width_in": 36.0,
"height_in": 34.5,
"depth_in": 24.0,
"location": "Base run",
"elevation_ref": "Elev.2",
"confidence": 1.0,
"quantity": 3,
"is_ada": true,
"notes": "Base Cabinet — 36\"W (Accessible)",
"notes": "Base Cabinet \u00e2\u20ac\u201d 36\"W (Accessible)",
"source": "manual"
},
{
"item_num": 6,
"cabinet_type": "appliance_space",
"width_mm": 762.0,
"height_mm": 876.3,
"depth_mm": 609.5999999999999,
"width_in": 30.0,
"height_in": 34.5,
"depth_in": 24.0,
"location": "DW space",
"elevation_ref": "Elev.2",
"confidence": 1.0,
@@ -99,37 +99,37 @@
{
"item_num": 7,
"cabinet_type": "sink_base",
"width_mm": 914.4,
"height_mm": 876.3,
"depth_mm": 609.5999999999999,
"width_in": 36.0,
"height_in": 34.5,
"depth_in": 24.0,
"location": "Sink base",
"elevation_ref": "Elev.2",
"confidence": 1.0,
"quantity": 1,
"is_ada": true,
"notes": "Sink Base Cabinet — 36\"W (Accessible)",
"notes": "Sink Base Cabinet \u00e2\u20ac\u201d 36\"W (Accessible)",
"source": "manual"
},
{
"item_num": 8,
"cabinet_type": "base",
"width_mm": 609.5999999999999,
"height_mm": 876.3,
"depth_mm": 609.5999999999999,
"width_in": 24.0,
"height_in": 34.5,
"depth_in": 24.0,
"location": "Base cabinet",
"elevation_ref": "Elev.2",
"confidence": 1.0,
"quantity": 1,
"is_ada": true,
"notes": "Base Cabinet — 24\"W (Accessible)",
"notes": "Base Cabinet \u00e2\u20ac\u201d 24\"W (Accessible)",
"source": "manual"
},
{
"item_num": 9,
"cabinet_type": "base",
"width_mm": 914.4,
"height_mm": 876.3,
"depth_mm": 609.5999999999999,
"width_in": 36.0,
"height_in": 34.5,
"depth_in": 24.0,
"location": "Roll-out drawers",
"elevation_ref": "Elev.2",
"confidence": 1.0,
@@ -141,15 +141,15 @@
{
"item_num": 10,
"cabinet_type": "pantry",
"width_mm": 381.0,
"height_mm": 2133.6,
"depth_mm": 609.5999999999999,
"width_in": 15.0,
"height_in": 84.0,
"depth_in": 24.0,
"location": "Tall pantry",
"elevation_ref": "Elev.2",
"confidence": 1.0,
"quantity": 1,
"is_ada": true,
"notes": "Tall Pantry Cabinet — 15\"W",
"notes": "Tall Pantry Cabinet \u00e2\u20ac\u201d 15\"W",
"source": "manual"
}
]
@@ -165,71 +165,71 @@
{
"item_num": 1,
"cabinet_type": "vanity",
"width_mm": 1524.0,
"height_mm": 876.3,
"depth_mm": 533.4,
"width_in": 60.0,
"height_in": 34.5,
"depth_in": 21.0,
"location": "Double sink vanity",
"elevation_ref": "Floor Plan",
"confidence": 1.0,
"quantity": 1,
"is_ada": true,
"notes": "Bathroom Vanity — 60\"W (Accessible)",
"notes": "Bathroom Vanity \u00e2\u20ac\u201d 60\"W (Accessible)",
"source": "manual"
},
{
"item_num": 2,
"cabinet_type": "vanity",
"width_mm": 914.4,
"height_mm": 876.3,
"depth_mm": 533.4,
"width_in": 36.0,
"height_in": 34.5,
"depth_in": 21.0,
"location": "Single sink vanity",
"elevation_ref": "Floor Plan",
"confidence": 1.0,
"quantity": 1,
"is_ada": true,
"notes": "Bathroom Vanity — 36\"W (Accessible)",
"notes": "Bathroom Vanity \u00e2\u20ac\u201d 36\"W (Accessible)",
"source": "manual"
},
{
"item_num": 3,
"cabinet_type": "medicine_cabinet",
"width_mm": 1524.0,
"height_mm": 762.0,
"depth_mm": 101.6,
"width_in": 60.0,
"height_in": 30.0,
"depth_in": 4.0,
"location": "Double mirror",
"elevation_ref": "Floor Plan",
"confidence": 1.0,
"quantity": 1,
"is_ada": true,
"notes": "Medicine Cabinet — 60\"W",
"notes": "Medicine Cabinet \u00e2\u20ac\u201d 60\"W",
"source": "manual"
},
{
"item_num": 4,
"cabinet_type": "medicine_cabinet",
"width_mm": 914.4,
"height_mm": 762.0,
"depth_mm": 101.6,
"width_in": 36.0,
"height_in": 30.0,
"depth_in": 4.0,
"location": "Single mirror",
"elevation_ref": "Floor Plan",
"confidence": 1.0,
"quantity": 1,
"is_ada": true,
"notes": "Medicine Cabinet — 36\"W",
"notes": "Medicine Cabinet \u00e2\u20ac\u201d 36\"W",
"source": "manual"
},
{
"item_num": 5,
"cabinet_type": "linen",
"width_mm": 457.2,
"height_mm": 2133.6,
"depth_mm": 457.2,
"width_in": 18.0,
"height_in": 84.0,
"depth_in": 18.0,
"location": "Linen storage",
"elevation_ref": "Elev.3",
"confidence": 1.0,
"quantity": 1,
"is_ada": true,
"notes": "Linen Cabinet — 18\"W",
"notes": "Linen Cabinet \u00e2\u20ac\u201d 18\"W",
"source": "manual"
}
]

Some files were not shown because too many files have changed in this diff Show More