Only list nets with zones

This commit is contained in:
Arjan Mels
2022-06-26 13:14:17 +02:00
parent e53ef69148
commit ba61bcd3bc

View File

@ -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: