ifcopenshell.api.sequence.edit_work_schedule
¶
Module Contents¶
- ifcopenshell.api.sequence.edit_work_schedule.edit_work_schedule(file: ifcopenshell.file, work_schedule: ifcopenshell.entity_instance, attributes: dict[str, Any]) None ¶
Edits the attributes of an IfcWorkSchedule
For more information about the attributes and data types of an IfcWorkSchedule, consult the IFC documentation.
- Parameters:
work_schedule (ifcopenshell.entity_instance) – The IfcWorkSchedule entity you want to edit
attributes (dict) – a dictionary of attribute names and values.
- Returns:
None
- Return type:
None
Example:
# This will hold all our construction schedules work_plan = ifcopenshell.api.sequence.add_work_plan(model, name="Construction") # Let's imagine this is one of our schedules in our work plan. schedule = ifcopenshell.api.sequence.add_work_schedule(model, name="Construction Schedule A", work_plan=work_plan) # Let's give it a description ifcopenshell.api.sequence.edit_work_schedule(model, work_schedule=work_schedule, attributes={"Description": "3 crane design option"})