Synopsis

PDX_MSGT iges_ConvertUnits(int units_in, int units_out, double *scale)

Purpose

Determine the scale factor needed to convert from the units in to units out.

Description

This routine will return the scale factor between input and output units that exist in the range 1 to 2 or 4 to 11. First determines scale factor to convert input units to inches. Then adjusts scale factor so it will convert to desired output units.

Input

units_in

Valid IGES measure system flag (range 1-2,4-11)

units_out

Valid IGES measure system flag (range 1-2,4-11)

Output

scale

Scale factor

Return

      IGES_INVALID_UNIT_FLAG
      .fi
    History
      27-May-93 EWY; Version 1.2.1
                     rewritten (courtesy of jwj)
      20-May-93 EWY; Version 1.2.1
                     Created - Borrowed from CADDS