Category Creo Parametric fundamentals, Object ProUnit

Function ProUnitConversionCalculate


Description
This function calculates conversion factors from one ProUnititem to another; these can belong to the same model or two different models.
Replacement in Object TOOLKIT: wfcWUnit::CalculateUnitConversion
Synopsis
#include <ProMdlUnits.h>
ProErrorProUnitConversionCalculate(
ProUnititem * unit_from
/* (In)
The unit from which to convert.
*/
ProUnititem * unit_to
/* (In)
The unit to convert to.
*/
ProUnitConversion * conversion
/* (Out)
The conversion factor. If it is NULL, the function will just check if unit conversion is possible.
*/
)
Returns
PRO_TK_NO_ERRORThe function succeeded.
PRO_TK_BAD_INPUTSOne or more arguments was invalid.
PRO_TK_GENERAL_ERRORConversion failed.

Manual References:

  1. Core: Solids, Parts, and Materials: Solid Units
  2. Core: Solids, Parts, and Materials: Solid Units