Skip to main content

cover_elements

Function cover_elements 

Source
pub fn cover_elements(
    tx: &mut Transaction,
    global_id: &str,
    element: EntityId,
    coverings: &[EntityId],
) -> SpatialAuthoringResult<EntityId>
Expand description

Stage an IfcRelCoversBldgElements: finishes applied to an element.

Kept apart from cover_spaces because the same covering can do both, and the two answer different questions: which finishes are on this wall, versus which finishes bound this space.

IFC4 and IFC4X3 only: it writes their layout and leaves OwnerHistory $, which IFC2X3 requires. In IFC2X3 use cover_elements_with_owner_history, which binds the model’s declared release.

§Errors

Refuses a malformed GlobalId, an empty covering set, and the element listed among its own coverings.