Title: Error Saving IFC After Removing IFCMechanicalFastener Elements · Issue #6153 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Error Saving IFC After Removing IFCMechanicalFastener Elements · Issue #6153 · IfcOpenShell/IfcOpenShell
X Title: Error Saving IFC After Removing IFCMechanicalFastener Elements · Issue #6153 · IfcOpenShell/IfcOpenShell
Description: `Hello, I’m trying to modify a rather large IFC file (51 MB). My goal is to remove all bolts, which means deleting all IFCMechanicalFastener elements present in the IFC. Once they are all removed, when I try to save the file, I get the e...
Open Graph Description: `Hello, I’m trying to modify a rather large IFC file (51 MB). My goal is to remove all bolts, which means deleting all IFCMechanicalFastener elements present in the IFC. Once they are all removed, ...
X Description: `Hello, I’m trying to modify a rather large IFC file (51 MB). My goal is to remove all bolts, which means deleting all IFCMechanicalFastener elements present in the IFC. Once they are all removed, ...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/6153
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error Saving IFC After Removing IFCMechanicalFastener Elements","articleBody":"`Hello,\n\nI’m trying to modify a rather large IFC file (51 MB). My goal is to remove all bolts, which means deleting all IFCMechanicalFastener elements present in the IFC.\n\nOnce they are all removed, when I try to save the file, I get the error message below.\n\nIs there a solution to this problem?\n```\nos: Windows\nos_version: 10.0.19045\npython_version: 3.11.9\narchitecture: ('64bit', 'WindowsPE')\nmachine: AMD64\nprocessor: Intel64 Family 6 Model 63 Stepping 2, GenuineIntel\nblender_version: 4.3.2\nbonsai_version: 0.8.1\nbonsai_commit_hash: None\nlast_actions: \n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 791344, \"Name\": null}}\n# ifcopenshell.api: pset.remove_pset\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 747578, \"Name\": \"Bolt assembly\"}, \"pset\": {\"cast_type\": \"entity_instance\", \"value\": 747438, \"Name\": \"Tekla Bolt\"}}\n# ifcopenshell.api: type.unassign_type\n>>> {\"related_objects\": [{\"cast_type\": \"entity_instance\", \"value\": 747578, \"Name\": \"Bolt assembly\"}]}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 790618, \"Name\": null}}\n# ifcopenshell.api: root.remove_product\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 747566, \"Name\": \"Bolt assembly\"}}\n# ifcopenshell.api: geometry.unassign_representation\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 747566, \"Name\": \"Bolt assembly\"}, \"representation\": {\"cast_type\": \"entity_instance\", \"value\": 747564, \"Name\": null}}\n# ifcopenshell.api: geometry.remove_representation\n>>> {\"representation\": {\"cast_type\": \"entity_instance\", \"value\": 747564, \"Name\": null}}\n# ifcopenshell.api: material.unassign_material\n>>> {\"products\": [{\"cast_type\": \"entity_instance\", \"value\": 747566, \"Name\": \"Bolt assembly\"}]}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 791344, \"Name\": null}}\n# ifcopenshell.api: pset.remove_pset\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 747566, \"Name\": \"Bolt assembly\"}, \"pset\": {\"cast_type\": \"entity_instance\", \"value\": 747438, \"Name\": \"Tekla Bolt\"}}\n# ifcopenshell.api: type.unassign_type\n>>> {\"related_objects\": [{\"cast_type\": \"entity_instance\", \"value\": 747566, \"Name\": \"Bolt assembly\"}]}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 790618, \"Name\": null}}\n# ifcopenshell.api: root.remove_product\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 747602, \"Name\": \"Bolt assembly\"}}\n# ifcopenshell.api: geometry.unassign_representation\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 747602, \"Name\": \"Bolt assembly\"}, \"representation\": {\"cast_type\": \"entity_instance\", \"value\": 747600, \"Name\": null}}\n# ifcopenshell.api: geometry.remove_representation\n>>> {\"representation\": {\"cast_type\": \"entity_instance\", \"value\": 747600, \"Name\": null}}\n# ifcopenshell.api: material.unassign_material\n>>> {\"products\": [{\"cast_type\": \"entity_instance\", \"value\": 747602, \"Name\": \"Bolt assembly\"}]}\n# ifcopenshell.api: pset.remove_pset\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 747602, \"Name\": \"Bolt assembly\"}, \"pset\": {\"cast_type\": \"entity_instance\", \"value\": 747438, \"Name\": \"Tekla Bolt\"}}\n# ifcopenshell.api: type.unassign_type\n>>> {\"related_objects\": [{\"cast_type\": \"entity_instance\", \"value\": 747602, \"Name\": \"Bolt assembly\"}]}\n# operator: BIM_OT_save_project\n# ifcopenshell.api: geometry.edit_object_placement\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 125066, \"Name\": \"GUARDA-CORPO\"}, \"matrix\": {\"cast_type\": \"ndarray\", \"value\": [[-1.5987757251423318e-07, 0.9999997615814209, 0.0005460735992528498, 161.68553161621094], [-6.230254075489938e-05, -0.0005460736574605107, 0.9999997615814209, -130.11497497558594], [1.0, 1.258557631445001e-07, 6.230261351447552e-05, 6.524820327758789], [0.0, 0.0, 0.0, 1.0]]}}\nlast_error: Traceback (most recent call last):\n File \"C:\\Users\\cmorsell\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\ifc.py\", line 442, in execute_ifc_operator\n result = getattr(operator, \"_execute\")(context)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\cmorsell\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\project\\operator.py\", line 1536, in _execute\n ifc_exporter.export()\n File \"C:\\Users\\cmorsell\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\export_ifc.py\", line 49, in export\n self.sync_all_objects()\n File \"C:\\Users\\cmorsell\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\export_ifc.py\", line 101, in sync_all_objects\n result = self.sync_object_placement(obj)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\cmorsell\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\export_ifc.py\", line 158, in sync_object_placement\n bonsai.core.geometry.edit_object_placement(tool.Ifc, tool.Geometry, tool.Surveyor, obj=obj)\n File \"C:\\Users\\cmorsell\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\core\\geometry.py\", line 48, in edit_object_placement\n ifc.run(\"geometry.edit_object_placement\", product=element, matrix=surveyor.get_absolute_matrix(obj))\n File \"C:\\Users\\cmorsell\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\tool\\ifc.py\", line 49, in run\n return ifcopenshell.api.run(command, IfcStore.get_file(), **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\cmorsell\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\__init__.py\", line 93, in run\n return usecase_function(ifc_file, should_run_listeners=should_run_listeners, **settings)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\cmorsell\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\__init__.py\", line 253, in wrapper\n result = usecase(*args, **settings)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\cmorsell\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\geometry\\edit_object_placement.py\", line 45, in edit_object_placement\n return usecase.execute()\n ^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\cmorsell\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\geometry\\edit_object_placement.py\", line 65, in execute\n relative_placement = self.get_relative_placement(placement_rel_to)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\cmorsell\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\geometry\\edit_object_placement.py\", line 153, in get_relative_placement\n relating_object_matrix = ifcopenshell.util.placement.get_local_placement(placement_rel_to)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\cmorsell\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\util\\placement.py\", line 129, in get_local_placement\n parent = get_local_placement(rel_to)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\cmorsell\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\util\\placement.py\", line 129, in get_local_placement\n parent = get_local_placement(rel_to)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\cmorsell\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\util\\placement.py\", line 129, in get_local_placement\n parent = get_local_placement(rel_to)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\cmorsell\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\util\\placement.py\", line 130, in get_local_placement\n return np.dot(parent, get_axis2placement(placement.RelativePlacement))\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\cmorsell\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\util\\placement.py\", line 79, in get_axis2placement\n shape = ifcopenshell.geom.create_shape(settings, placement)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\cmorsell\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\geom\\main.py\", line 434, in create_shape\n ifcopenshell_wrapper.create_shape(\n File \"C:\\Users\\cmorsell\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\ifcopenshell_wrapper.py\", line 4006, in create_shape\n return _ifcopenshell_wrapper.create_shape(*args)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nRuntimeError: Unexpected topology\n\nifc: SD57-ESTRUTURA+CAVERN+GRADIL+STEPLARM_ESCADAS_GUARDA_CORPOS+SHAFT_20220823.ifc\nschema: IFC2X3\npreprocessor_version: IfcOpenShell 0.8.1\noriginating_system: Bonsai 0.8.1\n```","author":{"url":"https://github.com/MorselliCERN","@type":"Person","name":"MorselliCERN"},"datePublished":"2025-02-13T09:48:03Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/6153"}
| 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:6e6a3ef8-96c3-65a4-98a5-180231d3fd76 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AADC:36EAC8:7C7013:AA9A3A:6B04AB0A |
| html-safe-nonce | 1f5240cf0233138d611428b5668784e1e5dd3e83af37a087514bd74347e6eafd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQURDOjM2RUFDODo3QzcwMTM6QUE5QTNBOjZCMDRBQjBBIiwidmlzaXRvcl9pZCI6IjI4MzUwNDY4OTg1NTkwMDQyNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 12b7e73d997af6477d59b5c5093c2f2b921d440f2d80525759f6f86f4b58b95c |
| hovercard-subject-tag | issue:2850519246 |
| 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/6153/issue_layout |
| twitter:image | https://opengraph.githubassets.com/7b596594320c58620bedb41cee1899d5aa76df96643e3553d60585cfa42a5045/IfcOpenShell/IfcOpenShell/issues/6153 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/7b596594320c58620bedb41cee1899d5aa76df96643e3553d60585cfa42a5045/IfcOpenShell/IfcOpenShell/issues/6153 |
| og:image:alt | `Hello, I’m trying to modify a rather large IFC file (51 MB). My goal is to remove all bolts, which means deleting all IFCMechanicalFastener elements present in the IFC. Once they are all removed, ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MorselliCERN |
| hostname | github.com |
| expected-hostname | github.com |
| None | f1d110ea058a0915c1d8aa3fc2069fa15801e128f591e5762525abe77490ecb1 |
| 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 | ffa22a65e4c46d376940fe34b05e6a7e9c7fdb9b |
| 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