Add ability to export parameterised profiles for material profiles.

This commit is contained in:
Dion Moult
2020-01-14 17:38:54 +11:00
parent 8490dc7841
commit 71f836d013
6 changed files with 916 additions and 9 deletions
+7 -1
View File
@@ -7,7 +7,13 @@ cwd = os.path.dirname(os.path.realpath(__file__))
class IfcSchema():
def __init__(self):
self.schema_dir = os.path.join(cwd, 'schema') # TODO: make configurable
self.products = ['IfcElement', 'IfcSpatialStructureElement', 'IfcStructural', 'IfcMaterialDefinition']
self.products = [
'IfcElement',
'IfcSpatialStructureElement',
'IfcStructural',
'IfcMaterialDefinition',
'IfcParameterizedProfileDef'
]
self.elements = {}
self.property_file = ifcopenshell.open(os.path.join(self.schema_dir, 'IFC4_ADD2.ifc'))
self.psets = {}