From bba139985af998fe7c08aeb0ece9c6e64607b785 Mon Sep 17 00:00:00 2001 From: tetektoza Date: Sun, 18 May 2025 02:11:29 +0200 Subject: [PATCH] BIM: Make a correct mapping to weight during IFC Quantities assignment Currently we can assign quantities to a BIM object, but upon exporting quantities are not visible in the IFC file. This was because we didn't have a correct mapping to weight property. `App::PropertyWeight" basically doesn't exist, so this patch changes it to `App::PropertyMass`, as it is the same. The incorrect mapping resulted in a traceback, which in turn resulted in missing a big part of additional processing for the properties, which resulted in `writeQuantities` checking for non-existent IfcData in the object. --- src/Mod/BIM/bimcommands/BimIfcQuantities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/BIM/bimcommands/BimIfcQuantities.py b/src/Mod/BIM/bimcommands/BimIfcQuantities.py index ca34f501ce..7622eeca9b 100644 --- a/src/Mod/BIM/bimcommands/BimIfcQuantities.py +++ b/src/Mod/BIM/bimcommands/BimIfcQuantities.py @@ -60,7 +60,7 @@ QTO_TYPES = { "IfcQuantityNumber": "App::PropertyInteger", "IfcQuantityTime": "App::PropertyTime", "IfcQuantityVolume": "App::PropertyVolume", - "IfcQuantityWeight": "App::PropertyWeight", + "IfcQuantityWeight": "App::PropertyMass", }