Title: externally created IFC not containing a IFCGEOMETRICREPRESENTATIONSUBCONTEXT "Body" causes AttributeError in BBim · Issue #3217 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: externally created IFC not containing a IFCGEOMETRICREPRESENTATIONSUBCONTEXT "Body" causes AttributeError in BBim · Issue #3217 · IfcOpenShell/IfcOpenShell
X Title: externally created IFC not containing a IFCGEOMETRICREPRESENTATIONSUBCONTEXT "Body" causes AttributeError in BBim · Issue #3217 · IfcOpenShell/IfcOpenShell
Description: IfcOpenShell/src/ifcopenshell-python/ifcopenshell/api/geometry/add_representation.py Line 68 in ff2fa70 if self.settings["context"].ContextType == "Model": if self.settings["context"].ContextType == "Model": AttributeError: 'NoneType' ob...
Open Graph Description: IfcOpenShell/src/ifcopenshell-python/ifcopenshell/api/geometry/add_representation.py Line 68 in ff2fa70 if self.settings["context"].ContextType == "Model": if self.settings["context"].ContextType =...
X Description: IfcOpenShell/src/ifcopenshell-python/ifcopenshell/api/geometry/add_representation.py Line 68 in ff2fa70 if self.settings["context"].ContextType == "Model": if self.settings[&quo...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/3217
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"externally created IFC not containing a IFCGEOMETRICREPRESENTATIONSUBCONTEXT \"Body\" causes AttributeError in BBim ","articleBody":"https://github.com/IfcOpenShell/IfcOpenShell/blob/ff2fa707769c1625e04b1e61bb2fc461f4f089a5/src/ifcopenshell-python/ifcopenshell/api/geometry/add_representation.py#L68\r\n\r\n```\r\n if self.settings[\"context\"].ContextType == \"Model\":\r\nAttributeError: 'NoneType' object has no attribute 'ContextType'\r\n```\r\n\r\nOn creating a Drawing in BlenderBim.\r\n\r\nAvoid by adding to external IFC something like \r\n```\r\n#19=IFCGEOMETRICREPRESENTATIONCONTEXT($,'Model',3,1.E-05,#18,$);\r\n#20=IFCGEOMETRICREPRESENTATIONSUBCONTEXT('Body','Model',,,,,#19,$,.MODEL_VIEW.,$);\r\n```\r\n\r\nFor robustness, BBim may consider to catch this and add the preassert automatically.\r\n","author":{"url":"https://github.com/sire42","@type":"Person","name":"sire42"},"datePublished":"2023-05-30T14:19:22Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/3217"}
| 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:52f1f615-acbe-93e0-a421-134ead66d527 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DA38:362421:BF3A39:10503DC:6B048BFD |
| html-safe-nonce | 12c3ce36eda5472128e7b0542c5e1d4c15e5e33528ce5016941cd0ccdc48abdf |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEQTM4OjM2MjQyMTpCRjNBMzk6MTA1MDNEQzo2QjA0OEJGRCIsInZpc2l0b3JfaWQiOiI1NzM4ODkxOTIzNTQwOTcwNDkzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 2abbfdbf30a7aae8b59bb686ececa841b6d55ff2b8bd07a325abe841266c9dce |
| hovercard-subject-tag | issue:1732375201 |
| 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/3217/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9dbd34c3ceb40c3db54955c4f225afe2b9c95f5f63a01b6a98a8835666116844/IfcOpenShell/IfcOpenShell/issues/3217 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9dbd34c3ceb40c3db54955c4f225afe2b9c95f5f63a01b6a98a8835666116844/IfcOpenShell/IfcOpenShell/issues/3217 |
| og:image:alt | IfcOpenShell/src/ifcopenshell-python/ifcopenshell/api/geometry/add_representation.py Line 68 in ff2fa70 if self.settings["context"].ContextType == "Model": if self.settings["context"].ContextType =... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sire42 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9b297275a74a2c9a35898175c9477837c635d4f579277ebff3b2d6ebd012e247 |
| 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 | b51ce57ca6d4565a42856fc1c9897077c794597f |
| 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