kiplot
kiplot copied to clipboard
Check for unfilled areas
trafficstars
Hello, In the example configuration file I have noticed the following
# one day....
check_zone_fills: false
run_drc: false
While running DRC is currently not possible, it is possible to check the status of the fill areas. This is a snippet from my signoff script. It is something I have developed without being aware of KiPlot and it is tightly coupled with my design flow (hence not publicly shared), however I thought it would not hurt to contribute in the form of a snippet to KiPlot.
I use this code to check for both unfilled areas and areas not associated to a net
# all zones
allZones = board.Zones()
numZones = len(allZones)
# keepout zones
keepoutZones = [x for x in allZones if x.GetIsKeepout()]
numKeepoutZones = len(keepoutZones)
# fill areas
fillAreas = [x for x in allZones if not x.GetIsKeepout()]
numFillAreas = len(fillAreas)
# fill areas not filled
unfilledAreas = [x for x in fillAreas if not x.IsFilled()]
numUnfilledAreas = len(unfilledAreas)
# fill areas not assigned to a net
unassignedAreas = [x for x in fillAreas if not x.GetNetname()]
numUnassignedAreas = len(unassignedAreas)
assignedNets = list(set([x.GetNetname() for x in fillAreas if x.GetNetname()]))
Hope this is useful
Kind Regards, nico
EDIT: forgot to sign
This fork implements the DRC: https://github.com/INTI-CMNB/kiplot