32#define ARG_EXCLUDE_DRAWING_SHEET "--exclude-drawing-sheet" 
   33#define ARG_PAGE_SIZE "--page-size-mode" 
   34#define ARG_FIT_PAGE_TO_BOARD "--fit-page-to-board" 
   35#define ARG_MODE_SINGLE "--mode-single" 
   36#define ARG_MODE_MULTI "--mode-multi" 
   49            .help( 
UTF8STDSTR( 
_( 
"Subtract soldermask from silkscreen" ) ) )
 
   53            .help( 
UTF8STDSTR( 
_( 
"Mirror the board (useful for trying to show bottom layers)" ) ) )
 
   57            .default_value( std::string() )
 
   58            .help( 
UTF8STDSTR( 
_( 
"Color theme to use (will default to PCB editor settings)" ) ) )
 
   59            .metavar( 
"THEME_NAME" );
 
   86            .help( 
UTF8STDSTR( 
_( 
"Set page sizing mode (0 = page with frame and title block, 1 = " 
   87                                "current page size, 2 = board area only)" ) ) )
 
   93            .help( 
UTF8STDSTR( 
_( 
"Fit the page to the board" ) ) )
 
  104            .metavar( 
"SHAPE_OPTION" );
 
  108                    _( 
"Generates a single file with the output arg path acting as the complete " 
  109                       "directory and filename path. COMMON_LAYER_LIST does not function in this " 
  110                       "mode. Instead LAYER_LIST controls all layers plotted." ) ) )
 
  114            .help( 
UTF8STDSTR( 
_( 
"Generates one or more files with behavior similar to the KiCad " 
  115                                  "GUI plotting. The given output path specifies a directory in " 
  116                                  "which files may be output." ) ) )
 
  126            .default_value( 1.0 )
 
 
  147    svgJob->m_drillShapeOption = 
static_cast<DRILL_MARKS>( drillShape );
 
  161    if( legacyPageSizeMode == 0 )
 
  163        svgJob->m_plotDrawingSheet = 
true;
 
  165    else if( legacyPageSizeMode == 1 )
 
  167        svgJob->m_plotDrawingSheet = 
false;
 
  169    else if( legacyPageSizeMode == 2 )
 
  171        svgJob->m_fitPageToBoard = 
true;
 
  172        svgJob->m_plotDrawingSheet = 
false;
 
  184    if( !wxFile::Exists( svgJob->m_filename ) )
 
  186        wxFprintf( stderr, 
_( 
"Board file does not exist or is not accessible\n" ) );
 
  197        wxFprintf( stdout, wxT( 
"\033[33;1m%s\033[0m\n" ),
 
  198                   _( 
"This command has deprecated behavior as of KiCad 9.0, the default behavior " 
  199                      "of this command will change in a future release." ) );
 
  201        wxFprintf( stdout, wxT( 
"\033[33;1m%s\033[0m\n" ),
 
  202                   _( 
"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.
 
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_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_BLACKANDWHITE_DESC
 
#define ARG_NEGATIVE_SHORT
 
#define ARG_BLACKANDWHITE
 
#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 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
 
#define ARG_NEGATIVE_DESC
 
#define ARG_FIT_PAGE_TO_BOARD
 
#define ARG_EXCLUDE_DRAWING_SHEET
 
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()
 
int doPerform(KIWAY &aKiway) override
The internal handler that should be overloaded to implement command specific processing and work.