UL_SEGMENT

Loop members

   
junctions() UL_JUNCTION (see note)
labels() UL_LABEL
pinrefs() UL_PINREF (see note)
portrefs() UL_PORTREF
texts() UL_TEXT (deprecated, see note)
wires() UL_WIRE

See also UL_BUS, UL_NET

Note

The junctions() and pinrefs() loop members are only available for net segments.

The texts() loop member was used in older EAGLE versions to loop through the labels of a segment, and is only present for compatibility. It will not deliver the text of cross-reference labels at the correct position. Use the labels() loop member to access a segment's labels.

Example

schematic(SCH) {
  SCH.sheets(SH) {
    printf("Sheet: %d\n", SH.number);
    SH.nets(N) {
      printf("\tNet: %s\n", N.name);
      N.segments(SEG) {
        SEG.pinrefs(P) {
          printf("connected to: %s, %s, %s\n",
                 P.part.name, P.instance.name, P.pin.name);
          }
        }
      }
    }
  }