NXOpen.UF.Unit.ConvertValue

Unit.ConvertValue()

Refer to UF_UNIT_convert_value for documentation.

Signature: ConvertValue(initialValue, initialUnits, newUnits)

Parameters:
  • initialValue (float) – The value to be converted
  • initialUnits (Tag) – The tag of the unit type of the initial value
  • newUnits (Tag) – The tag of the unit type of the new units
Returns:

The value expressed in the new units

Return type:

float

License requirements: None