diff --git a/src/bonsai/bonsai/bim/module/clash/operator.py b/src/bonsai/bonsai/bim/module/clash/operator.py index 409cb480b0..e199a3caa4 100644 --- a/src/bonsai/bonsai/bim/module/clash/operator.py +++ b/src/bonsai/bonsai/bim/module/clash/operator.py @@ -211,9 +211,8 @@ class ExecuteIfcClash(bpy.types.Operator): _, extension = os.path.splitext(self.filepath) if extension != ".bcf": self.filepath = bpy.path.ensure_ext(bpy.data.filepath, ".json") - # TODO Temporarily until BCF support comes back - # if extension != ".json": - # self.filepath = bpy.path.ensure_ext(bpy.data.filepath, ".bcf") + if extension != ".json": + self.filepath = bpy.path.ensure_ext(bpy.data.filepath, ".bcf") WindowManager = context.window_manager WindowManager.fileselect_add(self) return {"RUNNING_MODAL"} diff --git a/src/ifcclash/ifcclash/ifcclash.py b/src/ifcclash/ifcclash/ifcclash.py index b746ad2055..54e4dc0129 100644 --- a/src/ifcclash/ifcclash/ifcclash.py +++ b/src/ifcclash/ifcclash/ifcclash.py @@ -217,7 +217,7 @@ class Clasher: title = f'{clash["a_ifc_class"]}/{clash["a_name"]} and {clash["b_ifc_class"]}/{clash["b_name"]}' topic = bcfxml.add_topic(title, title, "IfcClash") viewpoint = topic.add_viewpoint_from_point_and_guids( - np.array(clash["position"]), + np.array(clash["p1"]), clash["a_global_id"], clash["b_global_id"], ) @@ -226,7 +226,7 @@ class Clasher: topic.markup.viewpoints[0].snapshot = snapshot[0] viewpoint.snapshot = snapshot[1] suffix = f".{i}" if i else "" - bcfxml.save_project(f"{self.settings.output}{suffix}") + bcfxml.save(f"{self.settings.output}{suffix}") def get_viewpoint_snapshot(self, viewpoint) -> None: # Possible to overload this function in a GUI application if used as a library.