René's URL Explorer Experiment


Title: Bonsai: stop a window edit deleting or moving sibling openings by petruconduraru · Pull Request #9622 · IfcOpenShell/IfcOpenShell · GitHub

Open Graph Title: Bonsai: stop a window edit deleting or moving sibling openings by petruconduraru · Pull Request #9622 · IfcOpenShell/IfcOpenShell

X Title: Bonsai: stop a window edit deleting or moving sibling openings by petruconduraru · Pull Request #9622 · IfcOpenShell/IfcOpenShell

Description: Fixes #9591. Stacked on #9621 (reuses its has_shared_model_body() helper); the diff here is the last two commits. Root cause Two separate defects, both in src/bonsai/bonsai/tool/model.py: regenerate_filling_opening_body() called unassign_representation() on the old opening body before looking up what referenced it. For an opening that owns its body (not type-mapped), the unassign removed it from its IfcProductDefinitionShape, so the lookup found nothing and the regenerated body was attached nowhere. The opening ended with no representation. regenerate_simple_opening_bodies() and update_simple_openings() worked on get_parametric_propagation_targets(element), i.e. every occurrence of the type, and the trailing recalculate_fill re-placed every sibling's opening onto its filling. Editing one window therefore moved or resized the openings of siblings that own their geometry. Filed against 0.8.5, the issue also names a "first occurrence with FillsVoids" cause; on v0.9.0 the loop already iterates all fillings and dedups by source id, so that part no longer applies. Fix Drop the premature unassign; the old body is replaced where it is referenced. New Model.get_opening_update_targets(element): the element plus the occurrences sharing its Body representation, used in both places instead of every type occurrence. Tests src/bonsai/test/bim/module/model/test_update_simple_openings_siblings.py, 4 tests built on the reporter's model, with sibling A's opening deliberately offset by -0.07 m and widened to 1.4 m. Headless Blender 5.2: RED without the fix: 3 failed. GREEN: 4 passed. Ablation: only the unassign fix, the placement test fails (0.9 instead of 0.83); only the scoping, the edited window's opening has no representation; over-narrowing the scope to [element] fails the type-mapped sibling test. Sweeps: test/bim/module/model 537 passed, test/bim/module 713 passed. The tests ran on a v0.8.0 tree with this diff applied, since no v0.9.0 macOS wrapper was available locally; the touched functions are identical on both branches. ruff format and ruff check clean. Not covered: the door path shares this code but has no dedicated test; the 90 degree roof-window rotation and the door size change from the issue did not reproduce. This contribution was generated with the assistance of an AI coding tool (all code, tests and text). Generated with the assistance of an AI coding tool.

Open Graph Description: Fixes #9591. Stacked on #9621 (reuses its has_shared_model_body() helper); the diff here is the last two commits. Root cause Two separate defects, both in src/bonsai/bonsai/tool/model.py: regenera...

X Description: Fixes #9591. Stacked on #9621 (reuses its has_shared_model_body() helper); the diff here is the last two commits. Root cause Two separate defects, both in src/bonsai/bonsai/tool/model.py: regenera...

Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/pull/9622

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:b3441377-88c2-f44c-20c8-d471a4800758
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idAACE:FCC28:D51730:12257EB:6B05506D
html-safe-nonceeccd21527c415320105342c8568e9ccbd2d566e40047244e3cace2a605e5d04b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQUNFOkZDQzI4OkQ1MTczMDoxMjI1N0VCOjZCMDU1MDZEIiwidmlzaXRvcl9pZCI6IjM5NDE1NzM1ODMzMzk2MDYxMjUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac47191bc353221efa247a9bcdcbf2b56ee2e2d43811e7cd07b7fb248ca9a665de
hovercard-subject-tagpull_request:4672215731
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/IfcOpenShell/IfcOpenShell/pull/9622/files
twitter:imagehttps://avatars.githubusercontent.com/u/139251053?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/139251053?s=400&v=4
og:image:altFixes #9591. Stacked on #9621 (reuses its has_shared_model_body() helper); the diff here is the last two commits. Root cause Two separate defects, both in src/bonsai/bonsai/tool/model.py: regenera...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None854d880890b5e847b3fce9d1b31f032107baeddeebad2aa379c48aa4f1451f6b
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/IfcOpenShell/IfcOpenShell git https://github.com/IfcOpenShell/IfcOpenShell.git
octolytics-dimension-user_id13692563
octolytics-dimension-user_loginIfcOpenShell
octolytics-dimension-repository_id40473201
octolytics-dimension-repository_nwoIfcOpenShell/IfcOpenShell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id40473201
octolytics-dimension-repository_network_root_nwoIfcOpenShell/IfcOpenShell
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release220e980097d94ce616d5d11fbd5316d208e3fc93
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/IfcOpenShell/IfcOpenShell/pull/9622/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fpull%2F9622%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fpull%2F9622%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=IfcOpenShell%2FIfcOpenShell
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/pull/9622/files
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/pull/9622/files
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/pull/9622/files
IfcOpenShellhttps://github.com/IfcOpenShell
IfcOpenShellhttps://github.com/IfcOpenShell/IfcOpenShell
Codehttps://github.com/IfcOpenShell/IfcOpenShell
Issues1.2k (1.2k)https://github.com/IfcOpenShell/IfcOpenShell/issues
Pull requests943 (943)https://github.com/IfcOpenShell/IfcOpenShell/pulls
Discussionshttps://github.com/IfcOpenShell/IfcOpenShell/discussions
Actionshttps://github.com/IfcOpenShell/IfcOpenShell/actions
Projectshttps://github.com/IfcOpenShell/IfcOpenShell/projects
Wikihttps://github.com/IfcOpenShell/IfcOpenShell/wiki
Security and qualityhttps://github.com/IfcOpenShell/IfcOpenShell/security
Insightshttps://github.com/IfcOpenShell/IfcOpenShell/insights
Sign up for GitHub https://github.com/signup?return_to=%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2Fnew%2Fchoose
petruconduraruhttps://github.com/petruconduraru
IfcOpenShell:v0.9.0https://github.com/IfcOpenShell/IfcOpenShell/tree/v0.9.0
BIMvoice:v09/fix-9591-sibling-window-openingshttps://github.com/BIMvoice/IfcOpenShell/tree/v09/fix-9591-sibling-window-openings
Conversation 0 https://github.com/IfcOpenShell/IfcOpenShell/pull/9622
Commits 4 https://github.com/IfcOpenShell/IfcOpenShell/pull/9622/commits
Checks 6 https://github.com/IfcOpenShell/IfcOpenShell/pull/9622/checks
Files changed https://github.com/IfcOpenShell/IfcOpenShell/pull/9622/files
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/9622/files
Bonsai: stop a window edit deleting or moving sibling openings https://github.com/IfcOpenShell/IfcOpenShell/pull/9622/files#top
Show all changes 4 commits https://github.com/IfcOpenShell/IfcOpenShell/pull/9622/files
6ab3f0c Bonsai: don't push OverallWidth/Height onto occurrences owning their … petruconduraru Aug 31, 2026 https://github.com/IfcOpenShell/IfcOpenShell/pull/9622/commits/6ab3f0cce7e9eb4286c991fe28300aa1bd8e79bc
d8f4882 Use a walrus for the shared-body guard petruconduraru Sep 29, 2026 https://github.com/IfcOpenShell/IfcOpenShell/pull/9622/commits/d8f4882133a3bf29490fdeb8a416b7d3890a94b9
4ee9083 Fix openings lost when editing a sibling window petruconduraru Sep 29, 2026 https://github.com/IfcOpenShell/IfcOpenShell/pull/9622/commits/4ee908308df5849cf3c58769b228cf933b20b1ef
14a5ef8 Move get_opening_update_targets above its callers petruconduraru Sep 29, 2026 https://github.com/IfcOpenShell/IfcOpenShell/pull/9622/commits/14a5ef85207add02340eac5d2baaead4a634130b
Clear filters https://github.com/IfcOpenShell/IfcOpenShell/pull/9622/files
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/9622/files
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/9622/files
door.py https://github.com/IfcOpenShell/IfcOpenShell/pull/9622/files#diff-991a32853482603dabebba8d5b98faff8208679363dd9b2196cb84edb0a793f0
window.py https://github.com/IfcOpenShell/IfcOpenShell/pull/9622/files#diff-659a3ad36f0c9a62d73d57344d7f6be2cf2a1a9160fabf9c4738130e5a9041bb
model.py https://github.com/IfcOpenShell/IfcOpenShell/pull/9622/files#diff-c267219aea0a408a2ba9c1988f77eca7d20bbf85cd61fa67e2da10ae837c95a1
test_update_simple_openings_siblings.py https://github.com/IfcOpenShell/IfcOpenShell/pull/9622/files#diff-ab768ad5b67006cfe04d34423431310f7b3895136320534c8437079194bbc023
test_window_door_occurrence_attrs.py https://github.com/IfcOpenShell/IfcOpenShell/pull/9622/files#diff-3e3dce9af237dc2ee5adfdbfc28b4ca0ce1e994c7f49e6b5eb8ed1d301a9ce57
src/bonsai/bonsai/bim/module/model/door.pyhttps://github.com/IfcOpenShell/IfcOpenShell/pull/9622/files#diff-991a32853482603dabebba8d5b98faff8208679363dd9b2196cb84edb0a793f0
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/14a5ef85207add02340eac5d2baaead4a634130b/src/bonsai/bonsai/bim/module/model/door.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/9622/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/9622/files#diff-991a32853482603dabebba8d5b98faff8208679363dd9b2196cb84edb0a793f0
https://github.com/IfcOpenShell/IfcOpenShell/pull/9622/files#diff-991a32853482603dabebba8d5b98faff8208679363dd9b2196cb84edb0a793f0
https://github.com/IfcOpenShell/IfcOpenShell/pull/9622/files#diff-991a32853482603dabebba8d5b98faff8208679363dd9b2196cb84edb0a793f0
https://github.com/IfcOpenShell/IfcOpenShell/pull/9622/files#diff-991a32853482603dabebba8d5b98faff8208679363dd9b2196cb84edb0a793f0
src/bonsai/bonsai/bim/module/model/window.pyhttps://github.com/IfcOpenShell/IfcOpenShell/pull/9622/files#diff-659a3ad36f0c9a62d73d57344d7f6be2cf2a1a9160fabf9c4738130e5a9041bb
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/14a5ef85207add02340eac5d2baaead4a634130b/src/bonsai/bonsai/bim/module/model/window.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/9622/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/9622/files#diff-659a3ad36f0c9a62d73d57344d7f6be2cf2a1a9160fabf9c4738130e5a9041bb
https://github.com/IfcOpenShell/IfcOpenShell/pull/9622/files#diff-659a3ad36f0c9a62d73d57344d7f6be2cf2a1a9160fabf9c4738130e5a9041bb
https://github.com/IfcOpenShell/IfcOpenShell/pull/9622/files#diff-659a3ad36f0c9a62d73d57344d7f6be2cf2a1a9160fabf9c4738130e5a9041bb
https://github.com/IfcOpenShell/IfcOpenShell/pull/9622/files#diff-659a3ad36f0c9a62d73d57344d7f6be2cf2a1a9160fabf9c4738130e5a9041bb
src/bonsai/bonsai/tool/model.pyhttps://github.com/IfcOpenShell/IfcOpenShell/pull/9622/files#diff-c267219aea0a408a2ba9c1988f77eca7d20bbf85cd61fa67e2da10ae837c95a1
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/14a5ef85207add02340eac5d2baaead4a634130b/src/bonsai/bonsai/tool/model.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/9622/{{ revealButtonHref }}
https://github.com/IfcOpenShell/IfcOpenShell/pull/9622/files#diff-c267219aea0a408a2ba9c1988f77eca7d20bbf85cd61fa67e2da10ae837c95a1
https://github.com/IfcOpenShell/IfcOpenShell/pull/9622/files#diff-c267219aea0a408a2ba9c1988f77eca7d20bbf85cd61fa67e2da10ae837c95a1
https://github.com/IfcOpenShell/IfcOpenShell/pull/9622/files#diff-c267219aea0a408a2ba9c1988f77eca7d20bbf85cd61fa67e2da10ae837c95a1
https://github.com/IfcOpenShell/IfcOpenShell/pull/9622/files#diff-c267219aea0a408a2ba9c1988f77eca7d20bbf85cd61fa67e2da10ae837c95a1
https://github.com/IfcOpenShell/IfcOpenShell/pull/9622/files#diff-c267219aea0a408a2ba9c1988f77eca7d20bbf85cd61fa67e2da10ae837c95a1
https://github.com/IfcOpenShell/IfcOpenShell/pull/9622/files#diff-c267219aea0a408a2ba9c1988f77eca7d20bbf85cd61fa67e2da10ae837c95a1
src/bonsai/test/bim/module/model/test_update_simple_openings_siblings.pyhttps://github.com/IfcOpenShell/IfcOpenShell/pull/9622/files#diff-ab768ad5b67006cfe04d34423431310f7b3895136320534c8437079194bbc023
View file https://github.com/IfcOpenShell/IfcOpenShell/blob/14a5ef85207add02340eac5d2baaead4a634130b/src/bonsai/test/bim/module/model/test_update_simple_openings_siblings.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/IfcOpenShell/IfcOpenShell/pull/9622/{{ revealButtonHref }}
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/9622/files
Please reload this pagehttps://github.com/IfcOpenShell/IfcOpenShell/pull/9622/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.