de_change_units()

Changes the units and precision of the current design and resets default design units. Returns: none.

Syntax:

de_change_units(units, prec, incr);

where

units is an integer, 1-7, where:

  • 1 = mil
  • 2 = inches
  • 3 = microns
  • 4 = mm
  • 5 = cm
  • 6 = meter
  • 7 = feet

prec sets the precision of the design, within the range of 1 - 10. This is the exponent of 10 representing the number of data base units per user units. For example: 1000 data base units to a user unit is represented as precision = 3.

incr sets the increment of the design as a multiple of data base to user units. For example: 2000 data base units to a user unit is set with precision = 3, increment = 2. Data base units to a user unit = increment • 10 (precision).

Example:
de_change_units(2, 3, 1);
//change data base units per inch to 1000

Where Used:

Schematic, Layout

 

Privacy Statement  | Terms of Use  | Legal | Contact Us  | © Agilent 2000-2008 

Contents
Additional Resources