ifcopenshell.api.unit.remove_unit

Module Contents

ifcopenshell.api.unit.remove_unit.remove_unit(file: ifcopenshell.file, unit: ifcopenshell.entity_instance) None

Remove a unit

Be very careful when a unit is removed, as it may mean that previously defined quantities in the model completely lose their meaning.

Parameters:

unit (ifcopenshell.entity_instance) – The unit element to remove

Returns:

None

Return type:

None

Example:

# What?
unit = ifcopenshell.api.unit.add_context_dependent_unit(model, name="HANDFULS")

# Yeah maybe not.
ifcopenshell.api.unit.remove_unit(model, unit=unit)