mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 15:08:51 +00:00
Create UI to add/remove material attributes
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user