31#include <wx/tokenzr.h>
33#define ARG_FOOTPRINT "--footprint"
37 m_argParser.add_description(
UTF8STDSTR(
_(
"Exports the footprint or entire footprint library to SVG" ) ) );
43 .default_value( std::string() )
44 .help(
UTF8STDSTR(
_(
"Color theme to use (will default to footprint editor settings)" ) ) );
47 .default_value( std::string() )
48 .help(
UTF8STDSTR(
_(
"Specific footprint to export within the library" ) ) )
49 .metavar(
"FOOTPRINT_NAME" );
53 .implicit_value(
true )
54 .default_value(
false );
64 std::unique_ptr<JOB_FP_EXPORT_SVG> svgJob = std::make_unique<JOB_FP_EXPORT_SVG>(
true );
66 svgJob->m_libraryPath = m_argInput;
67 svgJob->m_outputDirectory = m_argOutput;
70 svgJob->SetVarOverrides( m_argDefineVars );
72 if( !wxDir::Exists( svgJob->m_libraryPath ) )
74 wxFprintf( stderr,
_(
"Footprint library does not exist or is not accessible\n" ) );
80 if( m_selectedLayers.count() > 0 )
81 svgJob->m_printMaskLayer = m_selectedLayers;
argparse::ArgumentParser m_argParser
void addDefineArg()
Sets 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 *job)
static LSET AllLayersMask()
#define ARG_BLACKANDWHITE_DESC
#define ARG_BLACKANDWHITE
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)