Minor Bike Shed Improvement: command line gerber export? #24

This commit is contained in:
rusefillc 2021-04-16 09:10:33 -04:00
parent 9734490b8c
commit 4cac07618c
3 changed files with 18 additions and 0 deletions

2
.gitattributes vendored Normal file
View File

@ -0,0 +1,2 @@
*.sh text eol=lf

View File

@ -0,0 +1,14 @@
# Load board and initialize plot controller
board = pcbnew.LoadBoard("hellen121vag.kicad_pcb")
pc = pcbnew.PLOT_CONTROLLER(board)
po = pc.GetPlotOptions()
po.SetPlotFrameRef(False)
# Set current layer
pc.SetLayer(pcbnew.F_Cu)
# Plot single layer to file
pc.OpenPlotfile("front_copper", pcbnew.PLOT_FORMAT_GERBER, "front_copper")
print("Plotting to " + pc.GetPlotFileName())
pc.PlotLayer()
pc.ClosePlot()

View File

@ -0,0 +1,2 @@
C:\Program Files\KiCad\5.99\bin export_python.py