ifcopenshell.api.sequence.assign_work_plan

Module Contents

ifcopenshell.api.sequence.assign_work_plan.assign_work_plan(file: ifcopenshell.file, work_schedule: ifcopenshell.entity_instance, work_plan: ifcopenshell.entity_instance) ifcopenshell.entity_instance

Assigns a work schedule to a work plan

Typically, work schedules would be assigned to a work plan at creation. However you may also delay this and do it manually afterwards.

Parameters:
  • work_schedule (ifcopenshell.entity_instance) – The IfcWorkSchedule that will be assigned to the work plan.

  • work_plan (ifcopenshell.entity_instance) – The IfcWorkPlan for the schedule to be assigned to.

Returns:

The IfcRelAggregates relationship

Return type:

ifcopenshell.entity_instance

Example:

# This will hold all our construction schedules
work_plan = ifcopenshell.api.sequence.add_work_plan(model, name="Construction")

# Alternatively, if you create a schedule without a work plan ...
schedule = ifcopenshell.api.sequence.add_work_schedule(model, name="Construction Schedule A")

# ... you can assign the work plan afterwards.
ifcopenshell.api.sequence.assign_work_plan(work_schedule=schedule, work_plan=work_plan)