Implement arithmetic formulas for cost value components

This commit is contained in:
Dion Moult
2021-05-08 12:18:27 +10:00
parent 46bc688f26
commit a80fbdbc1d
8 changed files with 99 additions and 53 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ from blenderbim.bim.ifc import IfcStore
def import_attributes(ifc_class, props, data, callback=None):
for attribute in IfcStore.get_schema().declaration_by_name(ifc_class).all_attributes():
data_type = ifcopenshell.util.attribute.get_primitive_type(attribute)
if data_type == "entity":
if data_type == "entity" or (isinstance(data_type, tuple) and "entity" in ".".join(data_type)):
continue
new = props.add()
new.name = attribute.name()