30#include <wx/tokenzr.h>
34#define ARG_USE_CONTOURS "--use-contours"
35#define ARG_OUTPUT_UNITS "--output-units"
46 .help(
UTF8STDSTR(
_(
"Exclude the reference designator text" ) ) )
47 .implicit_value(
true )
48 .default_value(
false );
51 .help(
UTF8STDSTR(
_(
"Exclude the value text" ) ) )
52 .implicit_value(
true )
53 .default_value(
false );
56 .help(
UTF8STDSTR(
_(
"Plot graphic items using their contours" ) ) )
57 .implicit_value(
true )
58 .default_value(
false );
61 .help(
UTF8STDSTR(
_(
"Include the border and title block" ) ) )
62 .implicit_value(
true )
63 .default_value(
false );
66 .default_value( std::string(
"in" ) )
67 .help(
UTF8STDSTR(
_(
"Output units, valid options: mm, in" ) ) )
80 dxfJob->m_filename = m_argInput;
81 dxfJob->m_outputFile = m_argOutput;
82 dxfJob->m_drawingSheet = m_argDrawingSheet;
83 dxfJob->SetVarOverrides( m_argDefineVars );
85 if( !wxFile::Exists( dxfJob->m_filename ) )
87 wxFprintf( stderr,
_(
"Board file does not exist or is not accessible\n" ) );
93 dxfJob->m_plotGraphicItemsUsingContours = m_argParser.get<
bool>(
ARG_USE_CONTOURS );
98 if( units == wxS(
"mm" ) )
102 else if( units == wxS(
"in" ) )
108 wxFprintf( stderr,
_(
"Invalid units specified\n" ) );
112 dxfJob->m_printMaskLayer = m_selectedLayers;
argparse::ArgumentParser m_argParser
void addDefineArg()
Sets up the drawing sheet arg used by many of the export commands.
void addDrawingSheetArg()
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)
Instantiate the current locale within a scope in which you are expecting exceptions to be thrown.
#define ARG_INCLUDE_BORDER_TITLE
#define ARG_EXCLUDE_REFDES
#define ARG_EXCLUDE_VALUE
This file contains miscellaneous commonly used macros and functions.
static const int ERR_ARGS
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.
void addLayerArg(bool aRequire)