Add support for IfcAnnotation elements

This commit is contained in:
Dion Moult
2020-05-11 15:17:39 +10:00
parent c481b77e73
commit 1d7865c558
3 changed files with 12 additions and 4 deletions
+8 -2
View File
@@ -124,8 +124,14 @@ def refreshBoundaryConditionAttributes(self, context):
def getIfcProducts(self, context):
global products_enum
if len(products_enum) < 1:
products_enum.extend([(e, e, '') for e in
['IfcElement', 'IfcElementType', 'IfcSpatialElement', 'IfcGroup', 'IfcStructural', 'IfcContext']])
products_enum.extend([(e, e, '') for e in [
'IfcElement',
'IfcElementType',
'IfcSpatialElement',
'IfcGroup',
'IfcStructural',
'IfcContext',
'IfcAnnotation']])
return products_enum
@@ -20,7 +20,8 @@ class IfcSchema():
'IfcMaterialDefinition',
'IfcParameterizedProfileDef',
'IfcBoundaryCondition',
'IfcElementType'
'IfcElementType',
'IfcAnnotation'
]
self.elements = {}
+2 -1
View File
@@ -156,7 +156,8 @@ filename_filters = {
'IfcMaterialDefinition_IFC4.json': ['IfcMaterialDefinition'],
'IfcParameterizedProfileDef_IFC4.json': ['IfcParameterizedProfileDef'],
'IfcBoundaryCondition_IFC4.json': ['IfcBoundaryCondition'],
'IfcElementType_IFC4.json': ['IfcElementType']
'IfcElementType_IFC4.json': ['IfcElementType'],
'IfcAnnotation_IFC4.json': ['IfcAnnotation']
}
for filename, filters in filename_filters.items():