Skip to main content

openbim_ifc_v0_1_model_remove_representation

Function openbim_ifc_v0_1_model_remove_representation 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn openbim_ifc_v0_1_model_remove_representation( model: OpenbimIfcModel, representation: u64, 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

Remove shape representation representation with what only it uses, as one checked transaction: taken off its product definition shape (which goes when left empty), representation map or shape aspects, then removed with its items down to what nothing else uses; shared items, profiles, points and styles stay. flags: OPENBIM_IFC_REMOVE_DRY_RUN alone. The answer is the RemovalReport tape of openbim_ifc_v0_1_model_remove_product; a size query or a short buffer plans the removal and answers BufferTooSmall without applying it.

MissingEntity; WrongEntityType for an entity that is not an IfcShapeModel; StillReferenced for a representation map an IfcMappedItem still maps; InvalidArgument for another flag; FeatureDisabled.

ยงSafety

As for openbim_ifc_v0_1_entity_attribute.