Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
722f5861aThis file is pinned to the selected release. Download the original to open it in your design tool.
#!/usr/bin/env python
from pcbnew import *
import pcbmerge
# Load the power board
mypcb = LoadBoard("example_power/power.kicad_pcb")
# Merge the power board with the led board
pcbmerge.merge(pcb = mypcb,
base_anchor = "OUTPUT",
addon_anchor = "IN",
filename = "example_led/led.kicad_pcb")
# Combine and refill areas
pcbmerge.combine_all_areas(mypcb)
pcbmerge.fill_all_areas(mypcb)
# Save output
SaveBoard("simple.kicad_pcb", mypcb)