Add Via Net Assign feature

Iterates all vias in the active selection and assigns each one to the
net of the nearest copper item (track or pad) on the board. Intended
for re-using via layouts after copying traces to a new net.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-27 19:16:36 +00:00
parent 70cb9d1a93
commit d8eeb3425a
2 changed files with 124 additions and 0 deletions

View File

@@ -2,6 +2,8 @@ import pcbnew
import wx
import traceback
from .via_net_assign import Via_Net_Assign_Action
# ---------------------------------------------------------------------------
# Board helpers
@@ -241,3 +243,4 @@ class Layout_Replicator_Action(pcbnew.ActionPlugin):
dlg.Destroy()
Layout_Replicator_Action().register()
Via_Net_Assign_Action().register()