29#include <wx/tokenzr.h>
44 .help(
UTF8STDSTR(
_(
"Exclude the reference designator text" ) ) )
48 .help(
UTF8STDSTR(
_(
"Exclude the value text" ) ) )
52 .help(
UTF8STDSTR(
_(
"Include the border and title block" ) ) )
56 .help(
UTF8STDSTR(
_(
"Do not use the extended X2 format" ) ) )
60 .help(
UTF8STDSTR(
_(
"Do not generate netlist attributes" ) ) )
64 .help(
UTF8STDSTR(
_(
"Subtract soldermask from silkscreen" ) ) )
68 .help(
UTF8STDSTR(
_(
"Disable aperture macros" ) ) )
69 .implicit_value(
true )
70 .default_value(
false );
73 .help(
UTF8STDSTR(
_(
"Use drill/place file origin" ) ) )
77 .help(
UTF8STDSTR(
_(
"Precision of Gerber coordinates, valid options: 5 or 6" ) ) )
80 .metavar(
"PRECISION" );
83 .help(
UTF8STDSTR(
_(
"Use KiCad Gerber file extension" ) ) )
114 wxFprintf( stderr,
_(
"Board file does not exist or is not accessible\n" ) );
120 wxFprintf( stderr,
_(
"Gerber coordinate precision should be either 5 or 6\n" ) );
137 exitCode = populateJob( gerberJob.get() );
argparse::ArgumentParser m_argParser
void addDefineArg()
Set up the drawing sheet arg used by many of the export commands.
void addDrawingSheetArg()
Set up the drawing sheet arg used by many of the export commands.
int populateJob(JOB_EXPORT_PCB_GERBER *aJob)
int doPerform(KIWAY &aKiway) override
The internal handler that should be overloaded to implement command specific processing and work.
PCB_EXPORT_GERBER_COMMAND()
bool m_useProtelFileExtension
bool m_includeNetlistAttributes
bool m_disableApertureMacros
bool m_subtractSolderMaskFromSilk
bool m_plotFootprintValues
void SetVarOverrides(const std::map< wxString, wxString > &aVarOverrides)
void SetOutputPath(const wxString &aPath)
A minimalistic software bus for communications between various DLLs/DSOs (DSOs) within the same KiCad...
int ProcessJob(KIWAY::FACE_T aFace, JOB *aJob)
Instantiate the current locale within a scope in which you are expecting exceptions to be thrown.
#define ARG_INCLUDE_BORDER_TITLE
#define ARG_EXCLUDE_REFDES
#define ARG_EXCLUDE_VALUE
#define ARG_DISABLE_APERTURE_MACROS
#define ARG_SUBTRACT_SOLDERMASK
#define ARG_USE_DRILL_FILE_ORIGIN
#define ARG_NO_PROTEL_EXTENSION
This file contains miscellaneous commonly used macros and functions.
static const int ERR_ARGS
static const int ERR_INVALID_INPUT_FILE
std::vector< FAB_LAYER_COLOR > dummy
int doPerform(KIWAY &aKiway) override
The internal handler that should be overloaded to implement command specific processing and work.
void addLayerArg(bool aRequire)