30#include <wx/tokenzr.h>
44 .default_value(
false )
45 .help(
UTF8STDSTR(
_(
"Flip bottom footprint padstacks" ) ) )
49 .default_value(
false )
50 .help(
UTF8STDSTR(
_(
"Generate unique pin names" ) ) )
54 .default_value(
false )
56 "Generate a new shape for each footprint instance (do not reuse shapes)" ) ) )
60 .default_value(
false )
61 .help(
UTF8STDSTR(
_(
"Use drill/place file origin as origin" ) ) )
65 .default_value(
false )
66 .help(
UTF8STDSTR(
_(
"Save the origin coordinates in the file" ) ) )
80 gencadJob->m_filename = m_argInput;
81 gencadJob->SetConfiguredOutputPath( m_argOutput );
82 gencadJob->SetVarOverrides( m_argDefineVars );
90 if( !wxFile::Exists( gencadJob->m_filename ) )
92 wxFprintf( stderr,
_(
"Board file does not exist or is not accessible\n" ) );
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.
PCB_EXPORT_GENCAD_COMMAND()
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)
Instantiate the current locale within a scope in which you are expecting exceptions to be thrown.
#define ARG_FLIP_BOTTOM_PADS
#define ARG_UNIQUE_FOOTPRINTS
#define ARG_USE_DRILL_ORIGIN
#define ARG_STORE_ORIGIN_COORD
This file contains miscellaneous commonly used macros and functions.
static const int ERR_INVALID_INPUT_FILE
std::vector< FAB_LAYER_COLOR > dummy
int doPerform(KIWAY &aKiway) override
The internal handler that should be overloaded to implement command specific processing and work.