mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 08:02:29 +00:00
Add support for IfcAnnotation elements
This commit is contained in:
@@ -124,8 +124,14 @@ def refreshBoundaryConditionAttributes(self, context):
|
|||||||
def getIfcProducts(self, context):
|
def getIfcProducts(self, context):
|
||||||
global products_enum
|
global products_enum
|
||||||
if len(products_enum) < 1:
|
if len(products_enum) < 1:
|
||||||
products_enum.extend([(e, e, '') for e in
|
products_enum.extend([(e, e, '') for e in [
|
||||||
['IfcElement', 'IfcElementType', 'IfcSpatialElement', 'IfcGroup', 'IfcStructural', 'IfcContext']])
|
'IfcElement',
|
||||||
|
'IfcElementType',
|
||||||
|
'IfcSpatialElement',
|
||||||
|
'IfcGroup',
|
||||||
|
'IfcStructural',
|
||||||
|
'IfcContext',
|
||||||
|
'IfcAnnotation']])
|
||||||
return products_enum
|
return products_enum
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -20,7 +20,8 @@ class IfcSchema():
|
|||||||
'IfcMaterialDefinition',
|
'IfcMaterialDefinition',
|
||||||
'IfcParameterizedProfileDef',
|
'IfcParameterizedProfileDef',
|
||||||
'IfcBoundaryCondition',
|
'IfcBoundaryCondition',
|
||||||
'IfcElementType'
|
'IfcElementType',
|
||||||
|
'IfcAnnotation'
|
||||||
]
|
]
|
||||||
self.elements = {}
|
self.elements = {}
|
||||||
|
|
||||||
|
|||||||
@@ -156,7 +156,8 @@ filename_filters = {
|
|||||||
'IfcMaterialDefinition_IFC4.json': ['IfcMaterialDefinition'],
|
'IfcMaterialDefinition_IFC4.json': ['IfcMaterialDefinition'],
|
||||||
'IfcParameterizedProfileDef_IFC4.json': ['IfcParameterizedProfileDef'],
|
'IfcParameterizedProfileDef_IFC4.json': ['IfcParameterizedProfileDef'],
|
||||||
'IfcBoundaryCondition_IFC4.json': ['IfcBoundaryCondition'],
|
'IfcBoundaryCondition_IFC4.json': ['IfcBoundaryCondition'],
|
||||||
'IfcElementType_IFC4.json': ['IfcElementType']
|
'IfcElementType_IFC4.json': ['IfcElementType'],
|
||||||
|
'IfcAnnotation_IFC4.json': ['IfcAnnotation']
|
||||||
}
|
}
|
||||||
|
|
||||||
for filename, filters in filename_filters.items():
|
for filename, filters in filename_filters.items():
|
||||||
|
|||||||
Reference in New Issue
Block a user