ifcopenshell.api.sequence.remove_work_time

Module Contents

ifcopenshell.api.sequence.remove_work_time.remove_work_time(file: ifcopenshell.file, work_time: ifcopenshell.entity_instance) None

Removes a work time

Parameters:

work_time (ifcopenshell.entity_instance) – The IfcWorkTime to remove.

Returns:

None

Return type:

None

Example:

# Let's create a new calendar.
calendar = ifcopenshell.api.sequence.add_work_calendar(model)

# Let's start defining the times that we work during the week.
work_time = ifcopenshell.api.sequence.add_work_time(model,
    work_calendar=calendar, time_type="WorkingTimes")

# And remove it immediately
ifcopenshell.api.sequence.remove_work_time(model, work_time=work_time)