name | string (CONTACT_NAME_LENGTH) |
pad | UL_PAD |
signal | string |
smd | UL_SMD |
x, y | int (center point, see note) |
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
CONTACT_NAME_LENGTH | max. recommended length of a contact name (used in formatted output only) |
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:
library(L) {
L.footprints(FPT) {
FPT.contacts(C) {
printf("Contact: '%s', (%f %f)\n",
C.name, u2mm(C.x), u2mm(C.y));
}
}
}