Via Object Properties

StartLayer

Get/Set the start layer of the via.

Example:

via.StartLayer = LayoutHost.GetLayerID(‘top’);

EndLayer

Get/Set the end layer for the via.

Example:

var layer = via.EndLayer;

X

Get/Set the x position for the via.

Example:

v1.X = v2.X;

Y

Get/Set the y position for the via.

Example:

v1.Y = v2.Y;

HoleDiameter

Get/Set the hole diameter for the via. A negative diameter turns off the diameter override and the value on the padstack definition is used.

Example:

v1.HoleDiameter = v2.HoleDiameter;

Rotation

Get/Set the via rotation. The rotation is in radians.

Example:

v1.Rotation = Math.PI/4;