Mixed Units within Intelligent Text Strings
- Last UpdatedApr 27, 2023
- 1 minute read
The units used in intelligent text strings are determined by the UCOD attribute of the owning LAYE or appropriate Style. However, it is possible to insert a ‘switch units’ code in the text string, which causes all distances and bores that follow to be output in ‘alternate’ units.
|
Primary Units |
Default Alternate Units |
|
INCH DECI |
MM |
|
INCH AVEVA |
MM |
|
INCH US |
MM |
|
FINCH AVEVA |
MM |
|
FINCH US |
MM |
|
FT |
meter |
|
MM |
INCH DECI |
|
CM |
INCH DECI |
|
meter |
INCH DECI |
The ‘switch units’ code is %U so, for example, to generate a dimension in both Imperial and metric units, with the second value in brackets, the intelligent text string:
’#DIM() %U(#DIM())’
can be used. The units can be switched back to the standard units by a subsequent use of a %U code.