Skip to main content

declare

Function declare 

Source
pub fn declare(
    tx: &mut Transaction,
    global_id: &str,
    context: EntityId,
    definitions: &[EntityId],
) -> SpatialAuthoringResult<EntityId>
Expand description

Stage an IfcRelDeclares: definitions declared in a context.

The context is an IfcProject or IfcProjectLibrary. This is how type objects and property set templates enter a file without being attached to any occurrence.

ยงErrors

Refuses a malformed GlobalId, an empty definition set, and the context listed among its own declarations.