diameter[layer] | int |
drill | int |
drillsymbol | int |
end | int |
flags | int (VIA_FLAG_...) |
shape[layer] | int (VIA_SHAPE_...) |
start | int |
x, y | int (center point) |
Constants
VIA_FLAG_STOP | always generate stop mask |
VIA_SHAPE_SQUARE | square |
VIA_SHAPE_ROUND | round |
VIA_SHAPE_OCTAGON | octagon |
VIA_SHAPE_ANNULUS | annulus |
VIA_SHAPE_THERMAL | thermal |
See also UL_SIGNAL
Note
The diameter and shape of the via depend on the layer for which they shall be retrieved, because they may be different in each layer depending on the Design Rules. If one of the layers LAYER_TOP...LAYER_BOTTOM, LAYER_TSTOP or LAYER_BSTOP is given as the index to the diameter or shape data member, the resulting value will be calculated according to the Design Rules. If LAYER_VIAS is given, the raw value as defined in the via will be returned.
Note that diameter and shape will always return the diameter or shape that a via would have in the given layer, even if that particular via doesn't cover that layer (or if that layer isn't used in the layer setup at all).
start and end return the layer numbers in which that via starts and ends. The value of start will always be less than that of end.
drillsymbol returns the number of the drill symbol that has been assigned to this drill diameter (see the manual for a list of defined drill symbols). A value of 0 means that no symbol has been assigned to this drill diameter.
Example
board(B) { B.signals(S) { S.vias(V) { printf("Via: (%d %d)\n", V.x, V.y); } } }
Index | Copyright © 2005 CadSoft Computer GmbH |