Arch: pipe, fix ifc type for ifc 2x3

This commit is contained in:
Bernd Hahnebach
2020-05-04 11:11:56 +02:00
parent a2aab9d17f
commit a0455c24d1

View File

@@ -184,7 +184,13 @@ class _ArchPipe(ArchComponent.Component):
ArchComponent.Component.__init__(self,obj)
self.setProperties(obj)
obj.IfcType = "Pipe Segment"
# IfcPipeSegment is new in IFC4
from ArchIFC import IfcTypes
if "Pipe Segment" in IfcTypes:
obj.IfcType = "Pipe Segment"
else:
# IFC2x3 does not know a Pipe Segment
obj.IfcType = "Undefined"
def setProperties(self,obj):