From 9eb5f8996237b2b3be8b080506a258872e5a0398 Mon Sep 17 00:00:00 2001 From: Bernd Hahnebach Date: Sat, 14 Sep 2019 22:08:42 +0200 Subject: [PATCH] Arch: use IfcType undefined for building parts, is annotation or actuator ATM --- src/Mod/Arch/ArchBuildingPart.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Mod/Arch/ArchBuildingPart.py b/src/Mod/Arch/ArchBuildingPart.py index 6ef19c3642..a02172e3f2 100644 --- a/src/Mod/Arch/ArchBuildingPart.py +++ b/src/Mod/Arch/ArchBuildingPart.py @@ -208,7 +208,10 @@ def makeBuildingPart(objectslist=None,baseobj=None,name="BuildingPart"): #obj = FreeCAD.ActiveDocument.addObject("App::FeaturePython","BuildingPart") obj.Label = translate("Arch","BuildingPart") BuildingPart(obj) - #obj.IfcType = "Building Storey" # set default to Floor + # if no IfcType is set it will be the first in the available + # Annotation in IFC2x3 and Actuator in IFC4, both is certainly wrong + # use Undefined ATM + obj.IfcType = "Undefined" if FreeCAD.GuiUp: ViewProviderBuildingPart(obj.ViewObject) if objectslist: