ifcopenshell.api.sequence.remove_work_schedule

Module Contents

ifcopenshell.api.sequence.remove_work_schedule.remove_work_schedule(file: ifcopenshell.file, work_schedule: ifcopenshell.entity_instance) None

Removes a work schedule

All tasks in the work schedule are also removed recursively.

Parameters:

work_schedule (ifcopenshell.entity_instance) – The IfcWorkSchedule to remove.

Returns:

None

Return type:

None

Example:

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

# Let's imagine this is one of our schedules in our work plan.
schedule = ifcopenshell.api.sequence.add_work_schedule(model,
    name="Construction Schedule A", work_plan=work_plan)

# And remove it immediately
ifcopenshell.api.sequence.remove_work_schedule(model, work_schedule=schedule)