Title: [BBIM] error on appending element from default IFC4 project library to IFC4X3 project · Issue #4766 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: [BBIM] error on appending element from default IFC4 project library to IFC4X3 project · Issue #4766 · IfcOpenShell/IfcOpenShell
X Title: [BBIM] error on appending element from default IFC4 project library to IFC4X3 project · Issue #4766 · IfcOpenShell/IfcOpenShell
Description: I get the following error when I try to append a library element from one of the supplied default IFC4 libraries to an IFC4X3 project. As the newly created project uses the IFC4X3 schema, an import from an IFC4 library file should be aut...
Open Graph Description: I get the following error when I try to append a library element from one of the supplied default IFC4 libraries to an IFC4X3 project. As the newly created project uses the IFC4X3 schema, an import...
X Description: I get the following error when I try to append a library element from one of the supplied default IFC4 libraries to an IFC4X3 project. As the newly created project uses the IFC4X3 schema, an import...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/4766
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[BBIM] error on appending element from default IFC4 project library to IFC4X3 project","articleBody":"I get the following error when I try to append a library element from one of the supplied default IFC4 libraries to an IFC4X3 project.\r\n\r\nAs the newly created project uses the IFC4X3 schema, an import from an IFC4 library file should be automatically migrated to the newer standard.\r\n\r\nSteps to reproduce:\r\n- start Blender\r\n- switch to BIM workspace\r\n- Property Editor -> Project overview -> section Project Info -> under IFC Schema select IFC4X3 from the dropdown menu -> Create Project\r\n- Property Editor -> Project overview -> section Project Setup -> Project Library -> select IFC3 Furniture Library from the dropdown menu\r\n- select IfcTypeProduct -> press little arrow\r\n- select IfcFurnitureType -> press little arrow\r\n- select one of the elements from the list, e.g. `Double bed` or `Generic Large Desk`\r\n- append library element to the current IFC project by selecting the paper clip icon next to the element entry\r\n- the error occurs\r\n\r\nCopied error message:\r\n```\r\nos: Darwin\r\nos_version: Darwin Kernel Version 23.5.0: Wed May 1 20:12:58 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T6000\r\npython_version: 3.11.7\r\narchitecture: ('64bit', '')\r\nmachine: arm64\r\nprocessor: arm\r\nblender_version: 4.1.1\r\nblenderbim_version: 0.0.240530\r\nlast_actions: \r\n# ifcopenshell.api: owner.create_owner_history\r\n>>> {}\r\n# ifcopenshell.api: geometry.edit_object_placement\r\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 36, \"Name\": \"My Building\"}, \"matrix\": {\"cast_type\": \"ndarray\", \"value\": [[1.0, 0.0, 0.0, 0.0], [0.0, 1.0, 0.0, 0.0], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0]]}, \"is_si\": \"False\"}\r\n# ifcopenshell.api: owner.update_owner_history\r\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 36, \"Name\": \"My Building\"}}\r\n# ifcopenshell.api: aggregate.assign_object\r\n>>> {\"products\": [{\"cast_type\": \"entity_instance\", \"value\": 42, \"Name\": \"My Storey\"}], \"relating_object\": {\"cast_type\": \"entity_instance\", \"value\": 36, \"Name\": \"My Building\"}}\r\n# ifcopenshell.api: spatial.unassign_container\r\n>>> {\"products\": \"[]\"}\r\n# ifcopenshell.api: owner.create_owner_history\r\n>>> {}\r\n# ifcopenshell.api: geometry.edit_object_placement\r\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 42, \"Name\": \"My Storey\"}, \"matrix\": {\"cast_type\": \"ndarray\", \"value\": [[1.0, 0.0, 0.0, 0.0], [0.0, 1.0, 0.0, 0.0], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0]]}, \"is_si\": \"False\"}\r\n# ifcopenshell.api: owner.update_owner_history\r\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 42, \"Name\": \"My Storey\"}}\r\n# operator: BIM_OT_append_library_element\r\n# ifcopenshell.api: project.append_asset\r\n>>> {\"library\": \"\u003cifcopenshell.file.file object at 0x3270d9090>\", \"element\": {\"cast_type\": \"entity_instance\", \"value\": 9720, \"Name\": \"Generic Large Desk\"}}\r\nlast_error: Traceback (most recent call last):\r\n File \"/Users/dirkolbrich/Library/Application Support/Blender/4.1/scripts/addons/blenderbim/bim/ifc.py\", line 360, in execute_ifc_operator\r\n result = getattr(operator, \"_execute\")(context)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/Users/dirkolbrich/Library/Application Support/Blender/4.1/scripts/addons/blenderbim/bim/module/project/operator.py\", line 436, in _execute\r\n element = ifcopenshell.api.run(\r\n ^^^^^^^^^^^^^^^^^^^^^\r\n File \"/Users/dirkolbrich/Library/Application Support/Blender/4.1/scripts/addons/blenderbim/libs/site/packages/ifcopenshell/api/__init__.py\", line 184, in run\r\n return usecase_function(ifc_file, should_run_listeners=should_run_listeners, **settings)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/Users/dirkolbrich/Library/Application Support/Blender/4.1/scripts/addons/blenderbim/libs/site/packages/ifcopenshell/api/__init__.py\", line 344, in wrapper\r\n result = usecase(*args, **settings)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/Users/dirkolbrich/Library/Application Support/Blender/4.1/scripts/addons/blenderbim/libs/site/packages/ifcopenshell/api/project/append_asset.py\", line 124, in append_asset\r\n return usecase.execute()\r\n ^^^^^^^^^^^^^^^^^\r\n File \"/Users/dirkolbrich/Library/Application Support/Blender/4.1/scripts/addons/blenderbim/libs/site/packages/ifcopenshell/api/project/append_asset.py\", line 140, in execute\r\n return self.append_type_product()\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/Users/dirkolbrich/Library/Application Support/Blender/4.1/scripts/addons/blenderbim/libs/site/packages/ifcopenshell/api/project/append_asset.py\", line 192, in append_type_product\r\n element = self.add_element(self.settings[\"element\"])\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/Users/dirkolbrich/Library/Application Support/Blender/4.1/scripts/addons/blenderbim/libs/site/packages/ifcopenshell/api/project/append_asset.py\", line 236, in add_element\r\n new = self.file.add(element)\r\n ^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/Users/dirkolbrich/Library/Application Support/Blender/4.1/scripts/addons/blenderbim/libs/site/packages/ifcopenshell/file.py\", line 454, in add\r\n result = entity_instance(self.wrapped_data.add(inst.wrapped_data, -1 if _id is None else _id), self)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n File \"/Users/dirkolbrich/Library/Application Support/Blender/4.1/scripts/addons/blenderbim/libs/site/packages/ifcopenshell/ifcopenshell_wrapper.py\", line 3840, in add\r\n return _ifcopenshell_wrapper.file_add(self, entity, id)\r\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\nRuntimeError: Unabled to add instance from IFC4 schema to file with IFC4X3_ADD2 schema\r\n\r\nifc: Unsaved\r\nschema: IFC4X3\r\npreprocessor_version: IfcOpenShell v0.7.0-f7c03db75\r\noriginating_system: IfcOpenShell v0.7.0-f7c03db75\r\n```","author":{"url":"https://github.com/dirkolbrich","@type":"Person","name":"dirkolbrich"},"datePublished":"2024-05-30T14:07:46Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/4766"}
| 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:bd401c74-a456-24a3-3d34-043e0670a796 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 84F6:9393C:1F32E0:299B8B:6B04B47C |
| html-safe-nonce | 4e3e9add07c18526057695864787a938e7b59d6381eab9c4567ba7980d913ead |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NEY2OjkzOTNDOjFGMzJFMDoyOTlCOEI6NkIwNEI0N0MiLCJ2aXNpdG9yX2lkIjoiODI3ODMyMjgxNTExNjI5MzI0NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 33eab89e329c77e93a135c457c621362580d68cf84847d8987314f5c7010e50b |
| hovercard-subject-tag | issue:2325777984 |
| 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/4766/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d9760d0c157ec22370f2c63f1cfbf1207abdb49ca9e95a87527cd7c4bd04a6fd/IfcOpenShell/IfcOpenShell/issues/4766 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d9760d0c157ec22370f2c63f1cfbf1207abdb49ca9e95a87527cd7c4bd04a6fd/IfcOpenShell/IfcOpenShell/issues/4766 |
| og:image:alt | I get the following error when I try to append a library element from one of the supplied default IFC4 libraries to an IFC4X3 project. As the newly created project uses the IFC4X3 schema, an import... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dirkolbrich |
| 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