Title: IfcPatch ConvertLengthUnit recipe doesn't convert IfcCurveSegment.SegmentStart and SegmentLength · Issue #5656 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: IfcPatch ConvertLengthUnit recipe doesn't convert IfcCurveSegment.SegmentStart and SegmentLength · Issue #5656 · IfcOpenShell/IfcOpenShell
X Title: IfcPatch ConvertLengthUnit recipe doesn't convert IfcCurveSegment.SegmentStart and SegmentLength · Issue #5656 · IfcOpenShell/IfcOpenShell
Description: I am trying to use IfcPatch ConvertLengthUnit recipe to convert the files in https://github.com/bSI-RailwayRoom/IFC-Rail-Unit-Test-Reference-Code/tree/master/alignment_testset/IFC-WithGeneratedGeometry to FOOT units. Everything works gre...
Open Graph Description: I am trying to use IfcPatch ConvertLengthUnit recipe to convert the files in https://github.com/bSI-RailwayRoom/IFC-Rail-Unit-Test-Reference-Code/tree/master/alignment_testset/IFC-WithGeneratedGeom...
X Description: I am trying to use IfcPatch ConvertLengthUnit recipe to convert the files in https://github.com/bSI-RailwayRoom/IFC-Rail-Unit-Test-Reference-Code/tree/master/alignment_testset/IFC-WithGeneratedGeom...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/5656
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"IfcPatch ConvertLengthUnit recipe doesn't convert IfcCurveSegment.SegmentStart and SegmentLength","articleBody":"I am trying to use IfcPatch ConvertLengthUnit recipe to convert the files in https://github.com/bSI-RailwayRoom/IFC-Rail-Unit-Test-Reference-Code/tree/master/alignment_testset/IFC-WithGeneratedGeometry to FOOT units.\r\n\r\nEverything works great except for the SegmentStart and SegmentLength attributes of IfcCurveSegment.\r\n\r\nThis seems like a good \"beginner\" problem to solve, so I'm looking for some guidance on how to approach the problem and develop a solution.\r\n\r\nIt looks like the work is done in `ifcopenshell.util.unit.convert_file_length_units` which calls \r\n\r\nhttps://github.com/IfcOpenShell/IfcOpenShell/blob/3d4988349af0c0ce11591d2482b58c999398728e/src/ifcopenshell-python/ifcopenshell/util/unit.py#L827-L834\r\n\r\nFor one of the files I'm trying to convert the SegmentLength attribute is IFCLENGTHMEASURE(100.0):\r\n\r\n> #36 = IFCCURVESEGMENT(.CONTINUOUS., #42, IFCLENGTHMEASURE(0.), IFCLENGTHMEASURE(100.), #45);\r\n\r\nIt seems like the IFCLENGTHMEASURE should be converted, but it doesn't. Perhaps it has to do with mixed case versus all upper case text.\r\n\r\nI would like guidance on how to solve this myself. I am willing to get onto OSArch for a screen share if needed.\r\n\r\n","author":{"url":"https://github.com/RickBrice","@type":"Person","name":"RickBrice"},"datePublished":"2024-10-29T18:09:49Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/5656"}
| 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:d297d280-2343-bcb5-3ae0-0fd22cfabb84 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C834:245D5D:147FBD:1B6014:6B048140 |
| html-safe-nonce | 321af273c4ff4d27399a19a2a1e8a0847fbe8199594e8d435b82c7c95ea58c75 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDODM0OjI0NUQ1RDoxNDdGQkQ6MUI2MDE0OjZCMDQ4MTQwIiwidmlzaXRvcl9pZCI6Ijg2NzUxMTgyOTkzNzk2OTU5MzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 709231f155478d154152b15cb49995b7b199f5555b313efa41947392b194f967 |
| hovercard-subject-tag | issue:2621997889 |
| 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/5656/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8fae816883b345cdc6aaaf6f5ad3fac581da7c8e8be58822003ccecd392370fa/IfcOpenShell/IfcOpenShell/issues/5656 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8fae816883b345cdc6aaaf6f5ad3fac581da7c8e8be58822003ccecd392370fa/IfcOpenShell/IfcOpenShell/issues/5656 |
| og:image:alt | I am trying to use IfcPatch ConvertLengthUnit recipe to convert the files in https://github.com/bSI-RailwayRoom/IFC-Rail-Unit-Test-Reference-Code/tree/master/alignment_testset/IFC-WithGeneratedGeom... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | RickBrice |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0366ddfb372682a32e92a5d86155cb08fa83e5bbe79953a968789f2f7e24c511 |
| 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 | ed3f2e01f6b7672780c586c8af0e72726374d7b6 |
| 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