API Reference > OdDb Classes > OdDbDatabase Class > OdDbDatabase Methods > OdDbDatabase::dimunit Method
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 

 

All other input combinations return 2.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.