pub fn create_objective(
tx: &mut Transaction,
model: &Model,
draft: ObjectiveDraft<'_>,
) -> ConstraintResult<EntityId>Expand description
Validate and stage one objective in the model’s declared release.
§Release
IFC4 and IFC4X3 declare BenchmarkValues as a LIST OF IfcConstraint
and a LogicalAggregator. IFC2X3 declares a single IfcMetric there
and ResultValues, an IfcMetric, in the aggregator’s place; its
IfcObjectiveEnum lacks several IFC4 qualifiers (CODEWAIVER,
EXTERNAL, MERGECONFLICT, MODELVIEW, PARAMETER among them).
§Errors
A user-defined grade or qualifier without its label; an empty benchmark
list or a benchmark outside its declared type; a header binding no single
verified release; in IFC2X3 more than one benchmark
(AuthoringValueType) or a logical aggregator (AuthoringNotInSchema);
and a token the release’s enumeration lacks (AuthoringValueType).
Nothing is staged on an error.