mirror of
https://github.com/brunopostle/simple-ifc.git
synced 2026-03-29 22:43:17 +02:00
Fix work schedule PredefinedType BASELINE → PLANNED
Bonsai's Gantt chart code special-cases BASELINE schedules by following IsDeclaredBy[0].RelatingObject to find a parent comparison schedule. Our schedule has no such relationship, causing an IndexError that silently prevents the Gantt from rendering. PLANNED is the correct type for a forward-looking construction programme. Also updates the CLAUDE.md recipe to use PLANNED.
This commit is contained in:
parent
070e2eb761
commit
7543836f33
2 changed files with 2 additions and 2 deletions
|
|
@ -264,7 +264,7 @@ Physical elements are linked to tasks via `IfcRelAssignsToProcess`. Task orderin
|
|||
```
|
||||
# Work plan and schedule
|
||||
ifc_edit("sequence.add_work_plan", '{"name": "Construction Plan", "predefined_type": "ACTUAL"}')
|
||||
ifc_edit("sequence.add_work_schedule", '{"name": "Construction Schedule", "predefined_type": "BASELINE", "work_plan": "<plan_id>"}')
|
||||
ifc_edit("sequence.add_work_schedule", '{"name": "Construction Schedule", "predefined_type": "PLANNED", "work_plan": "<plan_id>"}')
|
||||
|
||||
# Phase (summary) tasks
|
||||
ifc_edit("sequence.add_task", '{"work_schedule": "<sched_id>", "name": "Foundations", "identification": "P1", "predefined_type": "CONSTRUCTION"}')
|
||||
|
|
|
|||
|
|
@ -3581,7 +3581,7 @@ DATA;
|
|||
#3939=IFCQUANTITYLENGTH('Height',$,$,1.98333302140235,$);
|
||||
#3940=IFCQUANTITYLENGTH('Width',$,$,0.995000004768371,$);
|
||||
#3941=IFCWORKPLAN('1oOoanHin6f8fl3gUJuoYx',$,'Construction Plan',$,$,$,'2026-02-23T23:51:39.573925',$,$,$,$,'2026-02-23T23:51:39.574118',$,.ACTUAL.);
|
||||
#3942=IFCWORKSCHEDULE('0gYQ15_sr4nwN2F_1efOoY',$,'Construction Schedule',$,$,$,'2026-02-23T23:51:47.596165',$,$,$,$,'2026-02-23T23:51:47.595572',$,.BASELINE.);
|
||||
#3942=IFCWORKSCHEDULE('0gYQ15_sr4nwN2F_1efOoY',$,'Construction Schedule',$,$,$,'2026-02-23T23:51:47.596165',$,$,$,$,'2026-02-23T23:51:47.595572',$,.PLANNED.);
|
||||
#3943=IFCRELAGGREGATES('1PJwHSLpn3Mh49pzMn9Rem',$,$,$,#3941,(#3942));
|
||||
#3944=IFCTASK('1Qs8dBzcLBfwZ1G_S9OLDO',$,'Foundations',$,$,'P1',$,$,$,.F.,$,#3981,.CONSTRUCTION.);
|
||||
#3945=IFCRELASSIGNSTOCONTROL('2n7hOA4qL2awNg9ByXtVkz',$,$,$,(#3944,#3946,#3947,#3948,#3949),$,#3942);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue