Title: Instance #304 not found · Issue #6942 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Instance #304 not found · Issue #6942 · IfcOpenShell/IfcOpenShell
X Title: Instance #304 not found · Issue #6942 · IfcOpenShell/IfcOpenShell
Description: Bug Description Successfully loaded existing cache: 7631d237c540569cbb21339ab8f96aeb.h5. Error: Cannot remove profile as it's still part of other IFC entities: - IfcMaterialProfile Writing homefile: "C:\Users\windows\AppData\Roaming\Blen...
Open Graph Description: Bug Description Successfully loaded existing cache: 7631d237c540569cbb21339ab8f96aeb.h5. Error: Cannot remove profile as it's still part of other IFC entities: - IfcMaterialProfile Writing homefile...
X Description: Bug Description Successfully loaded existing cache: 7631d237c540569cbb21339ab8f96aeb.h5. Error: Cannot remove profile as it's still part of other IFC entities: - IfcMaterialProfile Writing home...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/6942
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Instance #304 not found","articleBody":"### Bug Description\n```\nSuccessfully loaded existing cache: 7631d237c540569cbb21339ab8f96aeb.h5.\nError: Cannot remove profile as it's still part of other IFC entities:\n- IfcMaterialProfile\nWriting homefile: \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\config\\startup.blend\" ok\nInfo: Startup file saved\nError: Cannot remove profile as it's still part of other IFC entities:\n- IfcMaterialProfile\nStarting export\nSuccessfully loaded existing cache: f80ce50a8526af8f6d6404e7848422f4.h5.\nExport finished in 0.01 seconds\nStarting export\nSuccessfully loaded existing cache: 16b88be0380dbee5b92d9cb1ca5590d2.h5.\nExport finished in 0.01 seconds\nInfo: Saved \"Test.blend\"\nInfo: IFC Project \"Test.ifc\" And Current Blend File Are Saved\nStarting export\nSuccessfully loaded existing cache: 46ff645540789dd9bdb746c9f73ec114.h5.\nExport finished in 0.02 seconds\nInfo: IFC Project \"Test.ifc\" Saved\nWriting homefile: \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\config\\startup.blend\" ok\nInfo: Startup file saved\nStarting export\nSuccessfully loaded existing cache: fb7c6b911cc6df84c27209a44333420d.h5.\nExport finished in 0.01 seconds\nInfo: Saved \"Test.blend\"\nInfo: IFC Project \"Test.ifc\" And Current Blend File Are Saved\nStarting export\nSuccessfully loaded existing cache: 9a0d17ad0c56c79cc5d8772715c73a85.h5.\nExport finished in 0.00 seconds\nInfo: Saved \"Test.blend\"\nInfo: IFC Project \"Test.ifc\" And Current Blend File Are Saved\nStarting export\nSuccessfully loaded existing cache: 6428fa889029369d1affbf63e30274dd.h5.\nExport finished in 0.00 seconds\nStarting export\nSuccessfully loaded existing cache: 348976fba1239f2034013f6f38ee99df.h5.\nExport finished in 0.01 seconds\nInfo: Saved \"Test.blend\"\nInfo: IFC Project \"Test2.ifc\" And Current Blend File Are Saved\nStarting import process :: 0.00\nLoading file :: 0.00\nCalculate unit scale :: 0.00\nProcess context filter :: 0.00\nCalculate model offset :: 0.00\nSet units :: 0.00\nCreate project :: 0.00\nProcess element filter :: 0.00\nCreate styles :: 0.00\nParsing native elements :: 0.00\nDone creating geometry\nCreate native elements :: 0.00\nDone creating geometry\nCreate elements :: 0.02\nCreate annotations :: 0.00\nCreate positioning elements :: 0.00\n0 / 3 elements processed ...\nCreate spatial elements :: 0.00\nCreate structural items :: 0.00\nCreate element types :: 0.00\nPlace objects in collections :: 0.00\nSetup arrays :: 0.00\nLoad linked models :: 0.00\nAdd project to scene :: 0.00\nSetting default context :: 0.02\nImport finished in 0.04 seconds\nTraceback (most recent call last):\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\model\\product.py\", line 601, in execute\n AuthoringData.load()\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\model\\data.py\", line 78, in load\n cls.data[\"has_extrusion\"] = cls.has_extrusion()\n ^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\model\\data.py\", line 247, in has_extrusion\n representation := tool.Geometry.get_active_representation(obj)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\tool\\geometry.py\", line 573, in get_active_representation\n return tool.Ifc.get().by_id(ifc_id)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\file.py\", line 551, in by_id\n return self[id]\n ~~~~^^^^\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\file.py\", line 538, in __getitem__\n return entity_instance(self.wrapped_data.by_id(key), self)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\ifcopenshell_wrapper.py\", line 6042, in by_id\n return _ifcopenshell_wrapper.file_by_id(self, id)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nRuntimeError: Instance #304 not found\nError: Python: Traceback (most recent call last):\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\model\\product.py\", line 601, in execute\n AuthoringData.load()\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\model\\data.py\", line 78, in load\n cls.data[\"has_extrusion\"] = cls.has_extrusion()\n ^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\model\\data.py\", line 247, in has_extrusion\n representation := tool.Geometry.get_active_representation(obj)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\tool\\geometry.py\", line 573, in geTraceback (most recent call last):\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\project\\operator.py\", line 1110, in execute\n tool.Project.load_default_thumbnails()\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\tool\\project.py\", line 68, in load_default_thumbnails\n bpy.ops.bim.load_type_thumbnails()\n File \"C:\\Program Files\\Blender Foundation\\Blender 4.5\\4.5\\scripts\\modules\\bpy\\ops.py\", line 109, in __call__\n ret = _op_call(self.idname_py(), kw)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nRuntimeError: Error: Python: Traceback (most recent call last):\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\model\\product.py\", line 601, in execute\n AuthoringData.load()\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\model\\data.py\", line 78, in load\n cls.data[\"has_extrusion\"] = cls.has_extrusion()\n ^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\model\\data.py\", line 247, in has_extrusion\n representation := tool.Geometry.get_active_representation(obj)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\tool\\geometry.py\", line 573, in get_active_representation\n return tool.Ifc.get().by_id(ifc_id)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\file.py\", line 551, in by_id\n return self[id]\n ~~~~^^^^\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\file.py\", line 538, in __getitem__\n return entity_instance(self.wrapped_data.by_id(key), self)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\ifcopenshell_wrapper.py\", line 6042, in by_id\n return _ifcopenshell_wrapper.file_by_id(self, id)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nRuntimeError: Instance #304 not found\nLocation: C:\\Program Files\\Blender Foundation\\Blender 4.5\\4.5\\scripts\\modules\\bpy\\ops.py:109\n\n... truncatedError: Python: Traceback (most recent call last):\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\project\\operator.py\", line 1110, in execute\n tool.Project.load_default_thumbnails()\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\tool\\project.py\", line 68, in load_default_thumbnails\n bpy.ops.bim.load_type_thumbnails()\n File \"C:\\Program Files\\Blender Foundation\\Blender 4.5\\4.5\\scripts\\modules\\bpy\\ops.py\", line 109, in __call__\n ret = _op_call(self.idname_py(), kw)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nRuntimeError: Error: Python: Traceback (most recent call last):\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\model\\product.py\", line 601, in execute\n AuthoringData.load()\n File \"C:\\Users\\windows\\AppData\\Roaming\\BlenderError in bpy.app.handlers.load_post[7]:\nTraceback (most recent call last):\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\project\\operator.py\", line 963, in load_handler\n self.finish_loading_project(context)\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\project\\operator.py\", line 1014, in finish_loading_project\n bpy.ops.bim.load_project_elements()\n File \"C:\\Program Files\\Blender Foundation\\Blender 4.5\\4.5\\scripts\\modules\\bpy\\ops.py\", line 109, in __call__\n ret = _op_call(self.idname_py(), kw)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nRuntimeError: Error: Python: Traceback (most recent call last):\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\project\\operator.py\", line 1110, in execute\n tool.Project.load_default_thumbnails()\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\tool\\project.py\", line 68, in load_default_thumbnails\n bpy.ops.bim.load_type_thumbnails()\n File \"C:\\Program Files\\Blender Foundation\\Blender 4.5\\4.5\\scripts\\modules\\bpy\\ops.py\", line 109, in __call__\n ret = _op_call(self.idname_py(), kw)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nRuntimeError: Error: Python: Traceback (most recent call last):\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\model\\product.py\", line 601, in execute\n AuthoringData.load()\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\model\\data.py\", line 78, in load\n cls.data[\"has_extrusion\"] = cls.has_extrusion()\n ^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\model\\data.py\", line 247, in has_extrusion\n representation := tool.Geometry.get_active_representation(obj)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\tool\\geometry.py\", line 573, in get_active_representation\n return tool.Ifc.get().by_id(ifc_id)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\file.py\", line 551, in by_id\n return self[id]\n ~~~~^^^^\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\file.py\", line 538, in __getitem__\n return entity_instance(self.wrapped_data.by_id(key), self)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\ifcopenshell_wrapper.py\", line 6042, in by_id\n return _ifcopenshell_wrapper.file_by_id(self, id)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nRuntimeError: Instance #304 not found\nLocation: C:\\Program Files\\Blender Foundation\\Blender 4.5\\4.5\\scripts\\modules\\bpy\\ops.py:109\nLocation: C:\\Program Files\\Blender Foundation\\Blender 4.5\\4.5\\scripts\\modules\\bpy\\ops.py:109\n\nTraceback (most recent call last):\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\geometry\\ui.py\", line 135, in draw\n RepresentationsData.load()\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\geometry\\data.py\", line 97, in load\n cls.data = {\"representations\": cls.representations()}\n ^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\geometry\\data.py\", line 114, in representations\n active_representation = tool.Geometry.get_active_representation(obj)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\tool\\geometry.py\", line 573, in get_active_representation\n return tool.Ifc.get().by_id(ifc_id)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\file.py\", line 551, in by_id\n return self[id]\n ~~~~^^^^\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\file.py\", line 538, in __getitem__\n return entity_instance(self.wrapped_data.by_id(key), self)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\ifcopenshell_wrapper.py\", line 6042, in by_id\n return _ifcopenshell_wrapper.file_by_id(self, id)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nRuntimeError: Instance #304 not found\nTraceback (most recent call last):\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\geometry\\ui.py\", line 215, in draw\n RepresentationItemsData.load()\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\geometry\\data.py\", line 191, in load\n \"total_items\": cls.total_items(),\n ^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\geometry\\data.py\", line 200, in total_items\n element = tool.Geometry.get_active_representation(obj)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\tool\\geometry.py\", line 573, in get_active_representation\n return tool.Ifc.get().by_id(ifc_id)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\file.py\", line 551, in by_id\n return self[id]\n ~~~~^^^^\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\file.py\", line 538, in __getitem__\n return entity_instance(self.wrapped_data.by_id(key), self)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\ifcopenshell_wrapper.py\", line 6042, in by_id\n return _ifcopenshell_wrapper.file_by_id(self, id)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nRuntimeError: Instance #304 not found\nTraceback (most recent call last):\n File \"C:\\Program Files\\Blender Foundation\\Blender 4.5\\4.5\\scripts\\startup\\bl_ui\\space_view3d.py\", line 42, in draw\n self.draw_tool_settings(context)\n File \"C:\\Program Files\\Blender Foundation\\Blender 4.5\\4.5\\scripts\\startup\\bl_ui\\space_view3d.py\", line 55, in draw_tool_settings\n tool = ToolSelectPanelHelper.draw_active_tool_header(\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Program Files\\Blender Foundation\\Blender 4.5\\4.5\\scripts\\startup\\bl_ui\\space_toolsystem_common.py\", line 832, in draw_active_tool_header\n draw_settings(context, layout, tool)\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\model\\workspace.py\", line 109, in draw_settings\n CreateObjectUI.draw(context, layout, ifc_element_type=ifc_element_type)\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\model\\workspace.py\", line 487, in draw\n AuthoringData.load(ifc_element_type)\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\model\\data.py\", line 78, in load\n cls.data[\"has_extrusion\"] = cls.has_extrusion()\n ^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\model\\data.py\", line 247, in has_extrusion\n representation := tool.Geometry.get_active_representation(obj)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\tool\\geometry.py\", line 573, in get_active_representation\n return tool.Ifc.get().by_id(ifc_id)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\file.py\", line 551, in by_id\n return self[id]\n ~~~~^^^^\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\file.py\", line 538, in __getitem__\n return entity_instance(self.wrapped_data.by_id(key), self)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\ifcopenshell_wrapper.py\", line 6042, in by_id\n return _ifcopenshell_wrapper.file_by_id(self, id)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nRuntimeError: Instance #304 not found\n... truncatedStarting export\nNew cache was created.\nExport finished in 0.01 seconds\nInfo: IFC Project \"Test2.ifc\" Saved\n--------------------------------------------------------------------------------\nos: Windows\nos_version: 10.0.26100\npython_version: 3.11.11\narchitecture: ('64bit', 'WindowsPE')\nmachine: AMD64\nprocessor: Intel64 Family 6 Model 154 Stepping 3, GenuineIntel\nblender_version: 4.5.0\nbonsai_version: 0.8.3-post1\nbonsai_commit_hash: None\nbonsai_commit_date: None\nlast_actions:\n# operator: BIM_OT_edit_extrusion_axis\n# ifcopenshell.api: geometry.disconnect_path\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 330, \"Name\": \"Beam\"}, \"connection_type\": \"ATEND\"}\n# ifcopenshell.api: geometry.add_axis_representation\n>>> {\"context\": {\"cast_type\": \"entity_instance\", \"value\": 16, \"Name\": null}, \"axis\": \"[Vector((1.0294016306033882e-08, -2.7194619178771973e-07, 5.960464477539063e-08)), Vector((0.0002135134709533304, 3.814697265625e-06, 4525.5634765625))]\"}\n# ifcopenshell.api: geometry.unassign_representation\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 330, \"Name\": \"Beam\"}, \"representation\": {\"cast_type\": \"entity_instance\", \"value\": 340, \"Name\": null}}\n# ifcopenshell.api: geometry.remove_representation\n>>> {\"representation\": {\"cast_type\": \"entity_instance\", \"value\": 340, \"Name\": null}}\n# ifcopenshell.api: geometry.add_profile_representation\n>>> {\"context\": {\"cast_type\": \"entity_instance\", \"value\": 15, \"Name\": null}, \"profile\": {\"cast_type\": \"entity_instance\", \"value\": 74, \"Name\": null}, \"depth\": \"4525.563513556558\", \"cardinal_point\": \"5\", \"clippings\": \"[]\", \"placement_zx_axes\": \"((0.0, 0.0, 1.0), (1.0, 0.0, 0.0))\"}\n# ifcopenshell.api: geometry.unassign_representation\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 330, \"Name\": \"Beam\"}, \"representation\": {\"cast_type\": \"entity_instance\", \"value\": 348, \"Name\": null}}\n# ifcopenshell.api: geometry.remove_representation\n>>> {\"representation\": {\"cast_type\": \"entity_instance\", \"value\": 348, \"Name\": null}}\n# ifcopenshell.api: geometry.edit_object_placement\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 330, \"Name\": \"Beam\"}, \"matrix\": {\"cast_type\": \"ndarray\", \"value\": [[-0.8661919832229614, -0.0172788854688406, 0.49941253662109375, 1.910130500793457], [0.49971136450767517, -0.02995092235505581, 0.8656740188598633, 7.594281196594238], [-1.6871307906285438e-08, 0.9994019865989685, 0.03457770496606827, -7.725172996520996], [0.0, 0.0, 0.0, 1.0]]}}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 330, \"Name\": \"Beam\"}}\n# operator: BIM_OT_save_project\n# ifcopenshell.api: geometry.edit_object_placement\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 330, \"Name\": \"Beam\"}, \"matrix\": {\"cast_type\": \"ndarray\", \"value\": [[1.1924880638503055e-08, -4.371138828673793e-08, 1.0, 0.0], [-1.0, -5.212531172515413e-16, 1.1924880638503055e-08, 37.5], [-0.0, -1.0, -4.371138828673793e-08, 75.0], [0.0, 0.0, 0.0, 1.0]]}}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 330, \"Name\": \"Beam\"}}\n# operator: BIM_OT_save_project\n# operator: BIM_OT_save_project\n# operator: BIM_OT_save_project\n# ifcopenshell.api: geometry.edit_object_placement\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 79, \"Name\": \"Beam\"}, \"matrix\": {\"cast_type\": \"ndarray\", \"value\": [[-0.8305318654268534, -0.5569711128151901, 5.523356882974895e-09, 65.80446746063232], [0.5569711128151901, -0.8305318654268534, -3.704072382149093e-09, 19472.535432083125], [6.650384893389165e-09, 0.0, 1.0, -7.352622436523437], [0.0, 0.0, 0.0, 1.0]]}}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 79, \"Name\": \"Beam\"}}\n# ifcopenshell.api: geometry.edit_object_placement\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 330, \"Name\": \"Beam\"}, \"matrix\": {\"cast_type\": \"ndarray\", \"value\": [[-4.371138828673789e-08, -4.371138828673789e-08, 0.999999999999998, 4563.06340625], [-0.9999999999999991, 1.9106856769229402e-15, -4.371138828673784e-08, 19343.246062499995], [0.0, -0.9999999999999991, -4.371138828673784e-08, -4375.563719000896], [0.0, 0.0, 0.0, 1.0]]}}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 330, \"Name\": \"Beam\"}}\nlast_error: Traceback (most recent call last):\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\project\\operator.py\", line 1014, in finish_loading_project\n bpy.ops.bim.load_project_elements()\n File \"C:\\Program Files\\Blender Foundation\\Blender 4.5\\4.5\\scripts\\modules\\bpy\\ops.py\", line 109, in __call__\n ret = _op_call(self.idname_py(), kw)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nRuntimeError: Error: Python: Traceback (most recent call last):\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\project\\operator.py\", line 1110, in execute\n tool.Project.load_default_thumbnails()\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\tool\\project.py\", line 68, in load_default_thumbnails\n bpy.ops.bim.load_type_thumbnails()\n File \"C:\\Program Files\\Blender Foundation\\Blender 4.5\\4.5\\scripts\\modules\\bpy\\ops.py\", line 109, in __call__\n ret = _op_call(self.idname_py(), kw)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nRuntimeError: Error: Python: Traceback (most recent call last):\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\model\\product.py\", line 601, in execute\n AuthoringData.load()\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\model\\data.py\", line 78, in load\n cls.data[\"has_extrusion\"] = cls.has_extrusion()\n ^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\model\\data.py\", line 247, in has_extrusion\n representation := tool.Geometry.get_active_representation(obj)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\tool\\geometry.py\", line 573, in get_active_representation\n return tool.Ifc.get().by_id(ifc_id)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\file.py\", line 551, in by_id\n return self[id]\n ~~~~^^^^\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\file.py\", line 538, in __getitem__\n return entity_instance(self.wrapped_data.by_id(key), self)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\windows\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\ifcopenshell_wrapper.py\", line 6042, in by_id\n return _ifcopenshell_wrapper.file_by_id(self, id)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nRuntimeError: Instance #304 not found\nLocation: C:\\Program Files\\Blender Foundation\\Blender 4.5\\4.5\\scripts\\modules\\bpy\\ops.py:109\nLocation: C:\\Program Files\\Blender Foundation\\Blender 4.5\\4.5\\scripts\\modules\\bpy\\ops.py:109\n\n\nifc: Test2.ifc\nschema: IFC4\npreprocessor_version: IfcOpenShell 0.8.3-post1\noriginating_system: Bonsai 0.8.3-post1\n```\n--------------------------------------------------------------------------------\n\n\n### Attachments\n\n\u003cimg width=\"225\" height=\"118\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/03a5f692-cb4d-4fb4-9bdb-c5aa95f81bf8\" />\n","author":{"url":"https://github.com/ktyam301","@type":"Person","name":"ktyam301"},"datePublished":"2025-07-24T15:28:48Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/6942"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3ac58cf5-066a-8e83-d4f0-d1018a8ef076 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 96F8:167EE0:455B97:5FD099:6B049EF0 |
| html-safe-nonce | d7aab624bdc8b96e249aa6aeceedb19f4f575c5b4305f41409d58018a6b6b8ce |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NkY4OjE2N0VFMDo0NTVCOTc6NUZEMDk5OjZCMDQ5RUYwIiwidmlzaXRvcl9pZCI6IjI2MzUxOTg1MDU0NTMyMzc2MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 119400eb589b70587beea21dfc687e135253dd28037fa6ea0ed10f8ddf66e7f4 |
| hovercard-subject-tag | issue:3260322079 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/IfcOpenShell/IfcOpenShell/6942/issue_layout |
| twitter:image | https://opengraph.githubassets.com/51d843020949c780c669425b44ab5078638e8cd679006dd29dc714f9626a383d/IfcOpenShell/IfcOpenShell/issues/6942 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/51d843020949c780c669425b44ab5078638e8cd679006dd29dc714f9626a383d/IfcOpenShell/IfcOpenShell/issues/6942 |
| og:image:alt | Bug Description Successfully loaded existing cache: 7631d237c540569cbb21339ab8f96aeb.h5. Error: Cannot remove profile as it's still part of other IFC entities: - IfcMaterialProfile Writing homefile... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ktyam301 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9784b6f42e2d5eac4e394fa88cad134c0dc5b6662b4ff2787a1ed1ef5a96331d |
| turbo-cache-control | no-preview |
| go-import | github.com/IfcOpenShell/IfcOpenShell git https://github.com/IfcOpenShell/IfcOpenShell.git |
| octolytics-dimension-user_id | 13692563 |
| octolytics-dimension-user_login | IfcOpenShell |
| octolytics-dimension-repository_id | 40473201 |
| octolytics-dimension-repository_nwo | IfcOpenShell/IfcOpenShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 40473201 |
| octolytics-dimension-repository_network_root_nwo | IfcOpenShell/IfcOpenShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3fd14143b75b2af7b76bbd23b069867d091adfcc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width