René's URL Explorer Experiment


Title: Error when loading MEP model · Issue #8194 · IfcOpenShell/IfcOpenShell · GitHub

Open Graph Title: Error when loading MEP model · Issue #8194 · IfcOpenShell/IfcOpenShell

X Title: Error when loading MEP model · Issue #8194 · IfcOpenShell/IfcOpenShell

Description: Bug Description IFC import fails on IfcSweptDiskSolid with AssertionError in create_native_swept_disk_solid When opening a specific IFC model in Bonsai, the import fails with an AssertionError. Other IFC models open correctly, so this se...

Open Graph Description: Bug Description IFC import fails on IfcSweptDiskSolid with AssertionError in create_native_swept_disk_solid When opening a specific IFC model in Bonsai, the import fails with an AssertionError. Oth...

X Description: Bug Description IFC import fails on IfcSweptDiskSolid with AssertionError in create_native_swept_disk_solid When opening a specific IFC model in Bonsai, the import fails with an AssertionError. Oth...

Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/8194

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.113.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error when loading MEP model","articleBody":"### Bug Description\n\nIFC import fails on IfcSweptDiskSolid with AssertionError in create_native_swept_disk_solid\n\nWhen opening a specific IFC model in Bonsai, the import fails with an `AssertionError`.\n\nOther IFC models open correctly, so this seems to be triggered by something specific in this file.\n\nUnfortunately, the model is confidential, so I cannot share the full IFC publicly. I can try to help isolate the problematic element or provide more details if useful.\n\nPossible cause\n\nThe model seems to contain an IfcSweptDiskSolid where the style/material assignment is not converted into a bpy.types.Material, but create_native_swept_disk_solid assumes that item_style is always a Blender material.\n\nNotes\n\nBecause the IFC is confidential, I cannot attach the full model here.\n\n### Attachments\n\n_No response_\n\n### Debug and Error Output\n\n```true\nos: Darwin\nos_version: Darwin Kernel Version 25.5.0: Mon Apr 27 20:41:15 PDT 2026; root:xnu-12377.121.6~2/RELEASE_ARM64_T6041\npython_version: 3.13.9\narchitecture: ('64bit', 'Mach-O')\nmachine: arm64\nprocessor: arm\nblender_version: 5.1.2\nbonsai_version: 0.8.6-alpha260618\nbonsai_commit_hash: 937270f\nbonsai_commit_date: 2026-06-17T22:20:52-03:00\nbonsai_git_branch: v0.8.0\nlast_actions: \n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 33, \"Name\": \"My Building\"}}\n# ifcopenshell.api: root.create_entity\n>>> {\"ifc_class\": \"IfcBuildingStorey\", \"predefined_type\": \"None\", \"name\": \"My Storey\"}\n# ifcopenshell.api: owner.create_owner_history\n>>> {}\n# ifcopenshell.api: geometry.edit_object_placement\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 39, \"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]]}}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 39, \"Name\": \"My Storey\"}}\n# ifcopenshell.api: aggregate.assign_object\n>>> {\"products\": [{\"cast_type\": \"entity_instance\", \"value\": 27, \"Name\": \"My Site\"}], \"relating_object\": {\"cast_type\": \"entity_instance\", \"value\": 1, \"Name\": \"My Project\"}}\n# ifcopenshell.api: spatial.unassign_container\n>>> {\"products\": \"[]\"}\n# ifcopenshell.api: owner.create_owner_history\n>>> {}\n# ifcopenshell.api: geometry.edit_object_placement\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 27, \"Name\": \"My Site\"}, \"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\"}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 27, \"Name\": \"My Site\"}}\n# ifcopenshell.api: aggregate.assign_object\n>>> {\"products\": [{\"cast_type\": \"entity_instance\", \"value\": 33, \"Name\": \"My Building\"}], \"relating_object\": {\"cast_type\": \"entity_instance\", \"value\": 27, \"Name\": \"My Site\"}}\n# ifcopenshell.api: spatial.unassign_container\n>>> {\"products\": \"[]\"}\n# ifcopenshell.api: owner.create_owner_history\n>>> {}\n# ifcopenshell.api: geometry.edit_object_placement\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 33, \"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\"}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 33, \"Name\": \"My Building\"}}\n# ifcopenshell.api: aggregate.assign_object\n>>> {\"products\": [{\"cast_type\": \"entity_instance\", \"value\": 39, \"Name\": \"My Storey\"}], \"relating_object\": {\"cast_type\": \"entity_instance\", \"value\": 33, \"Name\": \"My Building\"}}\n# ifcopenshell.api: spatial.unassign_container\n>>> {\"products\": \"[]\"}\n# ifcopenshell.api: owner.create_owner_history\n>>> {}\n# ifcopenshell.api: geometry.edit_object_placement\n>>> {\"product\": {\"cast_type\": \"entity_instance\", \"value\": 39, \"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\"}\n# ifcopenshell.api: owner.update_owner_history\n>>> {\"element\": {\"cast_type\": \"entity_instance\", \"value\": 39, \"Name\": \"My Storey\"}}\nlast_error: Traceback (most recent call last):\n  File \"/Users/petruc/Library/Application Support/Blender/5.1/extensions/.local/lib/python3.13/site-packages/bonsai/bim/module/project/operator.py\", line 1132, in finish_loading_project\n    bpy.ops.bim.load_project_elements()\n    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^\nRuntimeError: Error: Python: Traceback (most recent call last):\n  File \"/Users/petruc/Library/Application Support/Blender/5.1/extensions/.local/lib/python3.13/site-packages/bonsai/bim/module/project/operator.py\", line 1220, in execute\n    ifc_importer.execute()\n    ~~~~~~~~~~~~~~~~~~~~^^\n  File \"/Users/petruc/Library/Application Support/Blender/5.1/extensions/.local/lib/python3.13/site-packages/bonsai/bim/import_ifc.py\", line 276, in execute\n    self.create_native_elements()\n    ~~~~~~~~~~~~~~~~~~~~~~~~~~~^^\n  File \"/Users/petruc/Library/Application Support/Blender/5.1/extensions/.local/lib/python3.13/site-packages/bonsai/bim/import_ifc.py\", line 625, in create_native_elements\n    mesh, curve_thickness = tool.Loader.create_native_swept_disk_solid(element, mesh_name, native_data)\n                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File \"/Users/petruc/Library/Application Support/Blender/5.1/extensions/.local/lib/python3.13/site-packages/bonsai/tool/loader.py\", line 1262, in create_native_swept_disk_solid\n    assert isinstance(item_style, bpy.types.Material)\n           ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nAssertionError\nLocation: /Users/petruc/Library/Application Support/Blender/5.1/extensions/.local/lib/python3.13/site-packages/bonsai/bim/module/project/operator.py:1132\n\n\nblend_file_path: Not saved\nblend_file_dirty: N/A\nifc_file_path: /Users/petruc/Downloads/Byfjordporten_Bygg A_RIVv/Byfjordporten_Bygg A_RIVv.ifc\nifc_is_dirty: False\nifc: Byfjordporten_Bygg A_RIVv.ifc\nschema: IFC4\npreprocessor_version: DDS_IFC v3.0\noriginating_system: DDScad Version 21 x64 build 27/4-2026\n```","author":{"url":"https://github.com/petruconduraru","@type":"Person","name":"petruconduraru"},"datePublished":"2026-06-23T04:31:02Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/8194"}

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/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:2bd6c46a-213f-a33d-3bd0-1dd360270069
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idED94:55E5C:618630:83306C:6B04A73D
html-safe-nonce186058f227e294970aef13e82111270b04864e3fcce406e693241398ec431b5e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFRDk0OjU1RTVDOjYxODYzMDo4MzMwNkM6NkIwNEE3M0QiLCJ2aXNpdG9yX2lkIjoiOTAzOTk5MTA2MTI1ODQ3OTQyMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac21726f1e0e948d7585a0f7dcfedba664df2565fe80842ac4d0d9f0d7db2b1f59
hovercard-subject-tagissue:4722629280
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/IfcOpenShell/IfcOpenShell/8194/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b0bc418175eba431c041a113935506d4716f3d8574adf3f5c008e5d39b6b39c6/IfcOpenShell/IfcOpenShell/issues/8194
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b0bc418175eba431c041a113935506d4716f3d8574adf3f5c008e5d39b6b39c6/IfcOpenShell/IfcOpenShell/issues/8194
og:image:altBug Description IFC import fails on IfcSweptDiskSolid with AssertionError in create_native_swept_disk_solid When opening a specific IFC model in Bonsai, the import fails with an AssertionError. Oth...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamepetruconduraru
hostnamegithub.com
expected-hostnamegithub.com
None188497a0f45a7aa8f7c866faa1950d1a7f8d82b59416adf549b222ad1d1dd19b
turbo-cache-controlno-preview
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release557cfbac6cdb532730c95c90f2cefdc0c4128029
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/IfcOpenShell/IfcOpenShell/issues/8194#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2F8194
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%2Fissues%2F8194
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=IfcOpenShell%2FIfcOpenShell
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/8194
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/8194
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/8194
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 requests937 (937)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
https://github.com/IfcOpenShell/IfcOpenShell
New issuehttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/8194
New issuehttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/8194
Bughttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=type:"Bug"
Error when loading MEP modelhttps://github.com/IfcOpenShell/IfcOpenShell/issues/8194#top
PR Proposedhttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22PR%20Proposed%22
https://github.com/petruconduraru
petruconduraruhttps://github.com/petruconduraru
on Jun 23, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/8194#issue-4722629280
petruconduraruhttps://github.com/petruconduraru
Bughttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=type:"Bug"
on Jun 23, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/8194#event-27074855657
https://github.com/aothms
aothmshttps://github.com/aothms
on Jun 23, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/8194#issuecomment-4777049654
https://github.com/petruconduraru
petruconduraruhttps://github.com/petruconduraru
on Jun 24, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/8194#issuecomment-4790632519
https://github.com/petruconduraru
petruconduraruhttps://github.com/petruconduraru
on Jul 5, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/8194#issuecomment-4885333581
https://github.com/petruconduraru
petruconduraruhttps://github.com/petruconduraru
on Jul 5, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/8194#issuecomment-4887136581
#8286https://github.com/IfcOpenShell/IfcOpenShell/pull/8286
#8286https://github.com/IfcOpenShell/IfcOpenShell/pull/8286
https://github.com/petruconduraru
petruconduraruhttps://github.com/petruconduraru
on Jul 5, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/8194#issuecomment-4887474679
#8286https://github.com/IfcOpenShell/IfcOpenShell/pull/8286
#8286https://github.com/IfcOpenShell/IfcOpenShell/pull/8286
petruconduraruhttps://github.com/petruconduraru
completedhttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jul 5, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/8194#event-27580160808
petruconduraruhttps://github.com/petruconduraru
on Jul 6, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/8194#event-27605000062
Bonsai: don't assert on non-surface item styles in swept disk loader I…https://github.com/BIMvoice/IfcOpenShell/commit/99e9412a2cf90f22ccbee517495993f482927983
I…https://github.com/IfcOpenShell/IfcOpenShell/issues/8194
99e9412https://github.com/BIMvoice/IfcOpenShell/commit/99e9412a2cf90f22ccbee517495993f482927983
petruconduraruhttps://github.com/petruconduraru
PR Proposedhttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22PR%20Proposed%22
on Jul 7, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/8194#event-27663040744
petruconduraruhttps://github.com/petruconduraru
on Jul 25, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/8194#event-28467667307
https://github.com/petruconduraru
petruconduraruhttps://github.com/petruconduraru
on Jul 25, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/8194#issuecomment-5077009621
#8286https://github.com/IfcOpenShell/IfcOpenShell/pull/8286
Sign up for freehttps://github.com/signup?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/8194
Sign in to commenthttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/8194
PR Proposedhttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22PR%20Proposed%22
Bughttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=type:"Bug"
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-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.