Via Object Methods
ClearLayerMapping(fp_layer)
Clears the mapping between a footprint layer and a layer in the padstack definition.
Parameters:
Example:
ClearLayerMappings
Clears the mapping between all footprint and padstack definition layers.
Example:
Copy()
Create and return a copy of the via.
Example:
DefaultLayerMapping
Reset the mapping between all footprint and padstack definition layers to the default mapping.
Example:
MirrorX(x)
Mirrors the via position about the specified X value (Y value is unchanged; an X value falling on this line is unchanged).
Parameters:
Example:
MirrorY(y)
Mirrors the via position about the specified Y value (X values are unchanged; a Y value falling on this line is unchanged).
Parameters:
Example:
MoveBy(dx, dy)
Translates the via by the specified offset.
Parameters:
Example:
MoveTo(x, y)
Moves the via to the specified location; useful for rectangles, circles and arcs (the center point is moved)
Example:
Rotate(x, y, angle)
Rotates the via counter-clockwise about the specified location by the angle specified (in radians).
Parameters:
Example:
Scale(x, y, factor)
Scales the via position about the specified location by the factor specified.
Parameters:
Example:
SetLayers(start_layer, end_layer)
Sets the via layer range
Parameters:
Example:
SetLayerMapping(fp_layer, ps_layer, pad_type);
Creates or adjusts the mapping between a footprint layer and the padstack definition layer.
Parameters:
Example: