kicad-developers team mailing list archive
Mailing list archive
Filling Zones with the Kicad 5 python API
We use the kicad python library to CAM boards for manufacturing. One of
the big issues we see in customer uploads is they fail to fill zones before
saving the file, so we use this function:
# Kicad doesn't refresh ground pours automatically during plotting
# This can lead to unusual errors if minor adjustments were made,
# and the designer didn't manually refresh.
# This glorious function added thanks to Adam Wolf
for zone_index in xrange(0, self.board.GetAreaCount()):
zone = self.board.GetArea(zone_index)
if not zone.GetIsKeepout():
It looks like zone.BuildFilledSolidAreasPolygons has been removed in the
KiCAD 5 python API. Was it replaced with something else, or is there a new
way to do this?