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] A string that contains the type of the unit to be converted.  
double val 
[in] A unit value.  

A double value that contains the converted value of the specified unit type.

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

The unit type value must belong to the IfcUnitEnum of the current schema.

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