You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open Settings dialog and under General Tab select Unit System US Survey
Notice in DevTools console an exception is shown
The Model tree is no longer display in the Models widget
iTwin.js Version 4.5.1
The text was updated successfully, but these errors were encountered:
wilmaier
changed the title
Exception when setting unit system to US Survey - misssing CUB_US_SURVEY_FT
Exception when setting unit system to US Survey - missing CUB_US_SURVEY_FT
Apr 24, 2024
The code needs to either check schema version before creating this formatter or needs to wrap in a try/catch. Remember very old iModels will not even have a units schema because units were hard coded in EC 3.1 ECDb profile 4.0.0.1.
There are several code paths in addition to the one in the stack above that get the default format for a unit system then load it. We could handle in loadFormatAndParserSpec but that would leave us with no format, maybe the correct answer is to fall back on the hard coded unit system that is used if we find an iModel that has a 4.0.0.1 ECDb profile and has no units schema at all.
When setting the unit system to US Survey in pineapple viewer, we see an uncaught exception:
Open following iModel (likely happens for any iModel):
https://qa-review-eus.itwin.bentley.com/context/8b3d0653-02b5-4a76-832e-7c16ed50ff21/imodel/b9bf7a2d-bf2e-4d3f-b127-90c8029a855e?changesetid=308791f67a9c5ece81a1c792b3ab3cf1ab584b47&it3mode
Open Settings dialog and under General Tab select Unit System US Survey
Notice in DevTools console an exception is shown
The Model tree is no longer display in the Models widget
The text was updated successfully, but these errors were encountered: