...
| ||||||
For example, the road unit system defined above can be used in US Highway projects. These unit systems can be added, removed, or modified, except for the 'Internal' unit system. This is because, as the code is executed, it converts all unit systems into a single unit system (internal unit). All other unit systems (Display Units) are units of parameters that the end user sees. As the code runs, all the unit systems that the user sees are converted to the Internal unit systemThe internal unit system, also known as the working unit system or modeling unit system, is a standardized set of units that the object uses for performing calculations, simulations, and other internal processes. The internal unit system is primarily used for accurate and efficient computation within the library. It helps avoid rounding errors, improves precision, and ensures consistency in calculations across various operations. The display unit system, on the other hand, is the system of units in which measurements are presented and visualized to the user. These units are familiar and relatable to the user's real-world context. For instance, in a CAD, the display unit for length might be set to feet or centimeters. However for the above object, the internal calculations will always be in inches. The purpose of the display unit system is to provide a user-friendly interface that aligns with users' expectations and makes it easier for them to interpret and communicate measurements. It allows users to work in units they are comfortable with, even if the internal calculations are being done in a different unit system. In summary, the internal unit system is the behind-the-scenes system used for calculations within the software, optimizing accuracy and efficiency, while the display unit system is the user-facing representation that ensures measurements are presented in a way that is meaningful and intuitive to users. | ||||||
As stated above, the unit systems for the two parameters X1 and X2 are different. The end user sees this as X1=1000 yards and X2=1 mile, and inputs these values accordingly. | ||||||
The entire process is carried out using the Internal unit category. In this example, since the Internal unit system, with a Unit Type of Length, uses millimeters, X1=36000 inches and X2=63360 inches are converted to the units that the user wants to view. |
...