Title: The first and last characters of the GUID are being cut off during IFC → JSON conversion. · Issue #7 · IFCJSON-Team/IFC2JSON_python · GitHub
Open Graph Title: The first and last characters of the GUID are being cut off during IFC → JSON conversion. · Issue #7 · IFCJSON-Team/IFC2JSON_python
X Title: The first and last characters of the GUID are being cut off during IFC → JSON conversion. · Issue #7 · IFCJSON-Team/IFC2JSON_python
Description: For example, the GUID in the IFC is: 157c866c-9c08-4348-a0ed-4d57cd66c9e2 …but in the converted JSON it appears as: 57c866c-9c08-4348-a0ed-4d57cd66c9e GUID in IFC editor: GUID in converted JSON: "relatedElements": [ { "ref": "92c2898-fd6...
Open Graph Description: For example, the GUID in the IFC is: 157c866c-9c08-4348-a0ed-4d57cd66c9e2 …but in the converted JSON it appears as: 57c866c-9c08-4348-a0ed-4d57cd66c9e GUID in IFC editor: GUID in converted JSON: "r...
X Description: For example, the GUID in the IFC is: 157c866c-9c08-4348-a0ed-4d57cd66c9e2 …but in the converted JSON it appears as: 57c866c-9c08-4348-a0ed-4d57cd66c9e GUID in IFC editor: GUID in converted JSON: &q...
Opengraph URL: https://github.com/IFCJSON-Team/IFC2JSON_python/issues/7
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"The first and last characters of the GUID are being cut off during IFC → JSON conversion.","articleBody":"For example, the GUID in the IFC is:\n157c866c-9c08-4348-a0ed-4d57cd66c9e2\n\n…but in the converted JSON it appears as:\n57c866c-9c08-4348-a0ed-4d57cd66c9e\n\nGUID in IFC editor:\n\u003cimg width=\"556\" height=\"152\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/097d0988-36d6-4576-b2b7-a2d50fd8c00b\" />\n\nGUID in converted JSON:\n`\"relatedElements\": [\n {\n \"ref\": \"92c2898-fd68-44ef-9178-3348e340017\"\n },\n {\n \"ref\": \"57c866c-9c08-4348-a0ed-4d57cd66c9e\"\n }\n ],`\n\n\n\nThis looks like a parsing issue in ifc2json4.py and ifc2json5a.py. The current logic appears to assume the GUID string is always wrapped (e.g., with braces), but in some IFC exports that wrapper isn’t present—so the slice trims valid characters.\n\nCode chunk which I believe is the culprit (line 121 in ifc2json5a.py):\n`for entity in self.ifcModel.by_type('IfcObjectDefinition'):\n self.rootObjects[entity.id()] = guid.split(\n guid.expand(entity.GlobalId)\n )[1:-1]`","author":{"url":"https://github.com/JuanCarlos3","@type":"Person","name":"JuanCarlos3"},"datePublished":"2026-02-15T18:19:29Z","url":"https://github.com/IFCJSON-Team/IFC2JSON_python/issues/7"}
| 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:4c4e1c00-077c-0e41-6495-978f4933c92a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A598:9F575:271935:343425:6B048532 |
| html-safe-nonce | 995ed34a66ad55a213d0e377bb7686774f42aec51566165ab217b073c95d9492 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTk4OjlGNTc1OjI3MTkzNTozNDM0MjU6NkIwNDg1MzIiLCJ2aXNpdG9yX2lkIjoiMTc0ODQzNzg2MDM2Njk3NjMwNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 0dfbf34a6d99fa20a875dd848a0f9bb85c1698e181968f64dc9321feddee0176 |
| hovercard-subject-tag | issue:3944622470 |
| 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/IFCJSON-Team/IFC2JSON_python/7/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ada14f8e99b3694995bd4476e9aa36ba17505b9e4682443a9f05fb8b60dc5316/IFCJSON-Team/IFC2JSON_python/issues/7 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ada14f8e99b3694995bd4476e9aa36ba17505b9e4682443a9f05fb8b60dc5316/IFCJSON-Team/IFC2JSON_python/issues/7 |
| og:image:alt | For example, the GUID in the IFC is: 157c866c-9c08-4348-a0ed-4d57cd66c9e2 …but in the converted JSON it appears as: 57c866c-9c08-4348-a0ed-4d57cd66c9e GUID in IFC editor: GUID in converted JSON: "r... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | JuanCarlos3 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1d5c152376e38b7d2e37f3d5179be29a73bee93b85110da28a4eebe1159cdc70 |
| turbo-cache-control | no-preview |
| go-import | github.com/IFCJSON-Team/IFC2JSON_python git https://github.com/IFCJSON-Team/IFC2JSON_python.git |
| octolytics-dimension-user_id | 63072598 |
| octolytics-dimension-user_login | IFCJSON-Team |
| octolytics-dimension-repository_id | 259654317 |
| octolytics-dimension-repository_nwo | IFCJSON-Team/IFC2JSON_python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | true |
| octolytics-dimension-repository_parent_id | 259651768 |
| octolytics-dimension-repository_parent_nwo | BIM-Tools/IFC2JSON_python |
| octolytics-dimension-repository_network_root_id | 259651768 |
| octolytics-dimension-repository_network_root_nwo | BIM-Tools/IFC2JSON_python |
| 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 | f5017e8ff4ea25a8011fcf0f2a0e430c60dc86c8 |
| 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