30#define ARG_USE_CONTOURS "--use-contours"
31#define ARG_OUTPUT_UNITS "--output-units"
32#define ARG_USE_DRILL_ORIGIN "--use-drill-origin"
33#define ARG_MODE_SINGLE "--mode-single"
34#define ARG_MODE_MULTI "--mode-multi"
47 .help(
UTF8STDSTR(
_(
"Exclude the reference designator text" ) ) )
51 .help(
UTF8STDSTR(
_(
"Exclude the value text" ) ) )
71 .help(
UTF8STDSTR(
_(
"Subtract soldermask from silkscreen" ) ) )
75 .help(
UTF8STDSTR(
_(
"Plot graphic items using their contours" ) ) )
79 .help(
UTF8STDSTR(
_(
"Plot using the drill/place file origin" ) ) )
83 .help(
UTF8STDSTR(
_(
"Include the border and title block" ) ) )
87 .default_value( std::string(
"in" ) )
88 .help(
UTF8STDSTR(
_(
"Output units, valid options: mm, in" ) ) )
98 _(
"Generates a single file with the output arg path acting as the complete "
99 "directory and filename path. COMMON_LAYER_LIST does not function in this "
100 "mode. Instead LAYER_LIST controls all layers plotted." ) ) )
104 .help(
UTF8STDSTR(
_(
"Generates one or more files with behavior similar to the KiCad "
105 "GUI plotting. The given output path specifies a directory in "
106 "which files may be output." ) ) )
116 .default_value( 1.0 )
138 if( !wxFile::Exists( dxfJob->m_filename ) )
140 wxFprintf( stderr,
_(
"Board file does not exist or is not accessible\n" ) );
158 dxfJob->m_drillShapeOption =
static_cast<DRILL_MARKS>( drillShape );
162 if( units == wxS(
"mm" ) )
166 else if( units == wxS(
"in" ) )
172 wxFprintf( stderr,
_(
"Invalid units specified\n" ) );
185 wxFprintf( stdout, wxT(
"\033[33;1m%s\033[0m\n" ),
186 _(
"This command has deprecated behavior as of KiCad 9.0, the default behavior "
187 "of this command will change in a future release." ) );
189 wxFprintf( stdout, wxT(
"\033[33;1m%s\033[0m\n" ),
190 _(
"The new behavior will match --mode-multi" ) );
std::map< wxString, wxString > m_argDefineVars
Value of the drawing sheet arg if configured.
argparse::ArgumentParser m_argParser
void addDefineArg()
Set up the drawing sheet arg used by many of the export commands.
wxString m_argDrawingSheet
Value of the drawing sheet arg if configured.
wxString m_argOutput
Value of the output arg if configured.
wxString m_argInput
Value of the common input arg if configured.
void addDrawingSheetArg()
Set up the drawing sheet arg used by many of the export commands.
int doPerform(KIWAY &aKiway) override
The internal handler that should be overloaded to implement command specific processing and work.
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, PROGRESS_REPORTER *aProgressReporter=nullptr)
#define ARG_SKETCH_PADS_ON_FAB_LAYERS_DESC
#define ARG_INCLUDE_BORDER_TITLE
#define ARG_CROSSOUT_DNP_FPS_ON_FAB_LAYERS_DESC
#define ARG_CHECK_ZONES_DESC
#define ARG_SKETCH_PADS_ON_FAB_LAYERS
#define ARG_COMMON_LAYERS
#define ARG_SKETCH_DNP_FPS_ON_FAB_LAYERS_DESC
#define ARG_EXCLUDE_REFDES
#define ARG_EXCLUDE_VALUE
#define ARG_CROSSOUT_DNP_FPS_ON_FAB_LAYERS
#define DEPRECATED_ARG_PLOT_INVISIBLE_TEXT
#define ARG_HIDE_DNP_FPS_ON_FAB_LAYERS
#define DEPRECATED_ARG_PLOT_INVISIBLE_TEXT_WARNING
#define ARG_SUBTRACT_SOLDERMASK
#define ARG_DRILL_SHAPE_OPTION_DESC
#define ARG_USE_DRILL_ORIGIN
#define DEPRECATED_ARG_PLOT_INVISIBLE_TEXT_DESC
#define ARG_HIDE_DNP_FPS_ON_FAB_LAYERS_DESC
#define ARG_SKETCH_DNP_FPS_ON_FAB_LAYERS
#define ARG_DRILL_SHAPE_OPTION
This file contains miscellaneous commonly used macros and functions.
static const int ERR_ARGS
static const int ERR_INVALID_INPUT_FILE
DRILL_MARKS
Plots and prints can show holes in pads and vias 3 options are available:
wxString From_UTF8(const char *cstring)
PCB_EXPORT_BASE_COMMAND(const std::string &aName, bool aInputCanBeDir=false, bool aOutputIsDir=false)
void addCommonLayersArg()