If you're reading this, we've just migrated servers! If anything looks broken please email dion@thinkmoult.com :)

ifcOpenShell; How to get the surface of wall openings?

I am trying to use IfcOpenShell for QTO. As the title says I am trying to get the surface of the wall openings.

I used the dir() method a lot and got from a IfcWall instance with "HasOpening" to a IfcRelVoidsElement **and then with "RelatedOpeningElement" to **IfcOpeningElement.

https://standards.buildingsmart.org/IFC/RELEASE/IFC2x3/TC1/HTML/ifcproductextension/lexical/ifcopeningelement.htm
According to the literature the quantites of an IfcOpeningElement are defined by the IfcElementQuantity. But if I try the IsDefinedBy method on a Opening I get nothing.

What am I missing? Is there a simpler way to do this?

Tagged:

Comments

  • An easier way to get properties of an opening (or any element) is:

    ifcopenshell.util.element.get_psets(opening)
    

    See if you find quantities in there. If not, then you need to do a bit of geometric analysis.

    Borna_Molnar
Sign In or Register to comment.