C++
int dimunit( int dimlunit, int dimfrac );
File
dbdim.h
Description
The Release 14 dimension variable DIMUNIT has been separated into two new variables DIMLUNIT and DIMFRAC. This function returns the correct DIMUNIT value given values for DIMLUNIT and DIMFRAC. Here is the complete mapping:
dimlunit = 1, 2, 3, 4, 5, 6 dimunit = 1, 2, 3, 4, 5, 8, // dimfrac = 0 1, 2, 3, 4, 5, 8, // dimfrac = 1 1, 2, 3, 6, 7, 8 // dimfrac = 2 All other inputs return 2.
Parameters
Parameters | Description |
---|---|
dimlunit | Value for DIMLUNIT |
dimfrac | Value for DIMFRAC |