Minor Bike Shed Improvement: command line gerber export? #24
This commit is contained in:
parent
9734490b8c
commit
4cac07618c
|
@ -0,0 +1,2 @@
|
|||
|
||||
*.sh text eol=lf
|
|
@ -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()
|
|
@ -0,0 +1,2 @@
|
|||
|
||||
C:\Program Files\KiCad\5.99\bin export_python.py
|
Loading…
Reference in New Issue