From f843ecce8ee9bd15d456ab83fbb2d62e5ee672c7 Mon Sep 17 00:00:00 2001 From: Bernd Hahnebach Date: Tue, 28 Jul 2020 05:59:46 +0200 Subject: [PATCH] Arch IFC import, add simplificated method to get pset properties --- src/Mod/Arch/importIFCHelper.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Mod/Arch/importIFCHelper.py b/src/Mod/Arch/importIFCHelper.py index 1a5cd1bcb4..faced7abd9 100644 --- a/src/Mod/Arch/importIFCHelper.py +++ b/src/Mod/Arch/importIFCHelper.py @@ -502,6 +502,12 @@ def getIfcProperties(ifcfile, pid, psets, d): return d +def getIfcPsetPoperties(ifcfile, pid): + """ directly build the property table from pid and ifcfile for FreeCAD""" + + return getIfcProperties(ifcfile, pid, getIfcPropertySets(ifcfile, pid), {}) + + # ************************************************************************************************ def getScaling(ifcfile): """returns a scaling factor from file units to mm"""