Skip to content

Get openings in walls #4470

Answered by Moult
jurvanoerle asked this question in Q&A
Discussion options

You must be logged in to vote

The reason there isn't "complete" documentation is because IfcOpenShell's API is largely generated from the IFC schema itself. So to understand all possible relationships and attributes and so on you need to read the IFC docs.

So for example in the IFC documentation they describe how openings use the HasOpenings attribute: https://ifc43-docs.standards.buildingsmart.org/IFC/RELEASE/IFC4x3/HTML/concepts/Object_Composition/Element_Voiding/Element_Openings/content.html

We can apply this as follows to get openings:

openings = [r.RelatedOpeningElement for r in wall.HasOpenings]

After that you can run the geometry iterator on those openings just like you would any element. Then you can also use …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by jurvanoerle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants