Document assign_product vs assign_process for construction tasks

This commit is contained in:
Bruno Postle 2026-03-20 18:54:16 +00:00
parent 2813d91841
commit 86801e8adf

View file

@ -452,8 +452,11 @@ ifc_edit("sequence.add_task", '{"work_schedule": "<sched_id>", "name": "Foundati
# Leaf tasks # Leaf tasks
ifc_edit("sequence.add_task", '{"parent_task": "<phase_id>", "name": "Install Ground Beams", "identification": "P1.1", "predefined_type": "CONSTRUCTION"}') ifc_edit("sequence.add_task", '{"parent_task": "<phase_id>", "name": "Install Ground Beams", "identification": "P1.1", "predefined_type": "CONSTRUCTION"}')
# Assign physical elements to tasks # Assign physical elements to tasks as OUTPUTS (things being constructed/produced)
ifc_edit("sequence.assign_process", '{"relating_process": "<task_id>", "related_object": "<element_id>"}') # CRITICAL: use assign_product NOT assign_process for construction tasks.
# assign_process = input (material consumed/demolished) → Bonsai animator crashes on CONSTRUCTION type
# assign_product = output (element produced) → correct for all CONSTRUCTION tasks
ifc_edit("sequence.assign_product", '{"relating_product": "<element_id>", "related_object": "<task_id>"}')
# Sequence relationships between phases/tasks # Sequence relationships between phases/tasks
ifc_edit("sequence.assign_sequence", '{"relating_process": "<pred_id>", "related_process": "<succ_id>", "sequence_type": "FINISH_START"}') ifc_edit("sequence.assign_sequence", '{"relating_process": "<pred_id>", "related_process": "<succ_id>", "sequence_type": "FINISH_START"}')