ifcopenshell.api.system.unassign_system#

Module Contents#

class ifcopenshell.api.system.unassign_system.Usecase(file, product=None, system=None)#

Unassigns a product from a system

Parameters
Returns

None

Return type

None

Example:

# A completely empty distribution system
system = ifcopenshell.api.run("system.add_system", model)

# Create a duct
duct = ifcopenshell.api.run("root.create_entity", model,
    ifc_class="IfcDuctSegment", predefined_type="RIGIDSEGMENT")

# This duct is part of the system
ifcopenshell.api.run("system.assign_system", model, product=duct, system=system)

# Not anymore!
ifcopenshell.api.run("system.unassign_system", model, product=duct, system=system)
execute(self)#