29#define ARG_MODE_SINGLE "--mode-single"
30#define ARG_MODE_MULTI "--mode-multi"
31#define ARG_TRACK_WIDTH_CORRECTION "--track-width-correction"
32#define ARG_X_SCALE_FACTOR "--x-scale-factor"
33#define ARG_Y_SCALE_FACTOR "--y-scale-factor"
34#define ARG_FORCE_A4 "--force-a4"
47 .help(
UTF8STDSTR(
_(
"Mirror the board (useful for trying to show bottom layers)" ) ) )
51 .help(
UTF8STDSTR(
_(
"Exclude the reference designator text" ) ) )
55 .help(
UTF8STDSTR(
_(
"Exclude the value text" ) ) )
59 .help(
UTF8STDSTR(
_(
"Include the border and title block" ) ) )
63 .help(
UTF8STDSTR(
_(
"Subtract soldermask from silkscreen" ) ) )
91 .default_value( std::string() )
92 .help(
UTF8STDSTR(
_(
"Color theme to use (will default to PCB Editor settings)" ) ) )
93 .metavar(
"THEME_NAME" );
102 _(
"Generates a single file with the output arg path acting as the complete "
103 "directory and filename path. COMMON_LAYER_LIST does not function in this "
104 "mode. Instead LAYER_LIST controls all layers plotted." ) ) )
108 .help(
UTF8STDSTR(
_(
"Generates one or more files with behavior similar to the KiCad "
109 "GUI plotting. The given output path specifies a directory in "
110 "which files may be output." ) ) )
114 .help(
UTF8STDSTR(
_(
"Track width correction [mm]. Used to compensate errors in "
115 "track widths, pad and via sizes." ) ) )
117 .default_value( 0.0 )
118 .metavar(
"TRACK_COR" );
121 .help(
UTF8STDSTR(
_(
"X scale adjust for exact scale." ) ) )
123 .default_value( 1.0 )
124 .metavar(
"X_SCALE" );
127 .help(
UTF8STDSTR(
_(
"Y scale adjust for exact scale." ) ) )
129 .default_value( 1.0 )
130 .metavar(
"Y_SCALE" );
139 .default_value( 1.0 )
157 if( !wxFile::Exists( psJob->m_filename ) )
159 wxFprintf( stderr,
_(
"Board file does not exist or is not accessible\n" ) );
181 psJob->m_drillShapeOption =
static_cast<DRILL_MARKS>( drillShape );
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_BLACKANDWHITE_DESC
#define ARG_NEGATIVE_SHORT
#define ARG_EXCLUDE_VALUE
#define ARG_BLACKANDWHITE
#define ARG_CROSSOUT_DNP_FPS_ON_FAB_LAYERS
#define ARG_HIDE_DNP_FPS_ON_FAB_LAYERS
#define ARG_SUBTRACT_SOLDERMASK
#define ARG_DRILL_SHAPE_OPTION_DESC
#define ARG_HIDE_DNP_FPS_ON_FAB_LAYERS_DESC
#define ARG_SKETCH_DNP_FPS_ON_FAB_LAYERS
#define ARG_DRILL_SHAPE_OPTION
#define ARG_NEGATIVE_DESC
#define ARG_Y_SCALE_FACTOR
#define ARG_X_SCALE_FACTOR
#define ARG_TRACK_WIDTH_CORRECTION
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()