ifcopenshell.api.sequence.remove_work_time#

Module Contents#

class ifcopenshell.api.sequence.remove_work_time.Usecase(file, work_time=None)#

Removes a work time

Parameters

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

Returns

None

Return type

None

Example:

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

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

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