Mixed Units within Intelligent Text Strings
- Last UpdatedDec 09, 2025
- 1 minute read
The units used in intelligent text strings are determined by the UCOD attribute of the owning LAYE. However, it is possible to insert a ‘switch units’ code in the text string, which will cause all distances and bores which follow to be output in ‘alternate’ units, as defined below.
|
Layer Units |
Alternate Units |
|
UCOD INCH DECI |
MM |
|
UCOD INCH PDMS |
MM |
|
UCOD INCH US |
MM |
|
UCOD FINCH PDMS |
MM |
|
UCOD FINCH US |
MM |
|
UCOD MM |
INCH DECI |
|
UCOD CM |
INCH DECI |
|
UCOD 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())’
should be used. The units may be switched back to the standard units by a subsequent use of a %U code.