API Reference > Namespaces > OdDb Namespace > Structs, Records, Enums > OdDb::UnitsValue Enumeration
OdDb::UnitsValue Enumeration
Syntax
C++
enum UnitsValue { kUnitsUndefined = 0, kUnitsInches = 1, kUnitsFeet = 2, kUnitsMiles = 3, kUnitsMillimeters = 4, kUnitsCentimeters = 5, kUnitsMeters = 6, kUnitsKilometers = 7, kUnitsMicroinches = 8, kUnitsMils = 9, kUnitsYards = 10, kUnitsAngstroms = 11, kUnitsNanometers = 12, kUnitsMicrons = 13, kUnitsDecimeters = 14, kUnitsDekameters = 15, kUnitsHectometers = 16, kUnitsGigameters = 17, kUnitsAstronomical = 18, kUnitsLightYears = 19, kUnitsParsecs = 20, kUnitsUSSurveyFeet = 21, kUnitsUSSurveyInch = 22, kUnitsUSSurveyYard = 23, kUnitsUSSurveyMile = 24, kUnitsMax = kUnitsUSSurveyMile };

OdaDefs.h

Members 
Description 
kUnitsUndefined = 0 
Undefined 
kUnitsInches = 1 
Inches 
kUnitsFeet = 2 
Feet 
kUnitsMiles = 3 
Miles 
kUnitsMillimeters = 4 
Millimeters 
kUnitsCentimeters = 5 
Centimeters 
kUnitsMeters = 6 
Meters 
kUnitsKilometers = 7 
Kilometers 
kUnitsMicroinches = 8 
Microinches 
kUnitsMils = 9 
Mils 
kUnitsYards = 10 
Yards 
kUnitsAngstroms = 11 
Angstroms 
kUnitsNanometers = 12 
Nanometers 
kUnitsMicrons = 13 
Microns 
kUnitsDecimeters = 14 
Decimeters 
kUnitsDekameters = 15 
Dekameters 
kUnitsHectometers = 16 
Hectometers 
kUnitsGigameters = 17 
Gigameters 
kUnitsAstronomical = 18 
Astronomical 
kUnitsLightYears = 19 
Light years 
kUnitsParsecs = 20 
Parsecs 
kUnitsUSSurveyFeet = 21 
US Survey Feet 
kUnitsUSSurveyInch = 22 
US Survey Inch 
kUnitsUSSurveyYard = 23 
US Survey Yard 
kUnitsUSSurveyMile = 24 
US Survey Mile 

This enum is used in OdUtilAdds / Units formatter.

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