From 566fe32ab2e5194dbf52b7cea11b5fbb131166c6 Mon Sep 17 00:00:00 2001 From: Massimo Fabbro Date: Mon, 10 Mar 2025 13:11:36 +0100 Subject: [PATCH] Fix wrong wall legth qto calculation --- src/ifc5d/ifc5d/IFC4QtoBaseQuantitiesBlender.json | 2 +- src/ifc5d/ifc5d/qto.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ifc5d/ifc5d/IFC4QtoBaseQuantitiesBlender.json b/src/ifc5d/ifc5d/IFC4QtoBaseQuantitiesBlender.json index 3dcfd882ac..ac0acbe67e 100644 --- a/src/ifc5d/ifc5d/IFC4QtoBaseQuantitiesBlender.json +++ b/src/ifc5d/ifc5d/IFC4QtoBaseQuantitiesBlender.json @@ -611,7 +611,7 @@ "GrossVolume": "get_gross_volume", "GrossWeight": "get_gross_weight", "Height": "get_height", - "Length": "get_length", + "Length": "get_x", "NetFootprintArea": "get_net_footprint_area", "NetSideArea": "get_net_side_area", "NetVolume": "get_net_volume", diff --git a/src/ifc5d/ifc5d/qto.py b/src/ifc5d/ifc5d/qto.py index 417a2efee5..1c99cccc74 100644 --- a/src/ifc5d/ifc5d/qto.py +++ b/src/ifc5d/ifc5d/qto.py @@ -336,6 +336,7 @@ class Blender: "get_gross_perimeter": Function("IfcLengthMeasure", "Gross Perimeter", ""), "get_height": Function("IfcLengthMeasure", "Height", ""), "get_length": Function("IfcLengthMeasure", "Length", ""), + "get_x": Function("IfcLengthMeasure", "Length", ""), "get_opening_depth": Function("IfcLengthMeasure", "Opening Depth", ""), "get_opening_height": Function("IfcLengthMeasure", "Opening Height", ""), "get_rectangular_perimeter": Function("IfcLengthMeasure", "Rectangular Perimeter", ""),