33#define ARG_EXCLUDE_DRAWING_SHEET "--exclude-drawing-sheet"
34#define ARG_PAGE_SIZE "--page-size-mode"
35#define ARG_MODE_SINGLE "--mode-single"
36#define ARG_MODE_MULTI "--mode-multi"
47 .help(
UTF8STDSTR(
_(
"Mirror the board (useful for trying to show bottom layers)" ) ) )
51 .default_value( std::string() )
52 .help(
UTF8STDSTR(
_(
"Color theme to use (will default to PCB editor settings)" ) ) )
53 .metavar(
"THEME_NAME" );
80 .help(
UTF8STDSTR(
_(
"Set page sizing mode (0 = page with frame and title block, 1 = "
81 "current page size, 2 = board area only)" ) ) )
94 .metavar(
"SHAPE_OPTION" );
97 .default_value( std::string() )
99 _(
"Layers to include on each plot, comma separated list of untranslated "
100 "layer names to include such as "
102 .metavar(
"COMMON_LAYER_LIST" );
107 _(
"Generates a single file with the output arg path acting as the complete "
108 "directory and filename path. COMMON_LAYER_LIST does not function in this "
109 "mode. Instead LAYER_LIST controls all layers plotted." ) ) )
113 .help(
UTF8STDSTR(
_(
"Generates one or more files with behavior similar to the KiCad "
114 "GUI plotting. The given output path specifies a directory in "
115 "which files may be output." ) ) )
133 svgJob->m_mirror = m_argParser.get<
bool>(
ARG_MIRROR );
135 svgJob->m_pageSizeMode = m_argParser.get<
int>(
ARG_PAGE_SIZE );
136 svgJob->m_negative = m_argParser.get<
bool>(
ARG_NEGATIVE );
143 svgJob->m_drawingSheet = m_argDrawingSheet;
146 svgJob->m_filename = m_argInput;
147 svgJob->SetConfiguredOutputPath( m_argOutput );
148 svgJob->m_colorTheme =
From_UTF8( m_argParser.get<std::string>(
ARG_THEME ).c_str() );
150 svgJob->SetVarOverrides( m_argDefineVars );
154 svgJob->m_printMaskLayersToIncludeOnAllLayers = convertLayerStringList( layers, blah );
156 if( !wxFile::Exists( svgJob->m_filename ) )
158 wxFprintf( stderr,
_(
"Board file does not exist or is not accessible\n" ) );
162 svgJob->m_printMaskLayer = m_selectedLayers;
171 wxFprintf( stdout, wxT(
"\033[33;1m%s\033[0m\n" ),
172 _(
"This command has deprecated behavior as of KiCad 9.0, the default behavior "
173 "of this command will change in a future release." ) );
175 wxFprintf( stdout, wxT(
"\033[33;1m%s\033[0m\n" ),
176 _(
"The new behavior will match --mode-multi" ) );
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.
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)
#define ARG_SKETCH_PADS_ON_FAB_LAYERS_DESC
#define ARG_CROSSOUT_DNP_FPS_ON_FAB_LAYERS_DESC
#define ARG_SKETCH_PADS_ON_FAB_LAYERS
#define ARG_COMMON_LAYERS
#define ARG_SKETCH_DNP_FPS_ON_FAB_LAYERS_DESC
#define ARG_BLACKANDWHITE_DESC
#define ARG_PLOT_INVISIBLE_TEXT_DESC
#define ARG_PLOT_INVISIBLE_TEXT
#define ARG_NEGATIVE_SHORT
#define ARG_BLACKANDWHITE
#define ARG_CROSSOUT_DNP_FPS_ON_FAB_LAYERS
#define ARG_HIDE_DNP_FPS_ON_FAB_LAYERS
#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_EXCLUDE_DRAWING_SHEET
static const int ERR_INVALID_INPUT_FILE
wxString From_UTF8(const char *cstring)
int doPerform(KIWAY &aKiway) override
The internal handler that should be overloaded to implement command specific processing and work.
void addLayerArg(bool aRequire)
int doPerform(KIWAY &aKiway) override
The internal handler that should be overloaded to implement command specific processing and work.