class | UL_CLASS |
name | string (NET_NAME_LENGTH) |
Loop members
pinrefs() | UL_PINREF (see note) |
segments() | UL_SEGMENT (see note) |
Constants
NET_NAME_LENGTH | max. recommended length of a net name (used in formatted output only) |
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) { S.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 © 2005 CadSoft Computer GmbH |