33#define ARG_EXCLUDE_DRAWING_SHEET "--exclude-drawing-sheet"
34#define ARG_PAGE_SIZE "--page-size-mode"
46 .help(
UTF8STDSTR(
_(
"Mirror the board (useful for trying to show bottom layers)" ) ) )
50 .default_value( std::string() )
51 .help(
UTF8STDSTR(
_(
"Color theme to use (will default to PCB editor settings)" ) ) )
52 .metavar(
"THEME_NAME" );
79 .help(
UTF8STDSTR(
_(
"Set page sizing mode (0 = page with frame and title block, 1 = "
80 "current page size, 2 = board area only)" ) ) )
93 .metavar(
"SHAPE_OPTION" );
105 svgJob->m_mirror = m_argParser.get<
bool>(
ARG_MIRROR );
107 svgJob->m_pageSizeMode = m_argParser.get<
int>(
ARG_PAGE_SIZE );
108 svgJob->m_negative = m_argParser.get<
bool>(
ARG_NEGATIVE );
114 svgJob->m_drawingSheet = m_argDrawingSheet;
116 svgJob->m_filename = m_argInput;
117 svgJob->SetOutputPath( m_argOutput );
118 svgJob->m_colorTheme =
From_UTF8( m_argParser.get<std::string>(
ARG_THEME ).c_str() );
120 svgJob->SetVarOverrides( m_argDefineVars );
122 if( !wxFile::Exists( svgJob->m_filename ) )
124 wxFprintf( stderr,
_(
"Board file does not exist or is not accessible\n" ) );
128 svgJob->m_printMaskLayer = m_selectedLayers;
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)
#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_SKETCH_DNP_FPS_ON_FAB_LAYERS_DESC
#define ARG_BLACKANDWHITE_DESC
#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.