ifcopenshell.api.sequence.remove_work_plan#

Module Contents#

class ifcopenshell.api.sequence.remove_work_plan.Usecase(file, work_plan=None)#

Removes a work plan

Note that schedules that are grouped under the work plan are not removed.

Parameters

work_plan (ifcopenshell.entity_instance.entity_instance) – The IfcWorkPlan to remove.

Returns

None

Return type

None

Example:

# This will hold all our construction schedules
work_plan = ifcopenshell.api.run("sequence.add_work_plan", model, name="Construction")

# And remove it immediately
ifcopenshell.api.run("sequence.remove_work_plan", model, work_plan=work_plan)
execute(self)#