René's URL Explorer Experiment


Title: IFC4X3 not working in the Python API · Issue #3126 · IfcOpenShell/IfcOpenShell · GitHub

Open Graph Title: IFC4X3 not working in the Python API · Issue #3126 · IfcOpenShell/IfcOpenShell

X Title: IFC4X3 not working in the Python API · Issue #3126 · IfcOpenShell/IfcOpenShell

Description: By running the following snippet: import ifcopenshell.api def create_simple_IFC(version): file = ifcopenshell.api.run('project.create_file', version=version) project = ifcopenshell.api.run('root.create_entity', file, ifc_class='IfcProjec...

Open Graph Description: By running the following snippet: import ifcopenshell.api def create_simple_IFC(version): file = ifcopenshell.api.run('project.create_file', version=version) project = ifcopenshell.api.run('root.cr...

X Description: By running the following snippet: import ifcopenshell.api def create_simple_IFC(version): file = ifcopenshell.api.run('project.create_file', version=version) project = ifcopenshell.api.run(...

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

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":"IFC4X3 not working in the Python API","articleBody":"By running the following snippet:\r\n\r\n```python\r\nimport ifcopenshell.api\r\n\r\n\r\ndef create_simple_IFC(version):\r\n    file = ifcopenshell.api.run('project.create_file', version=version)\r\n    project = ifcopenshell.api.run('root.create_entity', file, ifc_class='IfcProject')\r\n    site = ifcopenshell.api.run('root.create_entity', file, ifc_class='IfcSite')\r\n    ifcopenshell.api.run('aggregate.assign_object', file, product=site, relating_object=project)\r\n\r\n    pset_site = ifcopenshell.api.run('pset.add_pset', file, product=site, name='Pset_SiteCommon')\r\n    ifcopenshell.api.run('pset.edit_pset', file, pset=pset_site, properties={'TotalArea': 400.})\r\n    return file\r\n\r\n\r\nassert create_simple_IFC('IFC4')\r\nassert create_simple_IFC('IFC4X3')\r\nassert create_simple_IFC('IFC4X3_TC1')\r\nassert create_simple_IFC('IFC4X3_ADD1')\r\n```\r\n\r\nAn error is returned for the last two cases:\r\n```\r\nFile \"./ifcopenshell/util/pset.py\", line 49, in __init__\r\n    path = str(folder_path.joinpath(\"schema\", self.templates_path[schema]))\r\n                                              ~~~~~~~~~~~~~~~~~~~^^^^^^^^\r\nKeyError: 'IFC4X3_TC1'\r\n```\r\n\r\nMoreover, in version='IFC4X3', although this simple example works, we're using deprecated IFC4.3.0.0 rc2, which might not be what intended, and leads to [strange validation issues](https://github.com/IfcOpenShell/IfcOpenShell/issues/2685#issuecomment-1519166560).\r\n\r\nI believe that even before TC1 becomes ISO, version='IFC4X3' should default to it. The other alternative may be to change equalities to `str.startswith` within the API... but I believe virtually 100% of people creating an 'IFC4X3' version will be looking for the new infra Schema, and not the particular deprecated version IFC4.3.0.0 rc2.\r\n\r\n","author":{"url":"https://github.com/cvillagrasa","@type":"Person","name":"cvillagrasa"},"datePublished":"2023-05-09T10:38:23Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/3126"}

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:b45facc0-5ec2-96c6-8f1d-6ee56deef93f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id90AE:2DF8CF:4C67FF:650CB2:6B04BE41
html-safe-nonce8aca942769a01c0bcfa2154156aa82a5b39bbca22a47e66c474969a41ae1f4c4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MEFFOjJERjhDRjo0QzY3RkY6NjUwQ0IyOjZCMDRCRTQxIiwidmlzaXRvcl9pZCI6IjUyODAyODg5ODk4MjkzNjEyOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac2d43fb0b5f6558aea828f48e27d178252f4a2e5dce7710d0f8574e0c79221123
hovercard-subject-tagissue:1701824102
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/3126/issue_layout
twitter:imagehttps://opengraph.githubassets.com/4fe17f6886cba457bdd33b7b370762fde7c62d6e8e347fcfefc7119b2b92daed/IfcOpenShell/IfcOpenShell/issues/3126
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/4fe17f6886cba457bdd33b7b370762fde7c62d6e8e347fcfefc7119b2b92daed/IfcOpenShell/IfcOpenShell/issues/3126
og:image:altBy running the following snippet: import ifcopenshell.api def create_simple_IFC(version): file = ifcopenshell.api.run('project.create_file', version=version) project = ifcopenshell.api.run('root.cr...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamecvillagrasa
hostnamegithub.com
expected-hostnamegithub.com
None85dd75377eb77313206b8fc108bcee6a3a029286d94bf32bf9b4426e4d92e0c4
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
release0d64fa748a2bab9a5b587a967ac4da1cfa8da6dd
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/IfcOpenShell/IfcOpenShell/issues/3126#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FIfcOpenShell%2FIfcOpenShell%2Fissues%2F3126
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%2F3126
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/3126
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/3126
Reloadhttps://github.com/IfcOpenShell/IfcOpenShell/issues/3126
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 requests939 (939)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/3126
New issuehttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/3126
IFC4X3 not working in the Python APIhttps://github.com/IfcOpenShell/IfcOpenShell/issues/3126#top
https://github.com/Moult
Bonsaihttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22Bonsai%22
IfcOpenShell-Pythonhttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22IfcOpenShell-Python%22
https://github.com/cvillagrasa
cvillagrasahttps://github.com/cvillagrasa
on May 9, 2023https://github.com/IfcOpenShell/IfcOpenShell/issues/3126#issue-1701824102
strange validation issueshttps://github.com/IfcOpenShell/IfcOpenShell/issues/2685#issuecomment-1519166560
cvillagrasahttps://github.com/cvillagrasa
IfcOpenShell-Corehttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22IfcOpenShell-Core%22
IfcOpenShell-Pythonhttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22IfcOpenShell-Python%22
on May 9, 2023https://github.com/IfcOpenShell/IfcOpenShell/issues/3126#event-9199443424
cvillagrasahttps://github.com/cvillagrasa
Bonsaihttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22Bonsai%22
IfcOpenShell-Corehttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22IfcOpenShell-Core%22
on May 30, 2023https://github.com/IfcOpenShell/IfcOpenShell/issues/3126#event-9381253248
https://github.com/cvillagrasa
cvillagrasahttps://github.com/cvillagrasa
on May 30, 2023https://github.com/IfcOpenShell/IfcOpenShell/issues/3126#issuecomment-1568827872
@Moulthttps://github.com/Moult
indeed, 'IFC4X3' identifier will forever refer to 4.3.0.0https://community.osarch.org/discussion/comment/15886/#Comment_15886
IfcOpenShell/src/blenderbim/blenderbim/bim/ifc.pyhttps://github.com/IfcOpenShell/IfcOpenShell/blob/d3201809abc5714ff1c56e0f86b9d42c3332a5ca/src/blenderbim/blenderbim/bim/ifc.py#L53
d320180https://github.com/IfcOpenShell/IfcOpenShell/commit/d3201809abc5714ff1c56e0f86b9d42c3332a5ca
IfcOpenShell/src/blenderbim/blenderbim/bim/ifc.pyhttps://github.com/IfcOpenShell/IfcOpenShell/blob/d3201809abc5714ff1c56e0f86b9d42c3332a5ca/src/blenderbim/blenderbim/bim/ifc.py#L73
d320180https://github.com/IfcOpenShell/IfcOpenShell/commit/d3201809abc5714ff1c56e0f86b9d42c3332a5ca
IfcOpenShell/src/blenderbim/blenderbim/bim/schema.pyhttps://github.com/IfcOpenShell/IfcOpenShell/blob/f6e72ec06fbc1cab3ade3e817bfc30dc23c1c799/src/blenderbim/blenderbim/bim/schema.py#L32
f6e72echttps://github.com/IfcOpenShell/IfcOpenShell/commit/f6e72ec06fbc1cab3ade3e817bfc30dc23c1c799
IfcOpenShell/src/ifcopenshell-python/ifcopenshell/util/pset.pyhttps://github.com/IfcOpenShell/IfcOpenShell/blob/f6e72ec06fbc1cab3ade3e817bfc30dc23c1c799/src/ifcopenshell-python/ifcopenshell/util/pset.py#L42
f6e72echttps://github.com/IfcOpenShell/IfcOpenShell/commit/f6e72ec06fbc1cab3ade3e817bfc30dc23c1c799
IfcOpenShell/src/ifcopenshell-python/ifcopenshell/api/project/create_file.pyhttps://github.com/IfcOpenShell/IfcOpenShell/blob/f6e72ec06fbc1cab3ade3e817bfc30dc23c1c799/src/ifcopenshell-python/ifcopenshell/api/project/create_file.py#L36
f6e72echttps://github.com/IfcOpenShell/IfcOpenShell/commit/f6e72ec06fbc1cab3ade3e817bfc30dc23c1c799
cvillagrasahttps://github.com/cvillagrasa
BlenderBIM Add-on v0.0.230701https://github.com/orgs/IfcOpenShell/projects/5
on May 30, 2023https://github.com/IfcOpenShell/IfcOpenShell/issues/3126#event-15234670434
cvillagrasahttps://github.com/cvillagrasa
BlenderBIM Add-on v0.0.230701https://github.com/orgs/IfcOpenShell/projects/5
on May 30, 2023https://github.com/IfcOpenShell/IfcOpenShell/issues/3126
https://github.com/aothms
aothmshttps://github.com/aothms
on May 30, 2023https://github.com/IfcOpenShell/IfcOpenShell/issues/3126#issuecomment-1568947146
https://github.com/IfcOpenShell/IfcOpenShell/blob/v0.7.0/src/ifcopenshell-python/ifcopenshell/file.py#L194https://github.com/IfcOpenShell/IfcOpenShell/blob/v0.7.0/src/ifcopenshell-python/ifcopenshell/file.py#L194
https://github.com/Moult
Moulthttps://github.com/Moult
on May 31, 2023https://github.com/IfcOpenShell/IfcOpenShell/issues/3126#issuecomment-1569296860
@berlottihttps://github.com/berlotti
https://github.com/cvillagrasa
cvillagrasahttps://github.com/cvillagrasa
on May 31, 2023https://github.com/IfcOpenShell/IfcOpenShell/issues/3126#issuecomment-1570015998
@aothmshttps://github.com/aothms
@Moulthttps://github.com/Moult
@aothmshttps://github.com/aothms
https://github.com/aothms
aothmshttps://github.com/aothms
on Jun 1, 2023https://github.com/IfcOpenShell/IfcOpenShell/issues/3126#issuecomment-1571460443
@cvillagrasahttps://github.com/cvillagrasa
https://github.com/cvillagrasa
cvillagrasahttps://github.com/cvillagrasa
on Jun 1, 2023https://github.com/IfcOpenShell/IfcOpenShell/issues/3126#issuecomment-1571752611
@aothmshttps://github.com/aothms
https://github.com/Moult
Moulthttps://github.com/Moult
on Jun 2, 2023https://github.com/IfcOpenShell/IfcOpenShell/issues/3126#issuecomment-1572951281
https://github.com/aothms
aothmshttps://github.com/aothms
on Jun 2, 2023https://github.com/IfcOpenShell/IfcOpenShell/issues/3126#issuecomment-1573239565
https://github.com/Moult
Moulthttps://github.com/Moult
on Jun 2, 2023https://github.com/IfcOpenShell/IfcOpenShell/issues/3126#issuecomment-1573242930
https://github.com/cvillagrasa
cvillagrasahttps://github.com/cvillagrasa
on Jun 3, 2023https://github.com/IfcOpenShell/IfcOpenShell/issues/3126#issuecomment-1575246321
Moulthttps://github.com/Moult
on Jul 6, 2023https://github.com/IfcOpenShell/IfcOpenShell/issues/3126#event-9738909265
Moulthttps://github.com/Moult
BlenderBIM Add-on v0.0.230902https://github.com/orgs/IfcOpenShell/projects/6
on Jul 6, 2023https://github.com/IfcOpenShell/IfcOpenShell/issues/3126#event-14890570075
Moulthttps://github.com/Moult
BlenderBIM Add-on v0.0.230902https://github.com/orgs/IfcOpenShell/projects/6
on Jul 6, 2023https://github.com/IfcOpenShell/IfcOpenShell/issues/3126
Moulthttps://github.com/Moult
completedhttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
5b4010chttps://github.com/IfcOpenShell/IfcOpenShell/commit/5b4010c67da501112d9bfe3eabac3b62e85494b9
on Jul 6, 2023https://github.com/IfcOpenShell/IfcOpenShell/issues/3126#event-9739112470
github-project-automationhttps://github.com/apps/github-project-automation
BlenderBIM Add-on v0.0.230902https://github.com/orgs/IfcOpenShell/projects/6
on Jul 6, 2023https://github.com/IfcOpenShell/IfcOpenShell/issues/3126
Moulthttps://github.com/Moult
on Jul 6, 2023https://github.com/IfcOpenShell/IfcOpenShell/issues/3126#event-9742406025
See #3126. Forgot to commit tests related to explicit schema versions.https://github.com/IfcOpenShell/IfcOpenShell/commit/ae7c9f35a6f71435aae98d1c5d4ea451963629e9
#3126https://github.com/IfcOpenShell/IfcOpenShell/issues/3126
ae7c9f3https://github.com/IfcOpenShell/IfcOpenShell/commit/ae7c9f35a6f71435aae98d1c5d4ea451963629e9
See #3126 and 5b4010c. Fix failing tests, and allow schema_by_name to…https://github.com/IfcOpenShell/IfcOpenShell/commit/a970120fac79e6f57129f9f51d7c3db124911b7d
#3126https://github.com/IfcOpenShell/IfcOpenShell/issues/3126
5b4010chttps://github.com/IfcOpenShell/IfcOpenShell/commit/5b4010c67da501112d9bfe3eabac3b62e85494b9
a970120https://github.com/IfcOpenShell/IfcOpenShell/commit/a970120fac79e6f57129f9f51d7c3db124911b7d
aothmshttps://github.com/aothms
on Oct 12, 2023https://github.com/IfcOpenShell/IfcOpenShell/issues/3126#event-10628647141
Use schema_identifier for schema and express rule validation. See #3126https://github.com/IfcOpenShell/IfcOpenShell/commit/81b4e42ca23759480b71306b73f4073d964ed5f2
#3126https://github.com/IfcOpenShell/IfcOpenShell/issues/3126
81b4e42https://github.com/IfcOpenShell/IfcOpenShell/commit/81b4e42ca23759480b71306b73f4073d964ed5f2
Sign up for freehttps://github.com/signup?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/3126
Sign in to commenthttps://github.com/login?return_to=https://github.com/IfcOpenShell/IfcOpenShell/issues/3126
Moulthttps://github.com/Moult
Bonsaihttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22Bonsai%22
IfcOpenShell-Pythonhttps://github.com/IfcOpenShell/IfcOpenShell/issues?q=state%3Aopen%20label%3A%22IfcOpenShell-Python%22
BlenderBIM Add-on v0.0.230701Closedhttps://github.com/orgs/IfcOpenShell/projects/5
BlenderBIM Add-on v0.0.230902Closedhttps://github.com/orgs/IfcOpenShell/projects/6
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.