API Reference > Classes > OdIfcUnitConverter Class > OdIfcUnitConverter Methods > OdIfcUnitConverter::convertToSIUnit Method
OdIfcUnitConverter::convertToSIUnit Method
Syntax
C++
double convertToSIUnit(const OdAnsiString& unitType, double val) const;
Parameters 
Description 
const OdAnsiString& unitType 
[in] Type of unit to be converted.  
double val 
[in] Unit value.  

Returns a result of conversion.

Performs an attempt to convert specified unit to the SI unit.

unitType must belong to IfcUnitEnum of current schema.

Copyright (c) 2002-2020. Open Design Alliance. All rights reserved.