René's URL Explorer Experiment


Title: Error when calculating quantities with all items selected · Issue #4765 · IfcOpenShell/IfcOpenShell · GitHub

Open Graph Title: Error when calculating quantities with all items selected · Issue #4765 · IfcOpenShell/IfcOpenShell

X Title: Error when calculating quantities with all items selected · Issue #4765 · IfcOpenShell/IfcOpenShell

Description: With a blank project created, when calculating quantities for elements by pressing Shift+Q, after selecting all elements in workspace with A keyboard short cut, following error is shown. os: Linux os_version: #35~22.04.1-Ubuntu SMP PREEM...

Open Graph Description: With a blank project created, when calculating quantities for elements by pressing Shift+Q, after selecting all elements in workspace with A keyboard short cut, following error is shown. os: Linux ...

X Description: With a blank project created, when calculating quantities for elements by pressing Shift+Q, after selecting all elements in workspace with A keyboard short cut, following error is shown. os: Linux ...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Error when calculating quantities with all items selected","articleBody":"With a blank project created, when calculating quantities for elements by pressing `Shift+Q`, after selecting all elements in workspace with `A` keyboard short cut, following error is shown.\r\n\r\n```\r\nos: Linux\r\nos_version: #35~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May  7 09:00:52 UTC 2\r\npython_version: 3.11.7\r\narchitecture: ('64bit', 'ELF')\r\nmachine: x86_64\r\nprocessor: x86_64\r\nblender_version: 4.1.1\r\nblenderbim_version: 0.0.240528\r\nlast_actions: \r\n# operator: BIM_OT_hotkey\r\n# operator: BIM_OT_calculate_all_quantities\r\n# operator: BIM_OT_hotkey\r\n# operator: BIM_OT_calculate_all_quantities\r\n# ifcopenshell.api: pset.edit_qto\r\n>>> {\"qto\": {\"cast_type\": \"entity_instance\", \"value\": 66, \"Name\": \"Qto_BuildingStoreyBaseQuantities\"}, \"properties\": \"{}\"}\r\n# ifcopenshell.api: pset.edit_qto\r\n>>> {\"qto\": {\"cast_type\": \"entity_instance\", \"value\": 68, \"Name\": \"Qto_BuildingBaseQuantities\"}, \"properties\": \"{}\"}\r\n# operator: BIM_OT_hotkey\r\n# operator: BIM_OT_calculate_all_quantities\r\n# ifcopenshell.api: pset.edit_qto\r\n>>> {\"qto\": {\"cast_type\": \"entity_instance\", \"value\": 66, \"Name\": \"Qto_BuildingStoreyBaseQuantities\"}, \"properties\": \"{}\"}\r\n# ifcopenshell.api: pset.edit_qto\r\n>>> {\"qto\": {\"cast_type\": \"entity_instance\", \"value\": 68, \"Name\": \"Qto_BuildingBaseQuantities\"}, \"properties\": \"{}\"}\r\nlast_error: Traceback (most recent call last):\r\n  File \"/home/eee/.config/blender/4.1/scripts/addons/blenderbim/bim/ifc.py\", line 360, in execute_ifc_operator\r\n    result = getattr(operator, \"_execute\")(context)\r\n             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/home/eee/.config/blender/4.1/scripts/addons/blenderbim/bim/module/model/workspace.py\", line 591, in _execute\r\n    getattr(self, f\"hotkey_{self.hotkey}\")()\r\n  File \"/home/eee/.config/blender/4.1/scripts/addons/blenderbim/bim/module/model/workspace.py\", line 617, in hotkey_S_Q\r\n    bpy.ops.bim.calculate_all_quantities()\r\n  File \"/snap/blender/4786/4.1/scripts/modules/bpy/ops.py\", line 109, in __call__\r\n    ret = _op_call(self.idname_py(), kw)\r\n          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\nRuntimeError: Error: Python: Traceback (most recent call last):\r\n  File \"/home/eee/.config/blender/4.1/scripts/addons/blenderbim/bim/ifc.py\", line 360, in execute_ifc_operator\r\n    result = getattr(operator, \"_execute\")(context)\r\n             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/home/eee/.config/blender/4.1/scripts/addons/blenderbim/bim/module/qto/operator.py\", line 200, in _execute\r\n    core.calculate_all_quantities(\r\n  File \"/home/eee/.config/blender/4.1/scripts/addons/blenderbim/core/qto.py\", line 48, in calculate_all_quantities\r\n    calculate_object_base_quantities(ifc, cost, qto, calculator, obj)\r\n  File \"/home/eee/.config/blender/4.1/scripts/addons/blenderbim/core/qto.py\", line 66, in calculate_object_base_quantities\r\n    calculated_quantities = qto.get_calculated_object_quantities(calculator, base_quantity_name, obj)\r\n                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/home/eee/.config/blender/4.1/scripts/addons/blenderbim/tool/qto.py\", line 112, in get_calculated_object_quantities\r\n    return {\r\n           ^\r\n  File \"/home/eee/.config/blender/4.1/scripts/addons/blenderbim/tool/qto.py\", line 116, in \u003cdictcomp>\r\n    and (value := calculator.calculate_quantity(qto_name, quantity_name, obj)) is not None\r\n                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/home/eee/.config/blender/4.1/scripts/addons/blenderbim/bim/module/pset/qto_calculator.py\", line 65, in calculate_quantity\r\n    value: float = eval(string)\r\n                   ^^^^^^^^^^^^\r\n  File \"\u003cstring>\", line 1, in \u003cmodule>\r\n  File \"/home/eee/.config/blender/4.1/scripts/addons/blenderbim/bim/module/pset/qto_calculator.py\", line 317, in get_gross_perimeter\r\n    mesh = self.get_gross_element_mesh(element)\r\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/home/eee/.config/blender/4.1/scripts/addons/blenderbim/bim/module/pset/qto_calculator.py\", line 1221, in get_gross_element_mesh\r\n    return self.create_mesh_from_shape(element, settings)\r\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/home/eee/.config/blender/4.1/scripts/addons/blenderbim/bim/module/pset/qto_calculator.py\", line 1228, in create_mesh_from_shape\r\n    shape = ifcopenshell.geom.create_shape(settings, element)\r\n            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/home/eee/.config/blender/4.1/scripts/addons/blenderbim/libs/site/packages/ifcopenshell/geom/main.py\", line 242, in create_shape\r\n    ifcopenshell_wrapper.create_shape(settings, inst.wrapped_data, repr.wrapped_data if repr is not None else None),\r\n    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\n  File \"/home/eee/.config/blender/4.1/scripts/addons/blenderbim/libs/site/packages/ifcopenshell/ifcopenshell_wrapper.py\", line 2083, in create_shape\r\n    return _ifcopenshell_wrapper.create_shape(settings, instance, representation)\r\n           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\r\nRuntimeError: Representation is NULL\r\nLocation: /snap/blender/4786/4.1/scripts/modules/bpy/ops.py:109\r\n\r\n\r\nifc: Unsaved\r\nschema: IFC4\r\npreprocessor_version: IfcOpenShell v0.7.0-f7c03db75\r\noriginating_system: IfcOpenShell v0.7.0-f7c03db75\r\n```\r\n\r\nOn further probing it is observed that error occurs when `IfcSite` element is selected when calculation of quantities are performed.","author":{"url":"https://github.com/manuvarkey","@type":"Person","name":"manuvarkey"},"datePublished":"2024-05-30T11:02:15Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/4765"}

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:78d22ac4-6bc1-5156-92da-9fa949085549
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA0C4:E046C:AE236B:F33F64:6B048A30
html-safe-nonce61673d6f16a39aa0506bd9858dae041af1fbb87939d785fe2c394abd9c66254a
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMEM0OkUwNDZDOkFFMjM2QjpGMzNGNjQ6NkIwNDhBMzAiLCJ2aXNpdG9yX2lkIjoiODg3ODgwODg5NzIxMzk5MTQ3MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmaca8282e67efba1b9f08c0d6e3805505d36f2eb232c738bce4101f8502b1118723
hovercard-subject-tagissue:2325371252
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/4765/issue_layout
twitter:imagehttps://opengraph.githubassets.com/c2de98172cf1a2d7bfe2a1332c8cbf539ff7530929b27b342e9927373f8d307d/IfcOpenShell/IfcOpenShell/issues/4765
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c2de98172cf1a2d7bfe2a1332c8cbf539ff7530929b27b342e9927373f8d307d/IfcOpenShell/IfcOpenShell/issues/4765
og:image:altWith a blank project created, when calculating quantities for elements by pressing Shift+Q, after selecting all elements in workspace with A keyboard short cut, following error is shown. os: Linux ...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemanuvarkey
hostnamegithub.com
expected-hostnamegithub.com
None1d5c152376e38b7d2e37f3d5179be29a73bee93b85110da28a4eebe1159cdc70
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
releasef5017e8ff4ea25a8011fcf0f2a0e430c60dc86c8
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/IfcOpenShell/IfcOpenShell/issues/4765#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2F4765
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%2F4765
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/4765
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/4765
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/4765
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/4765
New issuehttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/4765
Error when calculating quantities with all items selectedhttps://github.com/IfcOpenShell/IfcOpenShell/issues/4765#top
Bonsaihttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22Bonsai%22
https://github.com/manuvarkey
manuvarkeyhttps://github.com/manuvarkey
on May 30, 2024https://github.com/IfcOpenShell/IfcOpenShell/issues/4765#issue-2325371252
Andrej730https://github.com/Andrej730
Bonsaihttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22Bonsai%22
on May 30, 2024https://github.com/IfcOpenShell/IfcOpenShell/issues/4765#event-12984350973
Moulthttps://github.com/Moult
completedhttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
5466be9https://github.com/IfcOpenShell/IfcOpenShell/commit/5466be9b7b309b6422780a9994b4c53d0c2cbe51
on May 31, 2024https://github.com/IfcOpenShell/IfcOpenShell/issues/4765#event-12993024788
dirkolbrichhttps://github.com/dirkolbrich
on May 31, 2024https://github.com/IfcOpenShell/IfcOpenShell/issues/4765#event-12997517400
Fix IfcOpenShell#4765. Only run Blender calculator on meshes.https://github.com/dirkolbrich/IfcOpenShell/commit/5466be9b7b309b6422780a9994b4c53d0c2cbe51
IfcOpenShell#4765https://github.com/IfcOpenShell/IfcOpenShell/issues/4765
https://docs.github.com/articles/closing-issues-via-commit-messages
5466be9https://github.com/dirkolbrich/IfcOpenShell/commit/5466be9b7b309b6422780a9994b4c53d0c2cbe51
Sign up for freehttps://github.com/signup?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/4765
Sign in to commenthttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/4765
Bonsaihttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22Bonsai%22
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.