Skip to main content

openbim_ifc_v0_1_model_append

Function openbim_ifc_v0_1_model_append 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn openbim_ifc_v0_1_model_append( target: OpenbimIfcModel, source: OpenbimIfcModel, ids: *const u64, id_count: usize, global_ids: u32, flags: u32, nodes: *mut OpenbimIfcValueNode, node_capacity: usize, out_nodes_required: *mut usize, strings: *mut u8, string_capacity: usize, out_strings_required: *mut usize, ) -> OpenbimIfcStatus
Expand description

Copy the id_count entities ids of model source into model target with what belongs to them, as one checked transaction: what they reference, their property sets, type, material and classification, their openings, fillings and ports, and what attaches to their geometry. Units, contexts, the owner history, materials and styles equal to the target’s are reused unless a flag says otherwise. Relationships to objects not copied (a spatial container) are skipped and reported. global_ids: OPENBIM_IFC_GLOBAL_IDS_KEEP, _REGENERATE, _REGENERATE_COLLIDING or _MERGE. flags: OPENBIM_IFC_APPEND_NO_REUSE_UNITS, _CONTEXTS, _OWNER_HISTORY, _MATERIALS, _STYLES, OPENBIM_IFC_APPEND_DRY_RUN. The answer is a CopyReport tape (see the module docs); a size query or a short buffer plans the append and answers BufferTooSmall without applying it.

InvalidHandle; InvalidArgument for target and source the same model, an unknown mode or flag; MissingEntity for an id source lacks; Unsupported when the models’ length or plane angle units differ; UnsupportedSchema for an entity the target’s release cannot hold; InvalidValue for a kept GlobalId the target holds; FeatureDisabled.

§Safety

ids null (with id_count 0) or valid for id_count reads; the buffers as for openbim_ifc_v0_1_entity_attribute.