Only list nets with zones
This commit is contained in:
@ -26,9 +26,9 @@ import os
|
|||||||
|
|
||||||
|
|
||||||
def PopulateNets(anet, dlg):
|
def PopulateNets(anet, dlg):
|
||||||
nets = pcbnew.GetBoard().GetNetsByName()
|
zones = pcbnew.GetBoard().Zones()
|
||||||
for netname, net in nets.items():
|
for zone in zones:
|
||||||
netname = net.GetNetname()
|
netname = zone.GetNetname()
|
||||||
if netname is not None and netname != "":
|
if netname is not None and netname != "":
|
||||||
dlg.m_cbNet.Append(netname)
|
dlg.m_cbNet.Append(netname)
|
||||||
if anet is not None:
|
if anet is not None:
|
||||||
|
Reference in New Issue
Block a user