Creating a copper zone (ground plane) with pcbnew's Python API
Generate a copper zone connected to a net and trigger its fill by script, with pcbnew or KiCad's IPC API.
Creating a routing keepout zone with pcbnew's Python API
Reserve a region where no track, via, or copper fill can be placed, by script — useful around a mechanical connector or an antenna — with pcbnew or KiCad's IPC API.
Setting a copper zone's thermal relief with pcbnew's Python API
Configure the thermal relief around pads connected to a copper zone, by script — with pcbnew or KiCad's IPC API.
Creating a multi-layer copper zone with pcbnew's Python API
Apply the same copper zone to several layers at once with an LSET, instead of duplicating the zone layer by layer — with pcbnew or KiCad's IPC API.