EAGLE Help

UL_INSTANCE


Data members

angle real (0, 90, 180 and 270)
gate UL_GATE
mirror int
name string (INSTANCE_NAME_LENGTH)
sheet int (0=unused, 1..99=sheet number)
value string (PART_VALUE_LENGTH)
x, y int (origin point)

Loop members

texts() UL_TEXT (see note)

Constants

INSTANCE_NAME_LENGTH max. recommended length of an instance name (used in formatted output only)
PART_VALUE_LENGTH max. recommended length of a part value (instances do not have a value of their own!)

See also UL_PART, UL_PINREF

Note

The texts() member only loops through the smashed texts of the instance. If the instance is not smashed, this loop will not be executed. To process all texts of an instance, you have to loop through the instance's own texts() member as well as the texts() member of the instance's gate's symbol.

Example

schematic(S) {
  S.parts(P) {
    printf("Part: %s\n", P.name);
    P.instances(I) {
      if (I.sheet != 0)
         printf("\t%s used on sheet %d\n", I.name, I.sheet);
      }
    }
  }

Index Copyright © 2005 CadSoft Computer GmbH