31#include <wx/tokenzr.h>
33#define ARG_FOOTPRINT "--footprint"
38 "library to SVG" ) ) );
44 .default_value( std::string() )
45 .help(
UTF8STDSTR(
_(
"Color theme to use (will default to footprint editor "
49 .default_value( std::string() )
50 .help(
UTF8STDSTR(
_(
"Specific footprint to export within the library" ) ) )
51 .metavar(
"FOOTPRINT_NAME" );
81 std::unique_ptr<JOB_FP_EXPORT_SVG> svgJob = std::make_unique<JOB_FP_EXPORT_SVG>();
83 svgJob->m_libraryPath = m_argInput;
84 svgJob->m_outputDirectory = m_argOutput;
91 svgJob->SetVarOverrides( m_argDefineVars );
93 if( !wxDir::Exists( svgJob->m_libraryPath ) )
95 wxFprintf( stderr,
_(
"Footprint library does not exist or is not accessible\n" ) );
101 if( !m_selectedLayers.empty() )
102 svgJob->m_printMaskLayer = m_selectedLayers;
argparse::ArgumentParser m_argParser
void addDefineArg()
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)
static LSET AllLayersMask()
LSEQ SeqStackupForPlotting() const
Return the sequence that is typical for a bottom-to-top stack-up.
#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_BLACKANDWHITE
#define ARG_CROSSOUT_DNP_FPS_ON_FAB_LAYERS
#define ARG_HIDE_DNP_FPS_ON_FAB_LAYERS
#define ARG_HIDE_DNP_FPS_ON_FAB_LAYERS_DESC
#define ARG_SKETCH_DNP_FPS_ON_FAB_LAYERS
This file contains miscellaneous commonly used macros and functions.
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)