pub fn create_project_library(
tx: &mut Transaction,
global_id: &str,
draft: ProjectLibraryDraft<'_>,
representation_contexts: &[EntityId],
) -> SpatialAuthoringResult<EntityId>Expand description
Stage an IfcProjectLibrary.
A library holds shared definitions – types, properties,
materials – for reuse across projects. It is an IfcContext
like IfcProject, not a container, so RepresentationContexts
and UnitsInContext sit where a container keeps its placement.
RepresentationContexts is SET [1:?]: absent is legal,
present and empty is not.
IFC4 and IFC4X3 only: it writes their layout and leaves
OwnerHistory $, which IFC2X3 requires. In IFC2X3 use
create_project_library_with_owner_history, which binds the model’s declared
release.
§Errors
Refuses a malformed GlobalId and an empty representation-context set.