Title: BlenderBim : Undoing a library addition doesn't fully remove element · Issue #1709 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: BlenderBim : Undoing a library addition doesn't fully remove element · Issue #1709 · IfcOpenShell/IfcOpenShell
X Title: BlenderBim : Undoing a library addition doesn't fully remove element · Issue #1709 · IfcOpenShell/IfcOpenShell
Description: Brand new file, Create Project Load library file (eg the demo library file) Append element (eg a beam type) It's successfully added to the scene and a new empty object is created Undo with CTRL Z The empty object is removed But the beam ...
Open Graph Description: Brand new file, Create Project Load library file (eg the demo library file) Append element (eg a beam type) It's successfully added to the scene and a new empty object is created Undo with CTRL Z T...
X Description: Brand new file, Create Project Load library file (eg the demo library file) Append element (eg a beam type) It's successfully added to the scene and a new empty object is created Undo with CTRL...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/1709
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"BlenderBim : Undoing a library addition doesn't fully remove element","articleBody":"Brand new file,\r\n\r\n1. Create Project\r\n2. Load library file (eg the [demo library file](https://github.com/IfcOpenShell/IfcOpenShell/blob/v0.6.0/src/blenderbim/libraries/blenderbim-demo-library.ifc))\r\n3. Append element (eg a beam type)\r\n\r\nIt's successfully added to the scene and a new empty object is created\r\n\r\n4. Undo with CTRL Z\r\nThe empty object is removed\r\n\r\nBut the beam type is still available :\r\n\r\n5. Creating a new instance with SHIFT + A throws an error :\r\n```\r\nError: Python: Traceback (most recent call last):\r\n File \"C:\\Users\\Gorgious\\AppData\\Roaming\\Blender Foundation\\Blender\\2.93\\scripts\\addons\\blenderbim\\bim\\module\\model\\workspace.py\", line 145, in \r\nexecute\r\n return IfcStore.execute_ifc_operator(self, context)\r\n File \"C:\\Users\\Gorgious\\AppData\\Roaming\\Blender Foundation\\Blender\\2.93\\scripts\\addons\\blenderbim\\bim\\ifc.py\", line 232, in execute_ifc_operator\r\n result = getattr(operator, \"_execute\")(context)\r\n File \"C:\\Users\\Gorgious\\AppData\\Roaming\\Blender Foundation\\Blender\\2.93\\scripts\\addons\\blenderbim\\bim\\module\\model\\workspace.py\", line 150, in \r\n_execute\r\n getattr(self, f\"hotkey_{self.hotkey}\")()\r\n File \"C:\\Users\\Gorgious\\AppData\\Roaming\\Blender Foundation\\Blender\\2.93\\scripts\\addons\\blenderbim\\bim\\module\\model\\workspace.py\", line 154, in \r\nhotkey_S_A\r\n bpy.ops.bim.add_type_instance()\r\n File \"c:\\Program Files (x86)\\Steam\\steamapps\\common\\Blender\\2.93\\scripts\\modules\\bpy\\ops.py\", line 132, in __call__\r\n ret = _op_call(self.idname_py(), None, kw)\r\nRuntimeError: Error: Python: Traceback (most recent call last):\r\n File \"C:\\Users\\Gorgious\\AppData\\Roaming\\Blender Foundation\\Blender\\2.93\\scripts\\addons\\blenderbim\\bim\\module\\model\\product.py\", line 67, in execute\r\n return IfcStore.execute_ifc_operator(self, context)\r\n File \"C:\\Users\\Gorgious\\AppData\\Roaming\\Blender Foundation\\Blender\\2.93\\scripts\\addons\\blenderbim\\bim\\ifc.py\", line 232, in execute_ifc_operator\r\n result = getattr(operator, \"_execute\")(context)\r\n File \"C:\\Users\\Gorgious\\AppData\\Roaming\\Blender Foundation\\Blender\\2.93\\scripts\\addons\\blenderbim\\bim\\module\\model\\product.py\", line 83, in _execute\r\n if profile.DumbProfileGenerator(relating_type).generate():\r\n File \"C:\\Users\\Gorgious\\AppData\\Roaming\\Blender Foundation\\Blender\\2.93\\scripts\\addons\\blenderbim\\bim\\module\\model\\profile.py\", line 124, in generate\r\n return self.derive_from_cursor()\r\n File \"C:\\Users\\Gorgious\\AppData\\Roaming\\Blender Foundation\\Blender\\2.93\\scripts\\addons\\blenderbim\\bim\\module\\model\\profile.py\", line 128, in derive_from_cursor\r\n return self.create_profile()\r\n File \"C:\\Users\\Gorgious\\AppData\\Roaming\\Blender Foundation\\Blender\\2.93\\scripts\\addons\\blenderbim\\bim\\module\\model\\profile.py\", line 180, in create_profile\r\n bpy.ops.bim.switch_representation(\r\n File \"c:\\Program Files (x86)\\Steam\\steamapps\\common\\Blender\\2.93\\scripts\\modules\\bpy\\ops.py\", line 132, in __call__\r\n ret = _op_call(self.idname_py(), None, kw)\r\nRuntimeError: Error: Python: Traceback (most recent call last):\r\n File \"C:\\Users\\Gorgious\\AppData\\Roaming\\Blender Foundation\\Blender\\2.93\\scripts\\addons\\blenderbim\\bim\\module\\geometry\\operator.py\", line 197, in execute\r\n self.pull_mesh_from_ifc(context)\r\n File \"C:\\Users\\Gorgious\\AppData\\Roaming\\Blender Foundation\\Blender\\2.93\\scripts\\addons\\blenderbim\\bim\\module\\geometry\\operator.py\", line 238, in pull_mesh_from_ifc\r\n material_creator.create(element, self.element_obj, mesh)\r\n File \"C:\\Users\\Gorgious\\AppData\\Roaming\\Blender Foundation\\Blender\\2.93\\scripts\\addons\\blenderbim\\bim\\import_ifc.py\", line 76, in create \r\n self.add_default_material(element)\r\n File \"C:\\Users\\Gorgious\\AppData\\Roaming\\Blender Foundation\\Blender\\2.93\\scripts\\addons\\blenderbim\\bim\\import_ifc.py\", line 95, in add_default_material\r\n self.mesh.materials.append(self.materials[material.id()])\r\nKeyError: 72\r\n\r\nlocation: c:\\Program Files (x86)\\Steam\\steamapps\\common\\Blender\\2.93\\scripts\\modules\\bpy\\ops.py:132\r\n\r\n\r\n\r\nlocation: c:\\Program Files (x86)\\Steam\\steamapps\\common\\Blender\\2.93\\scripts\\modules\\bpy\\ops.py:132\r\n\r\n\r\n\r\nlocation: \u003cunknown location>:-1\r\n```\r\n\r\nBut does create a beam with correct type \r\n\r\n\r\n\r\nBut no parametric Pset :\r\n\r\n\r\n\r\n\r\n","author":{"url":"https://github.com/Gorgious56","@type":"Person","name":"Gorgious56"},"datePublished":"2021-08-30T12:14:38Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/1709"}
| 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:b4f14184-a2e8-06af-6ccd-14a0834a1e10 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E3DE:369B49:1804A9:2159E2:6B04B3FA |
| html-safe-nonce | f553fa38daaed93313ef523aef7315655e2019d4e0ce88408390709161381b59 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFM0RFOjM2OUI0OToxODA0QTk6MjE1OUUyOjZCMDRCM0ZBIiwidmlzaXRvcl9pZCI6IjExNDgzNzE2OTI5MjY4NDE4NTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0a9fb60d0cd1feba18ada49d02784ccd7ce842c41400b6f29c55217e70cadf97 |
| hovercard-subject-tag | issue:982727624 |
| 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/1709/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e9bf1be21c2c3cdf319b1f6b7fc7813946fb47a93bf216fc45a744e27a486baf/IfcOpenShell/IfcOpenShell/issues/1709 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e9bf1be21c2c3cdf319b1f6b7fc7813946fb47a93bf216fc45a744e27a486baf/IfcOpenShell/IfcOpenShell/issues/1709 |
| og:image:alt | Brand new file, Create Project Load library file (eg the demo library file) Append element (eg a beam type) It's successfully added to the scene and a new empty object is created Undo with CTRL Z T... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Gorgious56 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 378bd702ac792b3550e484ad39d9a898fcd25bb52ba6962b0c9cc457c1ea71c7 |
| 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 | b032e77f1ea437ede6c115446a0a467709b468e7 |
| 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