ifcopenshell.api.sequence.edit_work_time

Module Contents

ifcopenshell.api.sequence.edit_work_time.edit_work_time(file: ifcopenshell.file, work_time: ifcopenshell.entity_instance, attributes: dict[str, Any]) None

Edits the attributes of an IfcWorkTime

For more information about the attributes and data types of an IfcWorkTime, consult the IFC documentation.

Parameters:
  • work_time (ifcopenshell.entity_instance) – The IfcWorkTime entity you want to edit

  • attributes (dict) – a dictionary of attribute names and values.

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")

# If we don't specify any recurring time periods in our work time,
# we need to specify a start and end date of the work time. It
# starts at 0:00 on the start date and 24:00 at the end date.
ifcopenshell.api.sequence.edit_work_time(model,
    work_time=work_time, attributes={"StartDate": "2000-01-01", "FinishDate": "2000-01-02"})