Add query_zones tool for auditing copper pours (#174)

query_traces silently omits PCB_ZONE_T objects, so layer-usage audits
miss power planes and GND pours entirely. query_zones complements it by
iterating board.Zones() and returning each zone's net, layers, priority,
fill state, min thickness, bounding box, and filled area, with the same
net/layer/boundingBox filter surface as query_traces.
This commit is contained in:
kevargaso
2026-05-18 13:40:18 -05:00
committed by GitHub
parent 4e845f24ce
commit 40d6d6bba1
5 changed files with 182 additions and 0 deletions

View File

@@ -368,6 +368,7 @@ class KiCADInterface:
"add_via": self.routing_commands.add_via,
"delete_trace": self.routing_commands.delete_trace,
"query_traces": self.routing_commands.query_traces,
"query_zones": self.routing_commands.query_zones,
"modify_trace": self.routing_commands.modify_trace,
"copy_routing_pattern": self.routing_commands.copy_routing_pattern,
"get_nets_list": self.routing_commands.get_nets_list,