I’m writing a Python script to generate gerbers, drill files, BOM and position file from a layout. It’s similar in function to [1] but generates additional types of files for PCBA. In his comments for [1], John mentions he doesn’t know how to fill zones through the Python API. According to [2], this was impossible in 2015.
[3] teaches us how to get a list of zones in a board (zone=board.GetArea(idx)), but not how to fill them.
Is it possible to fill zones inside the Python API in 2019?
[1] https://github.com/johnbeard/kiplot
[2] Python Scripting 'Filled Zones'
[3]