kicad-patches/exclude-pcb-edge.patch |
1 | | Index: kicad.bzr/pcbnew/pcbnew_scripted.cpp |
2 | | =================================================================== |
3 | | +++ kicad.bzr/pcbnew/pcbnew_scripted.cpp 2011-03-12 21:50:13.000000000 -0300 |
4 | | @@ -55,6 +55,7 @@ |
5 | | { wxCMD_LINE_OPTION, wxT("ps-pads-drill-opt"), wxT("ps-pads-drill-opt"), wxT("Postscript pads drill option [none|small|real] (default:small)"), |
6 | | wxCMD_LINE_VAL_STRING }, |
7 | | { wxCMD_LINE_SWITCH, wxT("mirror"), wxT("mirror"), wxT("mirror plot (HPGL and Postscript only)") }, |
8 | | + { wxCMD_LINE_SWITCH, wxT("e"), wxT("exclude-pcb-edge"), wxT("exclude PCB edge (Gerber only)") }, |
9 | | { wxCMD_LINE_SWITCH, wxT("fill-all-zones"), wxT("fill-all-zones"), wxT("fill zones before plotting") }, |
10 | | { wxCMD_LINE_SWITCH, wxT("drc"), wxT("drc"), wxT("generates a design rule check report (.rpt)") }, |
11 | | { wxCMD_LINE_SWITCH, wxT("svg"), wxT("svg"), wxT("plots the board in SVG format") }, |
12 | | @@ -223,6 +224,10 @@ |
13 | | if ( parser.Found( wxT("mirror") ) ) |
14 | | g_pcb_plot_options.PlotOrient = PLOT_MIROIR; |
15 | | |
16 | | + // --exclude-pcb-edge |
17 | | + if ( parser.Found( wxT("exclude-pcb-edge") ) ) |
18 | | + g_pcb_plot_options.Exclude_Edges_Pcb = true; |
19 | | + |
20 | | if ( parser.Found( wxT("fill-all-zones") ) ) |
21 | | frame->Fill_All_Zones( false /* verbose */ ); |
22 | | |
kicad-patches/scripted-new.patch |
1 | 1 | diff -ruN kicad.orig/eeschema/eeschema_scripted.cpp kicad/eeschema/eeschema_scripted.cpp |
2 | 2 | --- kicad.orig/eeschema/eeschema_scripted.cpp 1970-01-01 00:00:00.000000000 +0000 |
3 | | +++ kicad/eeschema/eeschema_scripted.cpp 2011-01-02 17:25:27.428837658 +0000 |
4 | | @@ -0,0 +1,237 @@ |
| 3 | @@ -0,0 +1,236 @@ |
5 | 4 | +///////////////////////////////////////////////////////////////////////////// |
6 | 5 | +// Name: eeschema_scripted.cpp |
7 | 6 | +// Copyright: Werner Almesberger, Wolfgang Spraul |
... | ... | |
128 | 128 | + } |
129 | 129 | + wxSetWorkingDirectory( fn.GetPath() ); |
130 | 130 | + |
131 | | + g_DrawBgColor = BLACK; |
132 | 131 | + SeedLayers(); |
133 | 132 | + frame = new WinEDA_SchematicFrame( NULL, wxT( "EESchema" ), |
134 | 133 | + wxPoint( 0, 0 ), wxSize( 600, 400 ) ); |
... | ... | |
259 | 258 | +extern EESCHEMA_SCRIPTED g_EESchemaScripted; |
260 | 259 | diff -ruN kicad.orig/pcbnew/pcbnew_scripted.cpp kicad/pcbnew/pcbnew_scripted.cpp |
261 | 260 | --- kicad.orig/pcbnew/pcbnew_scripted.cpp 1970-01-01 00:00:00.000000000 +0000 |
262 | | +++ kicad/pcbnew/pcbnew_scripted.cpp 2011-01-02 17:30:48.624837659 +0000 |
263 | | @@ -0,0 +1,546 @@ |
| 261 | @@ -0,0 +1,552 @@ |
264 | 262 | +///////////////////////////////////////////////////////////////////////////// |
265 | 263 | +// Name: pcbnew_scripted.cpp |
266 | 264 | +// Copyright: Wolfgang Spraul |
... | ... | |
318 | 317 | + { wxCMD_LINE_OPTION, wxT("ps-pads-drill-opt"), wxT("ps-pads-drill-opt"), wxT("Postscript pads drill option [none|small|real] (default:small)"), |
319 | 318 | + wxCMD_LINE_VAL_STRING }, |
320 | 319 | + { wxCMD_LINE_SWITCH, wxT("mirror"), wxT("mirror"), wxT("mirror plot (HPGL and Postscript only)") }, |
| 320 | + { wxCMD_LINE_SWITCH, wxT("e"), wxT("exclude-pcb-edge"), wxT("exclude PCB edge (Gerber only)") }, |
321 | 321 | + { wxCMD_LINE_SWITCH, wxT("fill-all-zones"), wxT("fill-all-zones"), wxT("fill zones before plotting") }, |
322 | 322 | + { wxCMD_LINE_SWITCH, wxT("drc"), wxT("drc"), wxT("generates a design rule check report (.rpt)") }, |
323 | 323 | + { wxCMD_LINE_SWITCH, wxT("svg"), wxT("svg"), wxT("plots the board in SVG format") }, |
... | ... | |
486 | 486 | + if ( parser.Found( wxT("mirror") ) ) |
487 | 487 | + g_pcb_plot_options.PlotOrient = PLOT_MIROIR; |
488 | 488 | + |
| 489 | + // --exclude-pcb-edge |
| 490 | + if ( parser.Found( wxT("exclude-pcb-edge") ) ) |
| 491 | + g_pcb_plot_options.Exclude_Edges_Pcb = true; |
| 492 | + |
| 493 | + // --fill-all-zones |
489 | 494 | + if ( parser.Found( wxT("fill-all-zones") ) ) |
490 | 495 | + frame->Fill_All_Zones( false /* verbose */ ); |
491 | 496 | + |