BuildingInformationModel.show

BuildingInformationModel.show(elements=None, keep_hierarchy=True)

Show the model (or specific elements and their children) in compas_viewer.

Parameters:
elementsGenericElement or list[GenericElement], optional

One or more elements to show. Each element and its children are included. If None, the entire model is shown.

keep_hierarchybool, optional

Only applies when elements is given. If True (default), each element’s spatial ancestors are added to the scene as empty groups so that the element renders at its real world position and the treeform sidebar reflects the IFC spatial hierarchy. If False, elements are attached directly to the scene root using only their local transformation — useful for inspecting components side-by-side at the origin, like a parts library.