From 46dbda60e14459ca01704a643591c84a24869ff0 Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Sat, 12 Mar 2011 21:53:12 -0300 Subject: [PATCH] kicad-patches/exclude-pcb-edge.patch:: added option -e / --exclude-pcb-edge --- kicad-patches/exclude-pcb-edge.patch | 23 +++++++++++++++++++++++ kicad-patches/series | 1 + 2 files changed, 24 insertions(+) create mode 100644 kicad-patches/exclude-pcb-edge.patch diff --git a/kicad-patches/exclude-pcb-edge.patch b/kicad-patches/exclude-pcb-edge.patch new file mode 100644 index 0000000..1a81b93 --- /dev/null +++ b/kicad-patches/exclude-pcb-edge.patch @@ -0,0 +1,23 @@ +Index: kicad.bzr/pcbnew/pcbnew_scripted.cpp +=================================================================== +--- kicad.bzr.orig/pcbnew/pcbnew_scripted.cpp 2011-03-12 21:32:36.000000000 -0300 ++++ kicad.bzr/pcbnew/pcbnew_scripted.cpp 2011-03-12 21:50:13.000000000 -0300 +@@ -55,6 +55,7 @@ + { wxCMD_LINE_OPTION, wxT("ps-pads-drill-opt"), wxT("ps-pads-drill-opt"), wxT("Postscript pads drill option [none|small|real] (default:small)"), + wxCMD_LINE_VAL_STRING }, + { wxCMD_LINE_SWITCH, wxT("mirror"), wxT("mirror"), wxT("mirror plot (HPGL and Postscript only)") }, ++ { wxCMD_LINE_SWITCH, wxT("e"), wxT("exclude-pcb-edge"), wxT("exclude PCB edge (Gerber only)") }, + { wxCMD_LINE_SWITCH, wxT("fill-all-zones"), wxT("fill-all-zones"), wxT("fill zones before plotting") }, + { wxCMD_LINE_SWITCH, wxT("drc"), wxT("drc"), wxT("generates a design rule check report (.rpt)") }, + { wxCMD_LINE_SWITCH, wxT("svg"), wxT("svg"), wxT("plots the board in SVG format") }, +@@ -223,6 +224,10 @@ + if ( parser.Found( wxT("mirror") ) ) + g_pcb_plot_options.PlotOrient = PLOT_MIROIR; + ++ // --exclude-pcb-edge ++ if ( parser.Found( wxT("exclude-pcb-edge") ) ) ++ g_pcb_plot_options.Exclude_Edges_Pcb = true; ++ + if ( parser.Found( wxT("fill-all-zones") ) ) + frame->Fill_All_Zones( false /* verbose */ ); + diff --git a/kicad-patches/series b/kicad-patches/series index 6b1fcd0..a651fbc 100644 --- a/kicad-patches/series +++ b/kicad-patches/series @@ -16,3 +16,4 @@ scripted-new.patch scripted-common.patch scripted-eeschema.patch scripted-pcbnew.patch +exclude-pcb-edge.patch