Title: Wall creation problem · Issue #6404 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Wall creation problem · Issue #6404 · IfcOpenShell/IfcOpenShell
X Title: Wall creation problem · Issue #6404 · IfcOpenShell/IfcOpenShell
Description: Bonsai errors when creating a wall. To reproduce this, open one of the attached files Click on wall tool; make the WAL150 Muretti CA the current wall type create a wall See error--> Attachments Modello 3d su strutture vecchie.ifc.txt Mod...
Open Graph Description: Bonsai errors when creating a wall. To reproduce this, open one of the attached files Click on wall tool; make the WAL150 Muretti CA the current wall type create a wall See error--> Attachments Mod...
X Description: Bonsai errors when creating a wall. To reproduce this, open one of the attached files Click on wall tool; make the WAL150 Muretti CA the current wall type create a wall See error--> Attachments ...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/6404
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Wall creation problem","articleBody":"Bonsai errors when creating a wall.\n\n\n\n1. To reproduce this, open one of the attached files\n2. Click on wall tool;\n3. make the WAL150 Muretti CA the current wall type\n4. create a wall\n5. See error-->\n\n**Attachments**\n\n[Modello 3d su strutture vecchie.ifc.txt](https://github.com/user-attachments/files/19373694/Modello.3d.su.strutture.vecchie.ifc.txt)\n[Modello 3d su strutture vecchie-IFC4.ifc.txt](https://github.com/user-attachments/files/19373695/Modello.3d.su.strutture.vecchie-IFC4.ifc.txt)\n\n**Debug information**\n\nThis is the error with ifc2x3\n````\nos: Windows\nos_version: 10.0.22631\npython_version: 3.11.9\narchitecture: ('64bit', 'WindowsPE')\nmachine: AMD64\nprocessor: Intel64 Family 6 Model 158 Stepping 10, GenuineIntel\nblender_version: 4.3.0\nbonsai_version: 0.8.2-alpha250319\nbonsai_commit_hash: 3c777a0\nbonsai_commit_date: 2025-03-19T16:52:50+05:00\nlast_actions: \n# ifcopenshell.api: spatial.assign_container\n>>> {\"products\": [{\"cast_type\": \"entity_instance\", \"value\": 23166, \"Name\": \"Wall\"}], \"relating_structure\": {\"cast_type\": \"entity_instance\", \"value\": 25, \"Name\": \"ES02 del 10.04.2021\"}}\n# ifcopenshell.api: aggregate.unassign_object\n>>> {\"products\": [{\"cast_type\": \"entity_instance\", \"value\": 23166, \"Name\": \"Wall\"}]}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 22193, \"Name\": null}}\n# ifcopenshell.api: type.assign_type\n>>> {\"related_objects\": [{\"cast_type\": \"entity_instance\", \"value\": 23166, \"Name\": \"Wall\"}], \"relating_type\": {\"cast_type\": \"entity_instance\", \"value\": 23102, \"Name\": \"WAL150 Muretti CA\"}}\n# ifcopenshell.api: owner.create_owner_history\n>>> {}\n# ifcopenshell.api: material.assign_material\n>>> {\"products\": [{\"cast_type\": \"entity_instance\", \"value\": 23166, \"Name\": \"Wall\"}], \"type\": \"IfcMaterialLayerSetUsage\"}\n# ifcopenshell.api: material.unassign_material\n>>> {\"products\": [{\"cast_type\": \"entity_instance\", \"value\": 23166, \"Name\": \"Wall\"}]}\n# ifcopenshell.api: owner.create_owner_history\n>>> {}\n# ifcopenshell.api: geometry.edit_object_placement\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 23166, \"Name\": \"Wall\"}, \"matrix\": {\"cast_type\": \"ndarray\", \"value\": [[0.9848077297210693, 0.1736481487751007, 0.0, 3.7282464504241943], [-0.1736481487751007, 0.9848077297210693, 0.0, 5.324488162994385], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0]]}}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 23166, \"Name\": \"Wall\"}}\n# ifcopenshell.api: geometry.add_wall_representation\n>>> {\"context\": {\"cast_type\": \"entity_instance\", \"value\": 370, \"Name\": null}, \"thickness\": \"0.150000005960464\", \"direction_sense\": \"POSITIVE\", \"offset\": \"0.0\", \"length\": \"10.00000010728836\", \"height\": \"3.0\", \"x_angle\": \"0\"}\n# ifcopenshell.api: geometry.assign_representation\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 23166, \"Name\": \"Wall\"}, \"representation\": {\"cast_type\": \"entity_instance\", \"value\": 23190, \"Name\": null}}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 23166, \"Name\": \"Wall\"}}\n# ifcopenshell.api: pset.add_pset\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 23166, \"Name\": \"Wall\"}, \"name\": \"EPset_Parametric\"}\n# ifcopenshell.api: owner.create_owner_history\n>>> {}\n# ifcopenshell.api: pset.assign_pset\n>>> {}\n# ifcopenshell.api: owner.create_owner_history\n>>> {}\n# ifcopenshell.api: pset.edit_pset\n>>> {\"pset\": {\"cast_type\": \"entity_instance\", \"value\": 23193, \"Name\": \"EPset_Parametric\"}, \"properties\": \"{'Engine': 'Bonsai.DumbLayer2'}\"}\n# ifcopenshell.api: material.edit_layer_usage\n>>> {\"usage\": {\"cast_type\": \"entity_instance\", \"value\": 23169, \"Name\": null}, \"attributes\": \"{'OffsetFromReferenceLine': 0.0, 'DirectionSense': 'POSITIVE'}\"}\n# ifcopenshell.api: geometry.regenerate_wall_representation\n>>> {}\nlast_error: Traceback (most recent call last):\n File \"C:\\Users\\carlo\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\ifc.py\", line 462, in execute_ifc_operator\n result = getattr(operator, \"_modal\")(context, event)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\carlo\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\model\\wall.py\", line 533, in _modal\n self.create_walls_from_polyline(context)\n File \"C:\\Users\\carlo\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\model\\wall.py\", line 469, in create_walls_from_polyline\n DumbWallRecalculator().recalculate([wall[\"obj\"]])\n File \"C:\\Users\\carlo\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\model\\wall.py\", line 678, in recalculate\n joiner.recreate_wall(element, wall)\n File \"C:\\Users\\carlo\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\model\\wall.py\", line 1244, in recreate_wall\n rep = ifcopenshell.api.geometry.regenerate_wall_representation(tool.Ifc.get(), element)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\carlo\\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\\carlo\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\geometry\\regenerate_wall_representation.py\", line 86, in regenerate_wall_representation\n return Regenerator(file).regenerate(wall, length=length, height=height, angle=angle)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\carlo\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\geometry\\regenerate_wall_representation.py\", line 103, in regenerate\n layers = self.get_layers(wall)\n ^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\carlo\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\geometry\\regenerate_wall_representation.py\", line 551, in get_layers\n return [PrioritisedLayer(l.Priority or 0, l.LayerThickness) for l in material.MaterialLayers]\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\carlo\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\geometry\\regenerate_wall_representation.py\", line 551, in \u003clistcomp>\n return [PrioritisedLayer(l.Priority or 0, l.LayerThickness) for l in material.MaterialLayers]\n ^^^^^^^^^^\n File \"C:\\Users\\carlo\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\entity_instance.py\", line 238, in __getattr__\n raise AttributeError(\nAttributeError: entity instance of type 'IFC2X3.IfcMaterialLayer' has no attribute 'Priority'\n\nifc: Modello 3d su strutture vecchie.ifc\nschema: IFC2X3\npreprocessor_version: IfcOpenShell 0.8.2-alpha250318\noriginating_system: Bonsai 0.8.2-alpha250318-ad03a0c\n````\nThis is the error with IFC4\n\n```\nos: Windows\nos_version: 10.0.22631\npython_version: 3.11.9\narchitecture: ('64bit', 'WindowsPE')\nmachine: AMD64\nprocessor: Intel64 Family 6 Model 158 Stepping 10, GenuineIntel\nblender_version: 4.3.0\nbonsai_version: 0.8.2-alpha250319\nbonsai_commit_hash: 3c777a0\nbonsai_commit_date: 2025-03-19T16:52:50+05:00\nlast_actions: \n# ifcopenshell.api: spatial.assign_container\n>>> {\"products\": [{\"cast_type\": \"entity_instance\", \"value\": 22289, \"Name\": \"Wall\"}], \"relating_structure\": {\"cast_type\": \"entity_instance\", \"value\": 158, \"Name\": \"ES02 del 10.04.2021\"}}\n# ifcopenshell.api: aggregate.unassign_object\n>>> {\"products\": [{\"cast_type\": \"entity_instance\", \"value\": 22289, \"Name\": \"Wall\"}]}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 157, \"Name\": null}}\n# ifcopenshell.api: type.assign_type\n>>> {\"related_objects\": [{\"cast_type\": \"entity_instance\", \"value\": 22289, \"Name\": \"Wall\"}], \"relating_type\": {\"cast_type\": \"entity_instance\", \"value\": 10, \"Name\": \"WAL150 Muretti CA\"}}\n# ifcopenshell.api: owner.create_owner_history\n>>> {}\n# ifcopenshell.api: material.assign_material\n>>> {\"products\": [{\"cast_type\": \"entity_instance\", \"value\": 22289, \"Name\": \"Wall\"}], \"type\": \"IfcMaterialLayerSetUsage\"}\n# ifcopenshell.api: material.unassign_material\n>>> {\"products\": [{\"cast_type\": \"entity_instance\", \"value\": 22289, \"Name\": \"Wall\"}]}\n# ifcopenshell.api: owner.create_owner_history\n>>> {}\n# ifcopenshell.api: geometry.edit_object_placement\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 22289, \"Name\": \"Wall\"}, \"matrix\": {\"cast_type\": \"ndarray\", \"value\": [[0.9740825295448303, 0.22619293630123138, 0.0, -4.994846343994141], [-0.22619293630123138, 0.9740825295448303, 0.0, 9.805498123168945], [0.0, 0.0, 1.0, 0.0], [0.0, 0.0, 0.0, 1.0]]}}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 22289, \"Name\": \"Wall\"}}\n# ifcopenshell.api: geometry.add_wall_representation\n>>> {\"context\": {\"cast_type\": \"entity_instance\", \"value\": 32, \"Name\": null}, \"thickness\": \"0.150000005960464\", \"direction_sense\": \"POSITIVE\", \"offset\": \"0.0\", \"length\": \"21.551865296500065\", \"height\": \"3.0\", \"x_angle\": \"0\"}\n# ifcopenshell.api: geometry.assign_representation\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 22289, \"Name\": \"Wall\"}, \"representation\": {\"cast_type\": \"entity_instance\", \"value\": 22309, \"Name\": null}}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 22289, \"Name\": \"Wall\"}}\n# ifcopenshell.api: pset.add_pset\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 22289, \"Name\": \"Wall\"}, \"name\": \"EPset_Parametric\"}\n# ifcopenshell.api: owner.create_owner_history\n>>> {}\n# ifcopenshell.api: pset.assign_pset\n>>> {}\n# ifcopenshell.api: owner.create_owner_history\n>>> {}\n# ifcopenshell.api: pset.edit_pset\n>>> {\"pset\": {\"cast_type\": \"entity_instance\", \"value\": 22312, \"Name\": \"EPset_Parametric\"}, \"properties\": \"{'Engine': 'Bonsai.DumbLayer2'}\"}\n# ifcopenshell.api: material.edit_layer_usage\n>>> {\"usage\": {\"cast_type\": \"entity_instance\", \"value\": 22292, \"Name\": null}, \"attributes\": \"{'OffsetFromReferenceLine': 0.0, 'DirectionSense': 'POSITIVE'}\"}\n# ifcopenshell.api: geometry.regenerate_wall_representation\n>>> {}\nlast_error: Traceback (most recent call last):\n File \"C:\\Users\\carlo\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\ifc.py\", line 462, in execute_ifc_operator\n result = getattr(operator, \"_modal\")(context, event)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\carlo\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\model\\wall.py\", line 533, in _modal\n self.create_walls_from_polyline(context)\n File \"C:\\Users\\carlo\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\model\\wall.py\", line 469, in create_walls_from_polyline\n DumbWallRecalculator().recalculate([wall[\"obj\"]])\n File \"C:\\Users\\carlo\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\model\\wall.py\", line 678, in recalculate\n joiner.recreate_wall(element, wall)\n File \"C:\\Users\\carlo\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\model\\wall.py\", line 1244, in recreate_wall\n rep = ifcopenshell.api.geometry.regenerate_wall_representation(tool.Ifc.get(), element)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\carlo\\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\\carlo\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\geometry\\regenerate_wall_representation.py\", line 86, in regenerate_wall_representation\n return Regenerator(file).regenerate(wall, length=length, height=height, angle=angle)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\carlo\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\api\\geometry\\regenerate_wall_representation.py\", line 318, in regenerate\n axis_rep = builder.get_representation(self.axis, items=[item])\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\carlo\\AppData\\Roaming\\Blender Foundation\\Blender\\4.3\\extensions\\.local\\lib\\python3.11\\site-packages\\ifcopenshell\\util\\shape_builder.py\", line 1020, in get_representation\n RepresentationIdentifier=context.ContextIdentifier,\n ^^^^^^^^^^^^^^^^^^^^^^^^^\nAttributeError: 'NoneType' object has no attribute 'ContextIdentifier'\n\nifc: Modello 3d su strutture vecchie-IFC4.ifc\nschema: IFC4\npreprocessor_version: IfcOpenShell 0.8.2-alpha250318\noriginating_system: Bonsai 0.8.2-alpha250318-ad03a0c\n```\n","author":{"url":"https://github.com/carlopav","@type":"Person","name":"carlopav"},"datePublished":"2025-03-20T19:02:59Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/6404"}
| 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:cdc14670-1c42-9b6b-a964-156fe51527f5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D71E:9D17A:37BF04:4AFD5C:6B048975 |
| html-safe-nonce | 7bf9cfcf9dd288f98f556f0170615db927e03d62cb3d11180ab9191194b0ee44 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENzFFOjlEMTdBOjM3QkYwNDo0QUZENUM6NkIwNDg5NzUiLCJ2aXNpdG9yX2lkIjoiMzc4ODkyMjYyNzc3ODUwMjMwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 646b42ed783a7c209897af8b29e1ab12d71bf3996213afc630085e1b56d34930 |
| hovercard-subject-tag | issue:2936402092 |
| 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/6404/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b8cf594a20c965d84ff9185180530016c184e7b7dd4fa08fe8efb02c0b926585/IfcOpenShell/IfcOpenShell/issues/6404 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b8cf594a20c965d84ff9185180530016c184e7b7dd4fa08fe8efb02c0b926585/IfcOpenShell/IfcOpenShell/issues/6404 |
| og:image:alt | Bonsai errors when creating a wall. To reproduce this, open one of the attached files Click on wall tool; make the WAL150 Muretti CA the current wall type create a wall See error--> Attachments Mod... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | carlopav |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1d5c152376e38b7d2e37f3d5179be29a73bee93b85110da28a4eebe1159cdc70 |
| 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 | f5017e8ff4ea25a8011fcf0f2a0e430c60dc86c8 |
| 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