group_vias#

Layout.group_vias(layer, tolerance='100um', persistent_vias=False, clustering_method=ViaClusteringMethod.PROXIMITY_CLUSTERING, check_containment=True)#

Create via groups from the primitives on the specified layers.

Parameters:
layerLayerLike or list of LayerLike

Layers containing the primitives to be grouped.

toleranceValueLike

The tolerance for the clustering algorithm. - PROXIMITY_CLUSTERING: threshold for the relative position of vias to each other. - RANGE_CLUSTERING: any via primitives within the toelrance of each other are grouped. - DENSITY_CLUSTERING: cluster according to density.

persistent_viasbool

Whether to preserve primitives during via group creation. If False primitives are deleted during via group creation.

clustering_methodViaClusteringMethod

The clustering method to use.

check_containmentbool

If True, the connectivity of via groups is checked and enforced to prevent short circuits in geometry connecting to the via group. If false, via primitives are grouped regardless of the connectivity of touching geometry.