C++
Acad::ErrorStatus acdbGetUnitsConversion( AcDb::UnitsValue from, AcDb::UnitsValue to, double& conversionFactor );
File
dbxutil.h
Description
Obtains the double value that represents the difference in scale between two AcDb::UnitsValue enumerations.
For example, if from is AcDb::kUnitsInches and to is AcDb::kMillimeters, the conversion factor returned is 25.4.
Returns eOk if successful. Returns eInvalidInput if either of the UnitsValue enums is invalid.
Parameters
Parameters | Description |
---|---|
from | Input AcDb::UnitsValue that the conversion factor converts from |
to | Input AcDb::UnitsValue that the conversion factor converts to |
conversionFactor | Output factor that converts values from from units to to units |