Skip to main content

create_classified_system

Function create_classified_system 

Source
pub fn create_classified_system(
    tx: &mut Transaction,
    schema: &Schema,
    kind: SystemKind,
    global_id: &str,
    name: Option<&str>,
    draft: ClassifiedSystemDraft<'_>,
) -> SystemAuthoringResult<EntityId>
Expand description

Stage a classified system.

predefined_type must be a token the entity’s own enum declares, resolved against schema: IfcDistributionSystemEnum gained seven members in IFC4X3, and accepting those on IFC4 would name a system kind that schema does not have.

§Errors

Refuses a malformed GlobalId; an entity the schema does not declare (IfcBuiltSystem on IFC4); a token outside the entity’s enum for the schema in hand; and USERDEFINED without object_type (CorrectPredefinedType).

OwnerHistory is written $. IFC2X3 declares none of the four entities, so the record is IFC4/IFC4X3 only either way; use create_classified_system_with_owner_history to bind the model’s release and set an owner history.