Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
OdDbDatabase::dimunit Method
Syntax
C++
int dimunit() const;

Returns the R14 DIMUNIT system variable of this database object.

The DIMLUNIT and DIMFRAC values will be converted to DIMUNIT. The complete mapping is as follows: 

 

DIMFRAC
DIMLUNIT
DIMUNIT
0
1
1
0
2
2
0
3
3
0
4
4
0
5
5
0
6
8
1
1
1
1
2
2
1
3
3
1
4
4
1
5
5
1
6
8
2
1
1
2
2
2
2
3
3
2
4
6
2
5
7
2
6
8

 

All other input combinations return 2.

Copyright © 2002-2022. Open Design Alliance All rights reserved.