From ba61bcd3bcb0ed7a1d93673ab1107c9ff056346d Mon Sep 17 00:00:00 2001 From: Arjan Mels Date: Sun, 26 Jun 2022 13:14:17 +0200 Subject: [PATCH] Only list nets with zones --- ViaStitching/FillAreaAction.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ViaStitching/FillAreaAction.py b/ViaStitching/FillAreaAction.py index aaabe6b..a5cc6d7 100644 --- a/ViaStitching/FillAreaAction.py +++ b/ViaStitching/FillAreaAction.py @@ -26,9 +26,9 @@ import os def PopulateNets(anet, dlg): - nets = pcbnew.GetBoard().GetNetsByName() - for netname, net in nets.items(): - netname = net.GetNetname() + zones = pcbnew.GetBoard().Zones() + for zone in zones: + netname = zone.GetNetname() if netname is not None and netname != "": dlg.m_cbNet.Append(netname) if anet is not None: