You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importifcopenshellifcfile=ifcopenshell.open("IfcOpenHouse.ifc")
project=ifcfile.by_type("IfcProject")[0]
# get descendants (site, building, and everything inside)entitieslist=ifcopenshell.util.element.get_decomposition(project)
entdoc=ifcopenshell.util.doc.get_entity_doc("IFC4","IfcWall")
entdoc.keys() # 'description', 'predefined_types', 'spec_url', 'attributes'entdoc['attributes']['IsDefinedBy']
# gives the same result asifcopenshell.util.doc.get_attribute_doc("IFC4","IfcWall","IsDefinedBy")
# 'Set of relationships to the object type that provides the type definitions# for this object occurrence. The then associated _IfcTypeObject_, or its subtypes,# contains the specific information (or type, or style), that is common to all# instances of _IfcObject_, or its subtypes, referring to the same type.'