TreeMixin

class compas_ifc.tree.TreeMixin

Bases: object

Mixin that adds IFC import/export capabilities to a Model subclass.

Expects the host class to provide: - self._fileIFCFile - self._elements_by_global_id — dict of IFC GlobalId → GenericElement - self.add_element(element, parent=...) — from compas_model.Model - self._load_relationships_into_graph() — from InteractionMixin

Methods

export

Export selected elements to a new IFC file.

extract

Extract elements into a new standalone BuildingInformationModel.

print_hierarchy

Print the spatial hierarchy of the model.

Inherited Methods

__init__