()
| 112 | |
| 113 | @staticmethod |
| 114 | def get_file() -> ifcopenshell.file | None: |
| 115 | if IfcStore.file is None: |
| 116 | props = tool.Blender.get_bim_props() |
| 117 | IfcStore.set_path(props.ifc_file) |
| 118 | if IfcStore.path: |
| 119 | try: |
| 120 | IfcStore.load_file(IfcStore.path) |
| 121 | tool.Ifc.after_file_loaded() |
| 122 | except Exception as e: |
| 123 | print(f"Failed to load file {IfcStore.path}. Error details: {e}") |
| 124 | return IfcStore.file |
| 125 | |
| 126 | @staticmethod |
| 127 | def set_path(value: str) -> None: |
no test coverage detected