pub fn aggregate_with_owner_history(
tx: &mut Transaction,
model: &Model,
global_id: &str,
parent: EntityId,
children: &[EntityId],
owner_history: EntityId,
) -> SpatialAuthoringResult<EntityId>Expand description
aggregate in the model’s declared release, with a
caller-supplied IfcOwnerHistory, which IFC2X3 requires.
The release is bound from FILE_SCHEMA (none binds IFC4) and the record
laid out by attribute name from its table. In IFC4 and IFC4X3 it is the
record of the plain writer with the reference in the optional slot. The
owner history is never invented: build it with ifc-author.
§Errors
Those of aggregate, and:
MultipleSchemas or
UnsupportedSchema
if the model binds no single known release;
EntityNotInSchema,
AuthoringNotInSchema,
AuthoringValueType
or AuthoringRequired
for an entity or value the release cannot hold;
MissingReference if
owner_history is neither in the model nor staged;
WrongReferenceType
if it is not an IfcOwnerHistory. Nothing is staged on an error.