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.
IFC4 and IFC4X3 only: it writes their layout and leaves
OwnerHistory $, which IFC2X3 requires. In IFC2X3 use
declare_with_owner_history, which binds the model’s declared
release.
§Errors
Refuses a malformed GlobalId, an empty definition set, and the context listed among its own declarations.