Title: Bonsai/IfcOpenShell rewrites all float values · Issue #7696 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: Bonsai/IfcOpenShell rewrites all float values · Issue #7696 · IfcOpenShell/IfcOpenShell
X Title: Bonsai/IfcOpenShell rewrites all float values · Issue #7696 · IfcOpenShell/IfcOpenShell
Description: Bug Description This is a change from sometime in the last month (since 2026-01-13). If I open a file and save it, all the float values are rewritten: diff --git a/model.ifc b/model.ifc index fac1d2d..f013509 100644 --- a/model.ifc +++ b...
Open Graph Description: Bug Description This is a change from sometime in the last month (since 2026-01-13). If I open a file and save it, all the float values are rewritten: diff --git a/model.ifc b/model.ifc index fac1d...
X Description: Bug Description This is a change from sometime in the last month (since 2026-01-13). If I open a file and save it, all the float values are rewritten: diff --git a/model.ifc b/model.ifc index fac1d...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/7696
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Bonsai/IfcOpenShell rewrites all float values","articleBody":"### Bug Description\n\nThis is a change from sometime in the last month (since 2026-01-13). If I open a file and save it, all the float values are rewritten:\n\n``` diff\ndiff --git a/model.ifc b/model.ifc\nindex fac1d2d..f013509 100644\n--- a/model.ifc\n+++ b/model.ifc\n@@ -1,7 +1,7 @@\n ISO-10303-21;\n HEADER;\n FILE_DESCRIPTION(('ViewDefinition[DesignTransferView]'),'2;1');\n-FILE_NAME('model.ifc','2026-01-17T11:28:20+00:00',(''),(''),'IfcOpenShell 0.0.0','Bonsai 0.0.0','Nobody');\n+FILE_NAME('model.ifc','2026-02-20T14:42:55+00:00',(''),(''),'IfcOpenShell 0.0.0','Bonsai 0.0.0','Nobody');\n FILE_SCHEMA(('IFC4'));\n ENDSEC;\n DATA;\n@@ -11,14 +11,14 @@ DATA;\n #4=IFCSIUNIT(*,.VOLUMEUNIT.,$,.CUBIC_METRE.);\n #5=IFCDIMENSIONALEXPONENTS(0,0,0,0,0,0,0);\n #6=IFCSIUNIT(*,.PLANEANGLEUNIT.,$,.RADIAN.);\n-#7=IFCMEASUREWITHUNIT(IFCREAL(0.0174532925199433),#6);\n+#7=IFCMEASUREWITHUNIT(IFCREAL(0.017453292519943299),#6);\n #8=IFCCONVERSIONBASEDUNIT(#5,.PLANEANGLEUNIT.,'degree',#7);\n #9=IFCUNITASSIGNMENT((#8,#3,#4,#2));\n #10=IFCCARTESIANPOINT((0.,0.,0.));\n #11=IFCDIRECTION((0.,0.,1.));\n #12=IFCDIRECTION((1.,0.,0.));\n #13=IFCAXIS2PLACEMENT3D(#10,#11,#12);\n-#14=IFCGEOMETRICREPRESENTATIONCONTEXT($,'Model',3,1.E-05,#13,$);\n+#14=IFCGEOMETRICREPRESENTATIONCONTEXT($,'Model',3,1.0000000000000001E-05,#13,$);\n #15=IFCGEOMETRICREPRESENTATIONSUBCONTEXT('Body','Model',*,*,*,*,#14,$,.MODEL_VIEW.,$);\n #16=IFCGEOMETRICREPRESENTATIONSUBCONTEXT('Axis','Model',*,*,*,*,#14,$,.GRAPH_VIEW.,$);\n #17=IFCGEOMETRICREPRESENTATIONSUBCONTEXT('Box','Model',*,*,*,*,#14,$,.MODEL_VIEW.,$);\n@@ -280,7 +280,7 @@ DATA;\n #291=IFCPRODUCTDEFINITIONSHAPE($,$,(#290));\n #302=IFCSURFACESTYLESHADING(#303,$);\n #303=IFCCOLOURRGB($,1.,1.,1.);\n-#304=IFCWINDOW('3CORL1INT0VvpSNwH9EBm$',$,'Window',$,$,#4101,#317,$,1.40699994564056,0.754000008106232,$,$,$);\n+#304=IFCWINDOW('3CORL1INT0VvpSNwH9EBm$',$,'Window',$,$,#4101,#317,$,1.40699994564056,0.75400000810623202,$,$,$);\n #310=IFCCARTESIANPOINT((0.,0.,0.));\n #311=IFCDIRECTION((1.,0.,0.));\n #312=IFCDIRECTION((0.,1.,0.));\n@@ -1530,9 +1530,9 @@ DATA;\n #2382=IFCMAPPEDITEM(#2374,#2381);\n #2383=IFCSHAPEREPRESENTATION(#15,'Body','MappedRepresentation',(#2382));\n #2384=IFCPRODUCTDEFINITIONSHAPE($,$,(#2383));\n-#2390=IFCCARTESIANPOINT((-0.00500060059130192,-2.62100028991699,2.40199995040894));\n+#2390=IFCCARTESIANPOINT((-0.0050006005913019198,-2.62100028991699,2.40199995040894));\n #2391=IFCDIRECTION((0.,0.,1.));\n-#2392=IFCDIRECTION((-4.37113882867379E-08,-1.,0.));\n+#2392=IFCDIRECTION((-4.3711388286737902E-08,-1.,0.));\n #2393=IFCAXIS2PLACEMENT3D(#2390,#2391,#2392);\n #2394=IFCLOCALPLACEMENT(#66,#2393);\n #2395=IFCPIPEFITTING('0oXUNt_Lr8kuKuYWFuUxiV',$,'PipeFitting',$,$,#2413,#2408,$,$);\n```\n\netc..\n\nThis is unexpected, as in the past entities would be written exactly as read. It also breaks merging with ifcmerge. Attached a file created with a 2026-01-13 snapshot that shows the problem when opened/saved.\n\n### Attachments\n\n[model.ifc.zip](https://github.com/user-attachments/files/25445422/model.ifc.zip)\n\n### Debug and Error Output\n\n```true\n\n```","author":{"url":"https://github.com/brunopostle","@type":"Person","name":"brunopostle"},"datePublished":"2026-02-20T15:29:12Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/7696"}
| 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:71a9f445-ddac-7524-bfee-70e20e947b51 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D0BC:3274DA:55FC4:773BF:6B04AA75 |
| html-safe-nonce | 99bcbdb1ca9f1cee0f2185d291ddd6224a52e0a0b5484b916a38ec35b213fb4e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMEJDOjMyNzREQTo1NUZDNDo3NzNCRjo2QjA0QUE3NSIsInZpc2l0b3JfaWQiOiI3ODkzODA5Nzk5MTUzMTAxNDI5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 39a3f7857457a2ab4db689828197322a3bb2923690e4b34a87a9adb37e9f72ee |
| hovercard-subject-tag | issue:3969112232 |
| 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/7696/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2eccfc5ef8d1daf0bc5a71f8b98d35e3874dae03c08a2c423e2908af4b1edc77/IfcOpenShell/IfcOpenShell/issues/7696 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2eccfc5ef8d1daf0bc5a71f8b98d35e3874dae03c08a2c423e2908af4b1edc77/IfcOpenShell/IfcOpenShell/issues/7696 |
| og:image:alt | Bug Description This is a change from sometime in the last month (since 2026-01-13). If I open a file and save it, all the float values are rewritten: diff --git a/model.ifc b/model.ifc index fac1d... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | brunopostle |
| hostname | github.com |
| expected-hostname | github.com |
| None | 188497a0f45a7aa8f7c866faa1950d1a7f8d82b59416adf549b222ad1d1dd19b |
| 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 | 557cfbac6cdb532730c95c90f2cefdc0c4128029 |
| 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