snap_vias#

Layout.snap_vias(layer, via_snapping_tol=3, prim_snapping_tol='0.05um', snap_by_area_factor=True, remove_dangling_vias=True)#

Snap vias on the specified layer to touching geometry.

Parameters:
layerstr or Layer

Layer containing the vias to be snapped.

via_snapping_tolValueLike

Tolerance for snapping vias. If snap_by_area_factor is True, this value should not have a unit.

prim_snapping_tolValueLike

Tolerance for snapping primitives.

snap_by_area_factorbool

If True, the via snapping tolerance is a factor of the surface area of the via. If False, the via snapping tolerance is treated as an absolute distance.

remove_dangling_viasbool

If True, vias not connected to any geometry are removed.