EAGLE Help

UL_ELEMENT


Data members

angle real (0.0...359.9)
mirror int
name string (ELEMENT_NAME_LENGTH)
package UL_PACKAGE
spin int
value string (ELEMENT_VALUE_LENGTH)
x, y int (origin point)

Loop members

texts() UL_TEXT (see note)

Constants

ELEMENT_NAME_LENGTH max. recommended length of an element name (used in formatted output only)
ELEMENT_VALUE_LENGTH max. recommended length of an element value (used in formatted output only)

See also UL_BOARD, UL_CONTACTREF

Note

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

angle defines how many degrees the element is rotated counterclockwise around its origin.

Example

board(B) {
  B.elements(E) {
    printf("Element: %s, (%d %d), Package=%s\n",
           E.name, E.x, E.y, E.package.name);
    }
  }

Index Copyright © 2005 CadSoft Computer GmbH