Create UI to add/remove material attributes

This commit is contained in:
Dion Moult
2020-01-14 15:38:22 +11:00
parent ef919ab431
commit 2dbcd6712e
8 changed files with 451 additions and 35 deletions
+4 -2
View File
@@ -14,12 +14,14 @@ class IFC4Extractor:
#self.filters = ['IfcBuildingElement']
#self.filters = ['IfcElement']
#self.filters = ['IfcSpatialStructureElement']
self.filters = ['IfcStructuralActivity', 'IfcStructuralItem']
#self.filters = ['IfcStructuralActivity', 'IfcStructuralItem']
self.filters = ['IfcMaterialDefinition']
self.filtered_elements = {}
def extract(self):
for element in self.root.findall("xs:element", self.ns):
if self.is_descendant_from_class(element, "IfcRoot"):
#if self.is_descendant_from_class(element, "IfcRoot"):
if self.is_descendant_from_class(element, "IfcMaterialDefinition"):
print('Processing {}'.format(element.attrib['name']))
data = {
'is_abstract': self.is_abstract(element),