Title: Bonsai: Error when creating manual classification entry · Issue #7506 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Bonsai: Error when creating manual classification entry · Issue #7506 · IfcOpenShell/IfcOpenShell
X Title: Bonsai: Error when creating manual classification entry · Issue #7506 · IfcOpenShell/IfcOpenShell
Description: Bug Description Steps to reproduce: open new file create a wall select the wall and go to Classification References choose Manual Entry from the drop down click Add Reference button type some text into Identification and Name fields clic...
Open Graph Description: Bug Description Steps to reproduce: open new file create a wall select the wall and go to Classification References choose Manual Entry from the drop down click Add Reference button type some text ...
X Description: Bug Description Steps to reproduce: open new file create a wall select the wall and go to Classification References choose Manual Entry from the drop down click Add Reference button type some text ...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/7506
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bonsai: Error when creating manual classification entry","articleBody":"### Bug Description\n\nSteps to reproduce:\n\n- open new file\n- create a wall\n- select the wall and go to `Classification References`\n- choose `Manual Entry` from the drop down\n- click `Add Reference` button\n- type some text into `Identification` and `Name` fields\n- click `Save`\n- error shows up and the classification reference is not saved\n\n\n\n\n### Attachments\n\n_No response_\n\n### Debug and Error Output\n\n```true\nos: Windows\nos_version: 10.0.19045\npython_version: 3.11.11\narchitecture: ('64bit', 'WindowsPE')\nmachine: AMD64\nprocessor: Intel64 Family 6 Model 60 Stepping 3, GenuineIntel\nblender_version: 4.5.4 LTS\nbonsai_version: 0.8.4\nbonsai_commit_hash: None\nbonsai_commit_date: None\nlast_actions: \n# ifcopenshell.api: owner.create_owner_history\n>>> {}\n# ifcopenshell.api: material.assign_material\n>>> {\"products\": [{\"cast_type\": \"entity_instance\", \"value\": 74, \"Name\": \"Wall\"}], \"type\": \"IfcMaterialLayerSetUsage\"}\n# ifcopenshell.api: material.unassign_material\n>>> {\"products\": [{\"cast_type\": \"entity_instance\", \"value\": 74, \"Name\": \"Wall\"}]}\n# ifcopenshell.api: owner.create_owner_history\n>>> {}\n# ifcopenshell.api: geometry.add_axis_representation\n>>> {\"context\": {\"cast_type\": \"entity_instance\", \"value\": 27, \"Name\": null}, \"axis\": \"[(0.0, 0.0), (12.500000000000036, 0.0)]\"}\n# ifcopenshell.api: geometry.assign_representation\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 74, \"Name\": \"Wall\"}, \"representation\": {\"cast_type\": \"entity_instance\", \"value\": 81, \"Name\": null}}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 74, \"Name\": \"Wall\"}}\n# ifcopenshell.api: geometry.edit_object_placement\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 74, \"Name\": \"Wall\"}, \"matrix\": {\"cast_type\": \"ndarray\", \"value\": [[7.549790126404332e-08, -1.0, 0.0, -4.596266746520996], [1.0, 7.549790126404332e-08, 0.0, -3.8567256927490234], [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\": 74, \"Name\": \"Wall\"}}\n# ifcopenshell.api: geometry.add_wall_representation\n>>> {\"context\": {\"cast_type\": \"entity_instance\", \"value\": 15, \"Name\": null}, \"thickness\": \"0.1\", \"direction_sense\": \"POSITIVE\", \"offset\": \"0.0\", \"length\": \"12.500000000000036\", \"height\": \"3.0\", \"x_angle\": \"0\"}\n# ifcopenshell.api: geometry.assign_representation\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 74, \"Name\": \"Wall\"}, \"representation\": {\"cast_type\": \"entity_instance\", \"value\": 97, \"Name\": null}}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 74, \"Name\": \"Wall\"}}\n# ifcopenshell.api: pset.add_pset\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 74, \"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\": 98, \"Name\": \"EPset_Parametric\"}, \"properties\": \"{'Engine': 'Bonsai.DumbLayer2'}\"}\n# ifcopenshell.api: material.edit_layer_usage\n>>> {\"usage\": {\"cast_type\": \"entity_instance\", \"value\": 77, \"Name\": null}, \"attributes\": \"{'OffsetFromReferenceLine': 0.0, 'DirectionSense': 'POSITIVE'}\"}\n# ifcopenshell.api: geometry.regenerate_wall_representation\n>>> {}\n# operator: BIM_OT_add_manual_classification_reference\nlast_error: Traceback (most recent call last):\n File \"C:\\Users\\semhu\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\ifc.py\", line 526, in execute_ifc_operator\n result = getattr(operator, \"_execute\")(context)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"C:\\Users\\semhu\\AppData\\Roaming\\Blender Foundation\\Blender\\4.5\\extensions\\.local\\lib\\python3.11\\site-packages\\bonsai\\bim\\module\\classification\\operator.py\", line 94, in _execute\n classification = tool.Ifc.get().by_id(int(props.classifications))\n ^^^^^^^^^^^^^^^^^^^^^^^^^^\nValueError: invalid literal for int() with base 10: ''\n\nifc: Unsaved\nschema: IFC4\npreprocessor_version: IfcOpenShell 0.8.4\noriginating_system: IfcOpenShell 0.8.4\n```","author":{"url":"https://github.com/semhustej","@type":"Person","name":"semhustej"},"datePublished":"2025-12-19T17:41:47Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/7506"}
| 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:3dec8c8e-e9ec-07cc-ee92-e2810f53d53b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A968:36DD20:8FA23B:BC8B4B:6B04CF3F |
| html-safe-nonce | 5a1285f817c219916fe38e21d3573ebd503832376d3a8b4016a208a615c6e597 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBOTY4OjM2REQyMDo4RkEyM0I6QkM4QjRCOjZCMDRDRjNGIiwidmlzaXRvcl9pZCI6IjM2MDkzMjE5OTE0MjcxMTY4NjMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 35ee2cae3d534e38a6207b49e64f55bf356ad20f0adf05cdc97b406c00fba147 |
| hovercard-subject-tag | issue:3748287059 |
| 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/7506/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a11543ad6734eb3e32e07c40d1b58ead61f532748d13c70005c1d8d5db0ddcc2/IfcOpenShell/IfcOpenShell/issues/7506 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a11543ad6734eb3e32e07c40d1b58ead61f532748d13c70005c1d8d5db0ddcc2/IfcOpenShell/IfcOpenShell/issues/7506 |
| og:image:alt | Bug Description Steps to reproduce: open new file create a wall select the wall and go to Classification References choose Manual Entry from the drop down click Add Reference button type some text ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | semhustej |
| hostname | github.com |
| expected-hostname | github.com |
| None | 27ed421e5c2dac040a37529b5b9191edcc4a3de70521471e81fb4b4d9dc2aa7d |
| 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 | 63dc19014c621c67306d7899c04c78dcd0d95803 |
| 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