Skip to main content

openbim_ifc_v0_1_model_create_entity

Function openbim_ifc_v0_1_model_create_entity 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn openbim_ifc_v0_1_model_create_entity( model: OpenbimIfcModel, type_name: *const u8, type_len: usize, nodes: *const OpenbimIfcValueNode, node_count: usize, strings: *const u8, string_len: usize, out_id: *mut u64, ) -> OpenbimIfcStatus
Expand description

Create one entity of type_name (UTF-8, any case) from named attributes: a batch of one CREATE. The tape is one LIST of LIST(TEXT name, value) pairs (an empty LIST for none). An IfcRoot without a GlobalId gets a fresh one. out_id gets the new id.

Refusals as for openbim_ifc_v0_1_model_author.

ยงSafety

type_name valid for type_len reads; the tape as for openbim_ifc_v0_1_model_author; out_id valid for one write.