Skip to content

Commit

Permalink
Arch: Equipment, fix for ifc 2x3
Browse files Browse the repository at this point in the history
  • Loading branch information
berndhahnebach committed May 11, 2020
1 parent ea8bcb8 commit 4210327
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/Mod/Arch/ArchEquipment.py
Expand Up @@ -275,7 +275,15 @@ def __init__(self,obj):
ArchComponent.Component.__init__(self,obj)
obj.Proxy = self
self.setProperties(obj)
obj.IfcType = "Furniture"
from ArchIFC import IfcTypes
if "Furniture" in IfcTypes:
# IfcFurniture is new in IFC4
obj.IfcType = "Furniture"
elif "Furnishing Element" in IfcTypes:
# IFC2x3 does know a IfcFurnishingElement
obj.IfcType = "Furnishing Element"
else:
obj.IfcType = "Undefined"

def setProperties(self,obj):

Expand Down

0 comments on commit 4210327

Please sign in to comment.