group_vias#

Layout.group_vias(layer, max_grouping_distance='100um', persistent_vias=False, group_by_proximity=True, 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.

max_grouping_distanceValueLike

Maximum distance between via primitives in a via group .

persistent_viasbool

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

group_by_proximitybool

If True, via primitives are grouped by proximity (relative position to each other). If False, via primitives are grouped by range (any via primitives within the specified maximum grouping distance of each other are grouped)

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.