MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / get_file

Method get_file

src/bonsai/bonsai/bim/ifc.py:114–124  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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:

Callers 6

relink_all_objectsMethod · 0.45
pollMethod · 0.45
runMethod · 0.45
getMethod · 0.45
get_schemaMethod · 0.45
get_entityMethod · 0.45

Calls 5

printFunction · 0.85
get_bim_propsMethod · 0.80
after_file_loadedMethod · 0.80
set_pathMethod · 0.45
load_fileMethod · 0.45

Tested by

no test coverage detected