Title: Walls created in other software get their shape reset if you edit them · Issue #8011 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Walls created in other software get their shape reset if you edit them · Issue #8011 · IfcOpenShell/IfcOpenShell
X Title: Walls created in other software get their shape reset if you edit them · Issue #8011 · IfcOpenShell/IfcOpenShell
Description: Bug Description Bug: recreate_wall resets wall length to 1m for imported walls when updating height In tool/model.py, recreate_wall calls regenerate_wall_representation without passing the current wall length: rep = ifcopenshell.api.geom...
Open Graph Description: Bug Description Bug: recreate_wall resets wall length to 1m for imported walls when updating height In tool/model.py, recreate_wall calls regenerate_wall_representation without passing the current ...
X Description: Bug Description Bug: recreate_wall resets wall length to 1m for imported walls when updating height In tool/model.py, recreate_wall calls regenerate_wall_representation without passing the current ...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/8011
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Walls created in other software get their shape reset if you edit them","articleBody":"### Bug Description\n\n## Bug: `recreate_wall` resets wall length to 1m for imported walls when updating height\n\nIn `tool/model.py`, `recreate_wall` calls `regenerate_wall_representation` without passing the current wall length:\n\n```python\nrep = ifcopenshell.api.geometry.regenerate_wall_representation(tool.Ifc.get(), element)\n```\n\n`regenerate_wall_representation` tries to read the wall length from its Plan/Axis/GRAPH_VIEW representation, then from the body profile, then falls back to `length=1.0` (1 metre). For walls imported from other software (Revit, ArchiCAD, etc.) whose axis representation is in an unrecognised format, it always hits the fallback and resets the wall to 1000mm.\n\n**Reproduction:** Import a wall from another BIM application, select it, change its height via the Parameter Adjustments panel. The wall length resets to 1000mm.\n\n**Fix:** Pass the wall's current bounding box X extent as the fallback length. `bound_box` is already in Blender metres (= SI), which is what `regenerate_wall_representation` expects:\n\n```python\nx_values = [v[0] for v in obj.bound_box]\ncurrent_length = max(max(x_values) - min(x_values), 0.001)\nrep = ifcopenshell.api.geometry.regenerate_wall_representation(tool.Ifc.get(), element, length=current_length)\n```\n\nThis fallback is only used if the axis representation cannot be read — native Bonsai walls are unaffected.\n\n### Attachments\n\n_No response_\n\n### Debug and Error Output\n\n```true\n\n```","author":{"url":"https://github.com/tagehedin","@type":"Person","name":"tagehedin"},"datePublished":"2026-04-26T12:59:29Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/8011"}
| 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:ef41acf3-1890-4994-460a-c731bd907052 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B182:239D34:805B48:AB7DF5:6B04A751 |
| html-safe-nonce | fd9620794fd35783248c28138ca4486142d61a164947466906084adcaea790f7 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTgyOjIzOUQzNDo4MDVCNDg6QUI3REY1OjZCMDRBNzUxIiwidmlzaXRvcl9pZCI6IjE2MjEzNjY2Nzg3NzQ2NTQ4MDEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 6bcdbba4ecc1b38fc62f747a3c3bdcb08cbb5961595ec38ec73b6453a2dcfa51 |
| hovercard-subject-tag | issue:4330913021 |
| 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/8011/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ca4d49e661ce096aa9b3ca0f45792f0c321d035bfcc8cd0f2a85f1de9e5087f3/IfcOpenShell/IfcOpenShell/issues/8011 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ca4d49e661ce096aa9b3ca0f45792f0c321d035bfcc8cd0f2a85f1de9e5087f3/IfcOpenShell/IfcOpenShell/issues/8011 |
| og:image:alt | Bug Description Bug: recreate_wall resets wall length to 1m for imported walls when updating height In tool/model.py, recreate_wall calls regenerate_wall_representation without passing the current ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | tagehedin |
| 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