EAGLE Help

UL_PACKAGE


Data members

area UL_AREA
description string
headline string
library string
name string (PACKAGE_NAME_LENGTH)

Loop members

circles() UL_CIRCLE
contacts() UL_CONTACT
holes() UL_HOLE
polygons() UL_POLYGON
rectangles() UL_RECTANGLE
texts() UL_TEXT (see note)
wires() UL_WIRE

Constants

PACKAGE_NAME_LENGTH max. recommended length of a package name (used in formatted output only)

See also UL_DEVICE, UL_ELEMENT, UL_LIBRARY

Note

The description member returns the complete descriptive text as defined with the DESCRIPTION command, while the headline member returns only the first line of the description, without any Rich Text tags. When using the description text keep in mind that it may contain newline characters ('\n').

If the UL_PACKAGE is derived from a UL_ELEMENT, the texts() member only loops through the non-smashed texts of that element.

Example

library(L) {
  L.packages(PAC) {
    printf("Package: %s\n", PAC.name);
    PAC.contacts(C) {
      if (C.pad)
         printf("\tPad: %s, (%d %d)\n",
                 C.name, C.pad.x, C.pad.y);
      else if (C.smd)
         printf("\tSmd: %s, (%d %d)\n",
                 C.name, C.smd.x, C.smd.y);
      }
    }
  }
board(B) {
  B.elements(E) {
    printf("Element: %s, Package: %s\n", E.name, E.package.name);
    }
  }

Index Copyright © 2005 CadSoft Computer GmbH