Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
OdDmUtil::dimunit Function
Syntax
C++
int TOOLKIT_EXPORT dimunit(int dimlunit, int dimfrac);

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

 

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

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.

File: DbDimStyleTableRecord.h 

Namespace: OdDmUtil 

Module: API Reference 

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