|
|
C_GetUnitsConversionFactor |
C_GetUnitsConversionFactor calculates the scaling factor required to convert between a value in the model unit system and the SI unit system.
void C_GetUnitsConversionFactor(
);
The handle of an object. The conversion factor is calculated using the units of the model that owns this object.
A string which defines the units of the value to be converted. The string is made up of zero or more fundamental components, separated by "." or "/". The fundamental components are of the form "<base_unit>^N", where <base_unit> denotes the physical quantity, e.g. length, mass, etc., and $N$ is the exponent. If the exponent is omitted, then its value is taken to be 1.
The possible values for the base unit are:
"LL": length"MM": mass"TT": time"FF": force"$S": stress or pressure"$E": energy"$P": powerThe following examples demonstrate how to specify some commonly used units:
"LL^2": area"FF.LL": moment"LL.TT^-1": velocity"MM/LL^3": density"FF/LL^2": stress or pressure, equivalent to "$S"Points to a variable in which the conversion factor is returned. Multiply by this conversion factor to convert a value from SI units into model units. Divide by this conversion factor to convert a value from model units into SI units.
Points to a variable in which the status result for the function call will be returned.
The Unicode function name is C_GetUnitsConversionFactorW and the ANSI function name is C_GetUnitsConversionFactorA.