IfcOpenShell: Filtering descriptions of Types
How does one filter all the descriptions of the IfcTypes with IfcOpenShell?
I now have this
if ifcproduct:
type_name_list.append(ifcproduct.ObjectType)
But it returns only labels where the descriptions are filled.
How do I get all the IfcWallType, IfcBeamType, IfcCoveringType etc.. descriptions?
Could not find any code examples.
Tagged:
Comments
this?
...or this, if just ifcopenshell?
@theoryshaw
Thanks for your answers, how do I get the types when looping over an ifproduct?
Found this in the documentation of BuildingSmart
I need to get to
IfcRelDefinesByType
somehow@Coen a product can only have 0 or 1 types, not more. You can use
ifcopenshell.util.element.get_type(product)
.By the way, the type should not be stored in the ObjectType attribute that you alluded to in your first post. This a common mistake done by Autodesk and has led to a common misconception. https://github.com/Autodesk/revit-ifc/issues/502
@Moult
Thanks! Autodesk misleading me once again...