Title: Create Duplicate copy Object from New file to Old file · Issue #7351 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Create Duplicate copy Object from New file to Old file · Issue #7351 · IfcOpenShell/IfcOpenShell
X Title: Create Duplicate copy Object from New file to Old file · Issue #7351 · IfcOpenShell/IfcOpenShell
Description: Bug Description os: Windows os_version: 10.0.26200 python_version: 3.11.11 architecture: ('64bit', 'WindowsPE') machine: AMD64 processor: AMD64 Family 25 Model 80 Stepping 0, AuthenticAMD blender_version: 4.5.4 LTS bonsai_version: 0.8.3-...
Open Graph Description: Bug Description os: Windows os_version: 10.0.26200 python_version: 3.11.11 architecture: ('64bit', 'WindowsPE') machine: AMD64 processor: AMD64 Family 25 Model 80 Stepping 0, AuthenticAMD blender_v...
X Description: Bug Description os: Windows os_version: 10.0.26200 python_version: 3.11.11 architecture: ('64bit', 'WindowsPE') machine: AMD64 processor: AMD64 Family 25 Model 80 Stepping 0, Authen...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/7351
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Create Duplicate copy Object from New file to Old file","articleBody":"### Bug Description\n\n```\nos: Windows\nos_version: 10.0.26200\npython_version: 3.11.11\narchitecture: ('64bit', 'WindowsPE')\nmachine: AMD64\nprocessor: AMD64 Family 25 Model 80 Stepping 0, AuthenticAMD\nblender_version: 4.5.4 LTS\nbonsai_version: 0.8.3-post1\nbonsai_commit_hash: None\nbonsai_commit_date: None\nlast_actions: \n# operator: BIM_OT_override_object_duplicate_move\nlast_error: Traceback (most recent call last):\n File \"C:\\Users\\rajes\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\ifc.py\", line 488, in execute_ifc_operator\n result = getattr(operator, \"_execute\")(context)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\rajes\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\geometry\\operator.py\", line 1075, in _execute\n return OverrideDuplicateMove.execute_ifc_duplicate_operator(self, context)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\rajes\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\geometry\\operator.py\", line 1113, in execute_ifc_duplicate_operator\n old_to_new, new_active_obj = tool.Geometry.duplicate_ifc_objects(\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\rajes\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\tool\\geometry.py\", line 2102, in duplicate_ifc_objects\n elif tool.Geometry.is_representation_item(obj):\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\rajes\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\tool\\geometry.py\", line 1095, in is_representation_item\n return bool(cls.get_representation_item(obj))\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\rajes\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\tool\\geometry.py\", line 1088, in get_representation_item\n and ((item := tool.Ifc.get().by_id(ifc_id)).is_a(\"IfcRepresentationItem\"))\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\rajes\\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\\rajes\\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\\rajes\\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 #1260 not found\n\nifc: File A.ifc\nschema: IFC4\npreprocessor_version: ODA SDAI 23.12\noriginating_system: Autodesk Revit 24.0.4.427 (ENG) - IFC 24.0.4.427\n```\n\n### Attachments\n\n_No response_\n\n### Debug and Error Output\n\n```true\n\n```","author":{"url":"https://github.com/Rajeshkumar-star-prog","@type":"Person","name":"Rajeshkumar-star-prog"},"datePublished":"2025-11-12T14:42:47Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/7351"}
| 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:213c919e-d604-19b6-b504-35131ca456f1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B076:1ABF7C:3B6AB:5227B:6B04AA02 |
| html-safe-nonce | f11f52e2d8c2a81727ef35a9a68704aef1f6040a12e4ffb533d09676fea7ddaf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMDc2OjFBQkY3QzozQjZBQjo1MjI3Qjo2QjA0QUEwMiIsInZpc2l0b3JfaWQiOiIyOTA4NjY4Nzc2NTQxMzY2Nzg2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | e1006e8605afcb7f0cb471e02a878de598ec8e230f3b72b78517ab7414e0d1c0 |
| hovercard-subject-tag | issue:3616862046 |
| 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/7351/issue_layout |
| twitter:image | https://opengraph.githubassets.com/95f3ca810df29131be7bee6d4f0d105674eb4e410e7fcc1054251e90909d8ee9/IfcOpenShell/IfcOpenShell/issues/7351 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/95f3ca810df29131be7bee6d4f0d105674eb4e410e7fcc1054251e90909d8ee9/IfcOpenShell/IfcOpenShell/issues/7351 |
| og:image:alt | Bug Description os: Windows os_version: 10.0.26200 python_version: 3.11.11 architecture: ('64bit', 'WindowsPE') machine: AMD64 processor: AMD64 Family 25 Model 80 Stepping 0, AuthenticAMD blender_v... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Rajeshkumar-star-prog |
| hostname | github.com |
| expected-hostname | github.com |
| None | 188497a0f45a7aa8f7c866faa1950d1a7f8d82b59416adf549b222ad1d1dd19b |
| 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 | 557cfbac6cdb532730c95c90f2cefdc0c4128029 |
| 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