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.
This commit is contained in:
tetektoza
2025-05-18 02:11:29 +02:00
committed by Kacper Donat
parent 2f463ff005
commit bba139985a

View File

@@ -60,7 +60,7 @@ QTO_TYPES = {
"IfcQuantityNumber": "App::PropertyInteger",
"IfcQuantityTime": "App::PropertyTime",
"IfcQuantityVolume": "App::PropertyVolume",
"IfcQuantityWeight": "App::PropertyWeight",
"IfcQuantityWeight": "App::PropertyMass",
}