-
I'm interested in obtaining the parent GUID for IfcType object entities such as IfcDoorType or IfcSpaceType. Subsequently, I aim to establish a structured hierarchy similar to the following example:
Could you assist me in achieving this? |
Beta Was this translation helpful? Give feedback.
Answered by
Moult
Aug 30, 2023
Replies: 1 comment 2 replies
-
What do you mean by "parent" GUID? If you mean the "space", types are not contained in spaces. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The building storey is a container of the door. You can get it by doing
ifcopenshell.util.element.get_container(door)
. Alternatively you can get all doors in the container by doingifcopenshell.util.element.get_decomposition(storey)
.The door is a single occurrence (Revit would call it an instance) of the door type. You can get the door type from a single occurrence by doing
ifcopenshell.util.element.get_type(door)
. Inversely, you can get all occurrences of a door type by doingifcopenshell.util.element.get_types(door_type)
.