From 96d0bcbc045f6a07e2b8188fb047c2e67e85652b Mon Sep 17 00:00:00 2001 From: hoshengwei Date: Sat, 26 Oct 2024 01:38:47 +0800 Subject: [PATCH] Fix IFC export elevation with wrong unit --- src/Mod/BIM/importers/exportIFC.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/BIM/importers/exportIFC.py b/src/Mod/BIM/importers/exportIFC.py index b8ee3d6b36..13a8263e6a 100644 --- a/src/Mod/BIM/importers/exportIFC.py +++ b/src/Mod/BIM/importers/exportIFC.py @@ -1766,7 +1766,7 @@ def exportIfcAttributes(obj, kwargs, scale=0.001): value = obj.getPropertyByName(property) if isinstance(value, FreeCAD.Units.Quantity): value = float(value) - if property in ["ElevationWithFlooring","Elevation"]: + if "Elevation" in property: value = value*scale # some properties must be changed to meters if (ifctype == "IfcFurnishingElement") and (property == "PredefinedType"): pass # IFC2x3 Furniture objects get converted to IfcFurnishingElement and have no PredefinedType anymore