ifcopenshell.api.sequence.assign_workplan#

Module Contents#

class ifcopenshell.api.sequence.assign_workplan.Usecase(file, work_schedule=None, work_plan=None)#

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
Returns

The IfcRelAggregates relationship

Return type

ifcopenshell.entity_instance.entity_instance

Example:

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

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

# ... you can assign the work plan afterwards.
ifcopenshell.api.run("sequence.assign_workplan", work_schedule=schedule, work_plan=work_plan)
execute(self)#