ViaStitching 1.1: list available zones when target net has none, version in name
This commit is contained in:
1 parent
0a8e177d05
commit
46e744d886
2 files changed
+5
-2
No files matched your search
@@ -451,8 +451,11 @@ STEP = '-'
|
||||
wxPrint("Calculate placement areas")
|
||||
|
||||
zones = [zone for zone in self.pcb.Zones() if zone.GetNetname() == self.netname]
|
||||
wxPrint("Found {} zones with netname '{}'".format(len(zones), self.netname))
|
||||
if not zones:
|
||||
wxPrint("No areas to fill")
|
||||
wxPrint("ERROR: No zones found with netname '{}'. Available zones:".format(self.netname))
|
||||
for i, zone in enumerate(self.pcb.Zones()):
|
||||
wxPrint(" Zone {}: netname='{}', layer={}".format(i, zone.GetNetname(), zone.GetLayerName()))
|
||||
return
|
||||
self.parent_area = zones[0]
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@ class FillAreaDialogEx(FillAreaDialog.FillAreaDialog):
|
||||
class FillAreaAction(pcbnew.ActionPlugin):
|
||||
|
||||
def defaults(self):
|
||||
self.name = "Via Stitching Generator"
|
||||
self.name = "Via Stitching Generator 1.1"
|
||||
self.category = "Modify PCB"
|
||||
self.description = "Via Stitching for PCB Zone"
|
||||
self.icon_file_name = os.path.join(os.path.dirname(__file__), "./stitching-vias.png")
|
||||
|
||||
Reference in new issue
Block a user