From 75bb31684814689ddf66d604961cdbfa9826b5a0 Mon Sep 17 00:00:00 2001 From: guille Date: Tue, 31 Oct 2023 14:17:59 +0100 Subject: [PATCH] bug correction --- hub/exports/building_energy/idf.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hub/exports/building_energy/idf.py b/hub/exports/building_energy/idf.py index 6d9e6fbb..76e93c89 100644 --- a/hub/exports/building_energy/idf.py +++ b/hub/exports/building_energy/idf.py @@ -338,11 +338,11 @@ class Idf: _kwargs = {'Name': vegetation_name, 'Outside_Layer': thermal_boundary.parent_surface.vegetation.name} for i in range(0, len(layers) - 1): - _kwargs[f'Layer_{i + 2}'] = layers[i].name + _kwargs[f'Layer_{i + 2}'] = layers[i].material_name else: - _kwargs = {'Name': thermal_boundary.construction_name, 'Outside_Layer': layers[0].name} + _kwargs = {'Name': thermal_boundary.construction_name, 'Outside_Layer': layers[0].material_name} for i in range(1, len(layers) - 1): - _kwargs[f'Layer_{i + 1}'] = layers[i].name + _kwargs[f'Layer_{i + 1}'] = layers[i].material_name self._idf.newidfobject(self._CONSTRUCTION, **_kwargs) def _add_window_construction_and_material(self, thermal_opening): -- 2.39.2