From b19d341daf1639179022f8dc7097ced2e041904d Mon Sep 17 00:00:00 2001 From: Tobias Welz Date: Thu, 23 Apr 2026 14:04:21 +0200 Subject: [PATCH] feat(routing): support '*' wildcard in delete_trace net_name Passing net_name='*' now deletes all tracks on the board (respecting the include_vias flag). Useful for wiping a test layout before re-routing without having to iterate every net by name. --- python/commands/routing.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/commands/routing.py b/python/commands/routing.py index 2ffa538..6b701c5 100644 --- a/python/commands/routing.py +++ b/python/commands/routing.py @@ -450,11 +450,11 @@ class RoutingCommands: "errorDetails": "One of traceUuid, position, or net must be provided", } - # Delete by net name (bulk delete) + # Delete by net name (bulk delete), use "*" to delete all tracks if net_name: tracks_to_remove = [] for track in list(self.board.Tracks()): - if track.GetNetname() != net_name: + if net_name != "*" and track.GetNetname() != net_name: continue # Skip vias if not requested