From 982bcab0453b9eea20d3f0161a8ccea6374ebdd0 Mon Sep 17 00:00:00 2001 From: guille Date: Thu, 27 Jun 2024 16:35:24 +0200 Subject: [PATCH] IDFL Add objects without archetype as shadow objects instead --- hub/exports/building_energy/idf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hub/exports/building_energy/idf.py b/hub/exports/building_energy/idf.py index cf1646e3..514f6ae4 100644 --- a/hub/exports/building_energy/idf.py +++ b/hub/exports/building_energy/idf.py @@ -513,11 +513,11 @@ class Idf: self._lod = self._city.level_of_detail.geometry for building in self._city.buildings: for internal_zone in building.internal_zones: - if internal_zone.thermal_zones_from_internal_zones is None: + if internal_zone.thermal_zones_from_internal_zones is None or len(thermal_zone.thermal_boundaries) == 0: + self._add_shading(building) # if the building has not archetype use it as shadow object continue for thermal_zone in internal_zone.thermal_zones_from_internal_zones: for thermal_boundary in thermal_zone.thermal_boundaries: - self._add_construction(thermal_boundary) if thermal_boundary.parent_surface.vegetation is not None: self._add_vegetation_material(thermal_boundary.parent_surface.vegetation)