30#include <wx/tokenzr.h>
34#define ARG_USE_CONTOURS "--use-contours"
35#define ARG_OUTPUT_UNITS "--output-units"
36#define ARG_USE_DRILL_ORIGIN "--use-drill-origin"
47 .help(
UTF8STDSTR(
_(
"Exclude the reference designator text" ) ) )
51 .help(
UTF8STDSTR(
_(
"Exclude the value text" ) ) )
55 .help(
UTF8STDSTR(
_(
"Plot graphic items using their contours" ) ) )
59 .help(
UTF8STDSTR(
_(
"Plot using the drill/place file origin" ) ) )
63 .help(
UTF8STDSTR(
_(
"Include the border and title block" ) ) )
67 .default_value( std::string(
"in" ) )
68 .help(
UTF8STDSTR(
_(
"Output units, valid options: mm, in" ) ) )
81 dxfJob->m_filename = m_argInput;
82 dxfJob->SetOutputPath( m_argOutput );
83 dxfJob->m_drawingSheet = m_argDrawingSheet;
84 dxfJob->SetVarOverrides( m_argDefineVars );
86 if( !wxFile::Exists( dxfJob->m_filename ) )
88 wxFprintf( stderr,
_(
"Board file does not exist or is not accessible\n" ) );
94 dxfJob->m_plotGraphicItemsUsingContours = m_argParser.get<
bool>(
ARG_USE_CONTOURS );
100 if( units == wxS(
"mm" ) )
104 else if( units == wxS(
"in" ) )
110 wxFprintf( stderr,
_(
"Invalid units specified\n" ) );
114 dxfJob->m_printMaskLayer = m_selectedLayers;
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.
#define ARG_INCLUDE_BORDER_TITLE
#define ARG_EXCLUDE_REFDES
#define ARG_EXCLUDE_VALUE
#define ARG_USE_DRILL_ORIGIN
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)