28#include <wx/tokenzr.h>
32#define ARG_COMPRESS "--compression"
33#define ARG_UNITS "--units"
41 m_argParser.add_description( std::string(
"Export the PCB in ODB++ format" ) );
44 .help( std::string(
"Precision" ) )
47 .metavar(
"PRECISION" );
50 .default_value( std::string(
"zip" ) )
51 .
help( std::string(
"Compression mode" ) )
52 .choices(
"none",
"zip" );
55 .default_value( std::string(
"mm" ) )
56 .
help( std::string(
"Units" ) )
57 .choices(
"mm",
"in" );
70 job->m_filename = m_argInput;
71 job->SetOutputPath( m_argOutput );
72 job->m_drawingSheet = m_argDrawingSheet;
73 job->SetVarOverrides( m_argDefineVars );
75 if( !wxFile::Exists( job->m_filename ) )
77 wxFprintf( stderr,
_(
"Board file does not exist or is not accessible\n" ) );
87 else if( units ==
"in" )
92 if( compression ==
"zip" )
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.
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)
Instantiate the current locale within a scope in which you are expecting exceptions to be thrown.
This file contains miscellaneous commonly used macros and functions.
static const int ERR_INVALID_INPUT_FILE
std::vector< FAB_LAYER_COLOR > dummy
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.