29#include <wx/tokenzr.h>
45 .help(
UTF8STDSTR(
_(
"Exclude the reference designator text" ) ) )
49 .help(
UTF8STDSTR(
_(
"Exclude the value text" ) ) )
53 .help(
UTF8STDSTR(
_(
"Include the border and title block" ) ) )
57 .help(
UTF8STDSTR(
_(
"Do not use the extended X2 format" ) ) )
61 .help(
UTF8STDSTR(
_(
"Do not generate netlist attributes" ) ) )
65 .help(
UTF8STDSTR(
_(
"Subtract soldermask from silkscreen" ) ) )
69 .help(
UTF8STDSTR(
_(
"Disable aperture macros" ) ) )
70 .implicit_value(
true )
71 .default_value(
false );
74 .help(
UTF8STDSTR(
_(
"Use drill/place file origin" ) ) )
78 .help(
UTF8STDSTR(
_(
"Precision of Gerber coordinates, valid options: 5 or 6" ) ) )
81 .metavar(
"PRECISION" );
84 .help(
UTF8STDSTR(
_(
"Use KiCad Gerber file extension" ) ) )
121 wxFprintf( stderr,
_(
"Board file does not exist or is not accessible\n" ) );
127 wxFprintf( stderr,
_(
"Gerber coordinate precision should be either 5 or 6\n" ) );
137 wxFprintf( stdout, wxT(
"\033[33;1m%s\033[0m\n" ),
138 _(
"This command is deprecated as of KiCad 9.0, please use \"gerbers\" instead\n" ) );
147 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
LSEQ m_printMaskLayer
Layers to include on all individual layer prints.
void SetConfiguredOutputPath(const wxString &aPath)
Sets the configured output path for the job, this path is always saved to file.
void SetVarOverrides(const std::map< wxString, wxString > &aVarOverrides)
A minimalistic software bus for communications between various DLLs/DSOs (DSOs) within the same KiCad...
int ProcessJob(KIWAY::FACE_T aFace, JOB *aJob, REPORTER *aReporter=nullptr)
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_PLOT_INVISIBLE_TEXT_DESC
#define ARG_PLOT_INVISIBLE_TEXT
#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)