SnapViasOnLayer (IC Editor)

Forces the edges of selected vias to snap to alignment on the target layer.

UI Access From the Layers window, right-click the target layer and select Snap Vias.
Parameters
Name Type Description

<Layer_Name>

String

Name of the target layer.

<Parameters> Array

Structured array containing these parameters in order:

  • <NAME:Setting Contents>
  • <IsFactorBased>
  • <SnapTol>
  • <AlignTol>
  • <RemoveDanglingVias>
NAME:Setting Contents Array Required first parameter which must have the specified value (i.e., "Setting Contents").
IsFactorBased Array True selected via groups are snapped by a maximum area equal to the tolerance (i.e., <Snaptol> and <AlignTol>) times the surface area of the via group.
False selected via groups are snapped by a maximum distance of the tolerance.
SnapTol Array Vias at or within this tolerance are snapped.
AlignTol Array Vias at or within this tolerance are aligned.
RemoveDanglingVias Array True removes vias from selection that have no connectivity or have connectivity only to a single layer.
False deactivates this check.
Return Value

None.

 

Python Syntax SnapVias(<Layer_Name>, [<NAME:Setting Contents>, <IsFactorBased>, <SnapTol>, <AlignTol>, <RemoveDanglingVias>])
Python Example

oEditor.SnapViasOnLayer(

["Trace",

"NAME:Setting Contents",

"IsFactorBased:=", False,

"snapTol:=", "5mm",

"AlignTol:=", "5mm",

"removeDanglingVias:=", True

])

 

VB Syntax SnapVias <Layer_Name>, (<NAME:Setting Contents>, <IsFactorBased>, <SnapTol>, <AlignTol>, <RemoveDanglingVias>)
VB Example

oEditor.SnapViasOnLayer "Trace", Array("NAME:Setting Contents", "IsFactorBased:=", False, "snapTol:=", "5mm", "AlignTol:=", "5mm", "removeDanglingVias:=", True)