name | string (NET_NAME_LENGTH) |
Loop members
pinrefs() | UL_PINREF (see Note) |
segments() | UL_SEGMENT (see Note) |
Constants
NET_NAME_LENGTH | max. length of a net name |
See also UL_SHEET, UL_SCHEMATIC
Note
The pinrefs() loop member can only be used if the net is in a
schematic context.
The segments() loop member can only be used if the net is in a
sheet context.
Example
schematic(S) {
S.nets(N) {
printf("Net: %s\n", N.name);
// N.segments(SEG) will NOT work here!
}
}
schematic(S) {
SCH.sheets(SH) {
SH.nets(N) {
printf("Net: %s\n", N.name);
N.segments(SEG) {
SEG.wires(W) {
printf("\tWire: (%d %d) (%d %d)\n",
W.x1, W.y1, W.x2, W.y2);
}
}
}
}
}
Index | Copyright © 1999 CadSoft Computer GmbH |