René's URL Explorer Experiment


Title: ifcopenshell.util.cost | calculate_applied_value for multiple CostValues · Issue #5912 · IfcOpenShell/IfcOpenShell · GitHub

Open Graph Title: ifcopenshell.util.cost | calculate_applied_value for multiple CostValues · Issue #5912 · IfcOpenShell/IfcOpenShell

X Title: ifcopenshell.util.cost | calculate_applied_value for multiple CostValues · Issue #5912 · IfcOpenShell/IfcOpenShell

Description: I have an IfcCostItem #72=IfcCostItem(GlobalID,$,'item2 composite value from formula',$,$,$,$,(#77,#85),(#76)) highlighted in the image below: to quickly list its CostValues I use list(model.by_id(72).CostValues) ouput: [#77=IfcCostValue...

Open Graph Description: I have an IfcCostItem #72=IfcCostItem(GlobalID,$,'item2 composite value from formula',$,$,$,$,(#77,#85),(#76)) highlighted in the image below: to quickly list its CostValues I use list(model.by_id(...

X Description: I have an IfcCostItem #72=IfcCostItem(GlobalID,$,'item2 composite value from formula',$,$,$,$,(#77,#85),(#76)) highlighted in the image below: to quickly list its CostValues I use list(mode...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ifcopenshell.util.cost | calculate_applied_value for multiple CostValues","articleBody":"I have an IfcCostItem\r\n`#72=IfcCostItem(GlobalID,$,'item2 composite value from formula',$,$,$,$,(#77,#85),(#76))`\r\nhighlighted in the image below:\r\n\r\n![image](https://github.com/user-attachments/assets/abdf979e-de58-4605-aa69-7151ac8af6b8)\r\n\r\nto quickly list its CostValues I use\r\n`list(model.by_id(72).CostValues)`\r\nouput:\r\n```[#77=IfcCostValue($,$,IfcMonetaryMeasure(50.),$,$,$,$,$,.MULTIPLY.,(#78,#79)), #85=IfcCostValue($,$,IfcMonetaryMeasure(0.),$,$,$,$,$,.MULTIPLY.,(#86,#87))]```\r\n\r\n### AppliedValue not accurate\r\nif I check the AppliedValue of the first CostValue `#77` I have\r\n`model.by_id(77).AppliedValue.wrappedValue`\r\noutput: **50** (shouldn't it be **40** since it's 8.0 * 5.0?)\r\nand CostValue `#85` returns 0 instead of 42.00\r\n\r\n### Function to calculate sum of multiple AppliedValue\r\nusing the available function\r\n```ifcopenshell.util.cost.calculate_applied_value(model.by_id(72),model.by_id(77))```\r\nreturns the expected value **40** = 8.0 * 5.0\r\nbut it's limited to one cost value at the time (?) and requires a custom loop to get the total related to the cost item\r\n\r\n### request\r\napart from  \"AppliedValue not accurate\" apparent issue, it would be useful to have a new function to sum all CostValues in a cost item without creating a custom function with loop, or if already available I couldn't find it :)\r\n```ifcopenshell.util.cost.get_cost_values(cost_item)``` returns a list of dictionaries I couldn't find suitable for that purpose\r\n\r\nmany thanks for your kind assistance, always appreciated\r\n\r\nping @maxfb87 @myoualid ","author":{"url":"https://github.com/steverugi","@type":"Person","name":"steverugi"},"datePublished":"2024-12-29T09:11:08Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/5912"}

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:108f6d54-4b8b-5d96-08a2-d86b9799bd27
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8280:342426:91B67:C8BEC:6B04A700
html-safe-noncefd616092a834ef6f7d46496b0bc512ad593846e93b3d8aa680ba009698b4ed97
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MjgwOjM0MjQyNjo5MUI2NzpDOEJFQzo2QjA0QTcwMCIsInZpc2l0b3JfaWQiOiIzMDIzMDIzMzAyOTk5NTgyNDY0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmac22fe56e9bd3c90a6c421a706fd538838be2746d2b092fe882f3fef2b65fac995
hovercard-subject-tagissue:2762169133
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/5912/issue_layout
twitter:imagehttps://opengraph.githubassets.com/741ed994e6a02ec7f041bd91a008e49ea19a7f00b9a53d60179dc5352883ded2/IfcOpenShell/IfcOpenShell/issues/5912
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/741ed994e6a02ec7f041bd91a008e49ea19a7f00b9a53d60179dc5352883ded2/IfcOpenShell/IfcOpenShell/issues/5912
og:image:altI have an IfcCostItem #72=IfcCostItem(GlobalID,$,'item2 composite value from formula',$,$,$,$,(#77,#85),(#76)) highlighted in the image below: to quickly list its CostValues I use list(model.by_id(...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesteverugi
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/5912#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2F5912
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%2F5912
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/5912
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/5912
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/5912
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/5912
New issuehttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/5912
Bughttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=type:"Bug"
ifcopenshell.util.cost | calculate_applied_value for multiple CostValueshttps://github.com/IfcOpenShell/IfcOpenShell/issues/5912#top
Bonsaihttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22Bonsai%22
PR Proposedhttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22PR%20Proposed%22
Severity:Minorhttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22Severity%3AMinor%22
https://github.com/steverugi
steverugihttps://github.com/steverugi
on Dec 29, 2024https://github.com/IfcOpenShell/IfcOpenShell/issues/5912#issue-2762169133
https://private-user-images.githubusercontent.com/46449330/399147307-abdf979e-de58-4605-aa69-7151ac8af6b8.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTU0NjczMDksIm5iZiI6MTc5NTQ2NzAwOSwicGF0aCI6Ii80NjQ0OTMzMC8zOTkxNDczMDctYWJkZjk3OWUtZGU1OC00NjA1LWFhNjktNzE1MWFjOGFmNmI4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjExMjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMTIzVDIwNTAwOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWZkOWNlNTMyY2FkZjc0YWY5OTczZjExMDYxZWM1NjY3OGIyNDllZTg3ZTQ2ZDVmODBhMjk0MjJkMWU4YzdhNDQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRnBuZyJ9.Jw0k4XZOgn-StQdNwijoiTpDjwF64OsXI9Y4X9-6bwo
@maxfb87https://github.com/maxfb87
@myoualidhttps://github.com/myoualid
Andrej730https://github.com/Andrej730
Bonsaihttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22Bonsai%22
on Dec 30, 2024https://github.com/IfcOpenShell/IfcOpenShell/issues/5912#event-15782160305
https://github.com/steverugi
steverugihttps://github.com/steverugi
on Dec 30, 2024https://github.com/IfcOpenShell/IfcOpenShell/issues/5912#issuecomment-2565140357
https://github.com/DimitriosThe
DimitriosThehttps://github.com/DimitriosThe
on Jan 4, 2025https://github.com/IfcOpenShell/IfcOpenShell/issues/5912#issuecomment-2571313303
https://private-user-images.githubusercontent.com/46449330/399147307-abdf979e-de58-4605-aa69-7151ac8af6b8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzU5OTc4MTgsIm5iZiI6MTczNTk5NzUxOCwicGF0aCI6Ii80NjQ0OTMzMC8zOTkxNDczMDctYWJkZjk3OWUtZGU1OC00NjA1LWFhNjktNzE1MWFjOGFmNmI4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAxMDQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMTA0VDEzMzE1OFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTcwZmI3OTAwMTc0YWM4MjhjMTRiNmFmNzQ4ZTJkNGQ0OGI2MDFmODhiMTUwN2UyYjMwNzkzOWY4ZDczZjVjYjUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.wq_fnjCc9RCTTszGYvIiGMclPqb84LMhYuFxHvUWgWc
@maxfb87https://github.com/maxfb87
@myoualidhttps://github.com/myoualid
@steverugihttps://github.com/steverugi
https://github.com/steverugi
steverugihttps://github.com/steverugi
on Jan 5, 2025https://github.com/IfcOpenShell/IfcOpenShell/issues/5912#issuecomment-2571514299
@DimitriosThehttps://github.com/DimitriosThe
appliedvalue_example.ifchttps://github.com/user-attachments/files/18309330/appliedvalue_example.-.Copy.txt
sboddyhttps://github.com/sboddy
Bughttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=type:"Bug"
on Apr 18, 2025https://github.com/IfcOpenShell/IfcOpenShell/issues/5912#event-17313711302
sboddyhttps://github.com/sboddy
Severity:Minorhttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22Severity%3AMinor%22
on Apr 18, 2025https://github.com/IfcOpenShell/IfcOpenShell/issues/5912#event-17313712003
https://github.com/sboddy
sboddyhttps://github.com/sboddy
on Apr 18, 2025https://github.com/IfcOpenShell/IfcOpenShell/issues/5912#issuecomment-2814346328
@steverugihttps://github.com/steverugi
https://github.com/petruconduraru
petruconduraruhttps://github.com/petruconduraru
on Jul 5, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/5912#issuecomment-4886433763
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/5912#event-27662996532
petruconduraruhttps://github.com/petruconduraru
on Jul 9, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/5912#event-27760002255
util.cost: add calculate_total_applied_value IfcOpenShell#5912https://github.com/BIMvoice/IfcOpenShell/commit/1713d24814159c0a096218fc3dc80659db25191a
IfcOpenShell#5912https://github.com/IfcOpenShell/IfcOpenShell/issues/5912
1713d24https://github.com/BIMvoice/IfcOpenShell/commit/1713d24814159c0a096218fc3dc80659db25191a
petruconduraruhttps://github.com/petruconduraru
on Jul 23, 2026https://github.com/IfcOpenShell/IfcOpenShell/issues/5912#event-28369298971
util.cost: add calculate_total_applied_value IfcOpenShell#5912https://github.com/BIMvoice/IfcOpenShell/commit/c06fda0092eed74e83ce353f064f56970eb182fa
IfcOpenShell#5912https://github.com/IfcOpenShell/IfcOpenShell/issues/5912
c06fda0https://github.com/BIMvoice/IfcOpenShell/commit/c06fda0092eed74e83ce353f064f56970eb182fa
Sign up for freehttps://github.com/signup?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/5912
Sign in to commenthttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/5912
Bonsaihttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22Bonsai%22
PR Proposedhttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22PR%20Proposed%22
Severity:Minorhttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22Severity%3AMinor%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.