API Reference > Namespaces > OdDmUtil Namespace > Functions > OdDmUtil::dimunit Function
OdDmUtil::dimunit Function
Syntax
C++
int TOOLKIT_EXPORT dimunit(int dimlunit, int dimfrac);

DbDimStyleTableRecord.h

Parameters 
Description 
int dimlunit 
[in] DIMLUNIT value.  
int dimfrac 
[in] DIMFRAC value. 

Returns the R14 DIMUNIT value corresponding to the specified DIMLUNIT and DIMFRAC values. 

 

The complete mapping is as follows: 

 

DIMFRAC 
DIMLUNIT 
DIMUNIT 

 

All other input combinations return 2.

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