UL_CONTACT

Data members

   
name string (CONTACT_NAME_LENGTH)
pad UL_PAD
signal string
smd UL_SMD
x, y int (center point, see note)

Loop members

   
polyshapes() UL_POLYSHAPE (of arbitrary pad shapes)
wires() UL_WIRE (of arbitrary pad shapes)

See also UL_FOOTPRINT, UL_PAD, UL_SMD, UL_CONTACTREF, UL_PINREF

Constants

   
CONTACT_NAME_LENGTH max. recommended length of a contact name (used in formatted output only)

Notes

The signal data member returns the signal this contact is connected to (only available in a board context).

The coordinates (x, y) of the contact depend on the context in which it is called:

Example

library(L) {
  L.footprints(FPT) {
    FPT.contacts(C) {
      printf("Contact: '%s', (%f %f)\n",
             C.name, u2mm(C.x), u2mm(C.y));
      }
    }
  }