ifcopenshell.api.sequence.edit_work_calendar
¶
Module Contents¶
- ifcopenshell.api.sequence.edit_work_calendar.edit_work_calendar(file, work_calendar=None, attributes=None) 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, optional) – a dictionary of attribute names and values.
- Returns:
None
- Return type:
None
Example:
# Let's create a new calendar. calendar = ifcopenshell.api.run("sequence.add_work_calendar", model, name="5 Day Week") # Let's give it a description ifcopenshell.api.run("sequence.edit_work_calendar", model, work_calendar=calendar, attributes={"Description": "Monday to Friday 8 hour days"})