Title: Derived fields not populated · Issue #87 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Derived fields not populated · Issue #87 · IfcOpenShell/IfcOpenShell
X Title: Derived fields not populated · Issue #87 · IfcOpenShell/IfcOpenShell
Description: Derived fields not populated not populated until entity_instance.attribute_type() is at least called once on some instance. As a work-around simply call that method on an instance that can be discarded before executing other code. >>> im...
Open Graph Description: Derived fields not populated not populated until entity_instance.attribute_type() is at least called once on some instance. As a work-around simply call that method on an instance that can be disca...
X Description: Derived fields not populated not populated until entity_instance.attribute_type() is at least called once on some instance. As a work-around simply call that method on an instance that can be disca...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/87
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Derived fields not populated","articleBody":"Derived fields not populated not populated until `entity_instance.attribute_type()` is at least called once on some instance. As a work-around simply call that method on an instance that can be discarded before executing other code.\n\n```\n>>> import ifcopenshell_master as ifcopenshell\n>>>\n>>> ifcfile = ifcopenshell.open()\n>>> ifcfile.createIfcGeometricRepresentationSubContext()\n#1=IfcGeometricRepresentationSubContext($,$,$,$,$,$,$,$,$,$)\n>>> _.attribute_type(0)\n'STRING'\n>>> ifcfile.createIfcGeometricRepresentationSubContext()\n#2=IfcGeometricRepresentationSubContext($,$,*,*,*,*,$,$,$,$)\n```\n\nIssue being caused by `InitDerivedMap()` https://github.com/IfcOpenShell/IfcOpenShell/blob/master/src/ifcparse/Ifc2x3-latebound.cpp#L4188 not being called before `PopulateDerivedFields()` https://github.com/IfcOpenShell/IfcOpenShell/blob/master/src/ifcparse/Ifc2x3-latebound.cpp#L4298 . Better make this statically initialized variables.\n","author":{"url":"https://github.com/aothms","@type":"Person","name":"aothms"},"datePublished":"2016-06-07T11:57:49Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/87"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5856c38a-9fdc-4bc4-f24e-f74a62d89565 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E70A:3AACE0:4B19E5:678F69:6B0471CF |
| html-safe-nonce | ef6b0a67dc6df142294f76e04636903539979e133902eafe89817f177d03d217 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzBBOjNBQUNFMDo0QjE5RTU6Njc4RjY5OjZCMDQ3MUNGIiwidmlzaXRvcl9pZCI6IjQ4NzAwNDQ4MzAxMTEzOTYzMDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 15a21997fb5a97619ef628e581b3a3605c9fd9fd2aa7f3ca393a5e1285fc4f22 |
| hovercard-subject-tag | issue:158904964 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/IfcOpenShell/IfcOpenShell/87/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1f8417c1f9f2b05c4c25c9090a3ebd6c0e993adc57755e4790602045f4c438bf/IfcOpenShell/IfcOpenShell/issues/87 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1f8417c1f9f2b05c4c25c9090a3ebd6c0e993adc57755e4790602045f4c438bf/IfcOpenShell/IfcOpenShell/issues/87 |
| og:image:alt | Derived fields not populated not populated until entity_instance.attribute_type() is at least called once on some instance. As a work-around simply call that method on an instance that can be disca... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | aothms |
| hostname | github.com |
| expected-hostname | github.com |
| None | ae8802492f12d3ba4f6b0d814054e617a2a5616b6327bf8555c10cd5b0dc2a6f |
| turbo-cache-control | no-preview |
| go-import | github.com/IfcOpenShell/IfcOpenShell git https://github.com/IfcOpenShell/IfcOpenShell.git |
| octolytics-dimension-user_id | 13692563 |
| octolytics-dimension-user_login | IfcOpenShell |
| octolytics-dimension-repository_id | 40473201 |
| octolytics-dimension-repository_nwo | IfcOpenShell/IfcOpenShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 40473201 |
| octolytics-dimension-repository_network_root_nwo | IfcOpenShell/IfcOpenShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cfb5f24c6e01d85f70804652a5107e5cac03a161 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width