ifcopenshell.api.sequence.edit_work_calendar

Module Contents

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

Edits the attributes of an IfcWorkCalendar

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

Parameters:
  • work_calendar (ifcopenshell.entity_instance) – The IfcWorkCalendar 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, name="5 Day Week")

# Let's give it a description
ifcopenshell.api.sequence.edit_work_calendar(model,
    work_calendar=calendar, attributes={"Description": "Monday to Friday 8 hour days"})