diff --git a/src/bcf/README.md b/src/bcf/README.md index 906965b9c1..1ce991d97f 100644 --- a/src/bcf/README.md +++ b/src/bcf/README.md @@ -4,7 +4,10 @@ A simple Python implementation of BCF. The data model is described in `data.py`. Manipulation of BCF-XML is available via `bcfxml.py` and manipulation of BCF-API is available via `bcfapi.py`. -Currently supports BCF version 2.1. + - BCF-XML version 2.1: Fully supported + - BCF-API version 2.1: Not supported, will probably tackle this after BCF-API v3.0 + - BCF-XML version 3.0: Almost fully supported, except for the documents module + - BCF-API version 3.0: Not supported, but work underway to support it ## bcfxml diff --git a/src/blenderbim/blenderbim/bim/module/sequence/operator.py b/src/blenderbim/blenderbim/bim/module/sequence/operator.py index a591f47b77..8da8d671a2 100644 --- a/src/blenderbim/blenderbim/bim/module/sequence/operator.py +++ b/src/blenderbim/blenderbim/bim/module/sequence/operator.py @@ -571,9 +571,6 @@ class AssignPredecessor(bpy.types.Operator): relating_process=IfcStore.get_file().by_id(self.task), related_process=IfcStore.get_file().by_id(props.active_task_id), ) - ifcopenshell.api.run( - "sequence.edit_sequence", self.file, rel_sequence=rel, attributes={"SequenceType": "FINISH_START"} - ) Data.load(self.file) bpy.ops.bim.load_task_properties() return {"FINISHED"} @@ -593,9 +590,6 @@ class AssignSuccessor(bpy.types.Operator): relating_process=IfcStore.get_file().by_id(props.active_task_id), related_process=IfcStore.get_file().by_id(self.task), ) - ifcopenshell.api.run( - "sequence.edit_sequence", self.file, rel_sequence=rel, attributes={"SequenceType": "FINISH_START"} - ) Data.load(self.file) bpy.ops.bim.load_task_properties() return {"FINISHED"} diff --git a/src/ifcopenshell-python/ifcopenshell/api/sequence/assign_sequence.py b/src/ifcopenshell-python/ifcopenshell/api/sequence/assign_sequence.py index d72d237326..5807746dd4 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/sequence/assign_sequence.py +++ b/src/ifcopenshell-python/ifcopenshell/api/sequence/assign_sequence.py @@ -23,5 +23,6 @@ class Usecase: "OwnerHistory": ifcopenshell.api.run("owner.create_owner_history", self.file), "RelatingProcess": self.settings["relating_process"], "RelatedProcess": self.settings["related_process"], + "SequenceType": "FINISH_START", } )