diff --git a/kicad/cli/command_pcb_export_base.h b/kicad/cli/command_pcb_export_base.h index 02a836bafb..1f52babd5b 100644 --- a/kicad/cli/command_pcb_export_base.h +++ b/kicad/cli/command_pcb_export_base.h @@ -55,6 +55,9 @@ namespace CLI #define ARG_INCLUDE_BORDER_TITLE "--include-border-title" #define ARG_MIRROR "--mirror" +#define ARG_PLOT_INVISIBLE_TEXT "--plot-invisible-text" +#define ARG_PLOT_INVISIBLE_TEXT_DESC "Force plotting of invisible values / refs" + #define ARG_FLIP_BOTTOM_PADS "--flip-bottom-pads" #define ARG_UNIQUE_PINS "--unique-pins" #define ARG_UNIQUE_FOOTPRINTS "--unique-footprints" diff --git a/kicad/cli/command_pcb_export_dxf.cpp b/kicad/cli/command_pcb_export_dxf.cpp index e4f222bda5..6abe2c4ee3 100644 --- a/kicad/cli/command_pcb_export_dxf.cpp +++ b/kicad/cli/command_pcb_export_dxf.cpp @@ -82,6 +82,10 @@ CLI::PCB_EXPORT_DXF_COMMAND::PCB_EXPORT_DXF_COMMAND() : PCB_EXPORT_BASE_COMMAND( _( "Opt into the new behavior which means output path is a directory, a file " "per layer is generated and the common layers arg becomes available. " ) ) ) .flag(); + + m_argParser.add_argument( ARG_PLOT_INVISIBLE_TEXT ) + .help( UTF8STDSTR( _( ARG_PLOT_INVISIBLE_TEXT_DESC ) ) ) + .flag(); } @@ -109,6 +113,7 @@ int CLI::PCB_EXPORT_DXF_COMMAND::doPerform( KIWAY& aKiway ) dxfJob->m_plotGraphicItemsUsingContours = m_argParser.get( ARG_USE_CONTOURS ); dxfJob->m_useDrillOrigin = m_argParser.get( ARG_USE_DRILL_ORIGIN ); dxfJob->m_plotDrawingSheet = m_argParser.get( ARG_INCLUDE_BORDER_TITLE ); + dxfJob->m_plotInvisibleText = m_argParser.get( ARG_PLOT_INVISIBLE_TEXT ); wxString units = From_UTF8( m_argParser.get( ARG_OUTPUT_UNITS ).c_str() ); diff --git a/kicad/cli/command_pcb_export_gerber.cpp b/kicad/cli/command_pcb_export_gerber.cpp index 3cf21c9a3a..22f7c6fe57 100644 --- a/kicad/cli/command_pcb_export_gerber.cpp +++ b/kicad/cli/command_pcb_export_gerber.cpp @@ -83,6 +83,11 @@ CLI::PCB_EXPORT_GERBER_COMMAND::PCB_EXPORT_GERBER_COMMAND( const std::string& aN m_argParser.add_argument( ARG_NO_PROTEL_EXTENSION ) .help( UTF8STDSTR( _( "Use KiCad Gerber file extension" ) ) ) .flag(); + + + m_argParser.add_argument( ARG_PLOT_INVISIBLE_TEXT ) + .help( UTF8STDSTR( _( ARG_PLOT_INVISIBLE_TEXT_DESC ) ) ) + .flag(); } @@ -109,6 +114,7 @@ int CLI::PCB_EXPORT_GERBER_COMMAND::populateJob( JOB_EXPORT_PCB_GERBER* aJob ) aJob->m_useProtelFileExtension = !m_argParser.get( ARG_NO_PROTEL_EXTENSION ); aJob->m_precision = m_argParser.get( ARG_PRECISION ); aJob->m_printMaskLayer = m_selectedLayers; + aJob->m_plotInvisibleText = m_argParser.get( ARG_PLOT_INVISIBLE_TEXT ); if( !wxFile::Exists( aJob->m_filename ) ) { diff --git a/kicad/cli/command_pcb_export_pdf.cpp b/kicad/cli/command_pcb_export_pdf.cpp index efc315398d..98581c99ec 100644 --- a/kicad/cli/command_pcb_export_pdf.cpp +++ b/kicad/cli/command_pcb_export_pdf.cpp @@ -104,6 +104,10 @@ CLI::PCB_EXPORT_PDF_COMMAND::PCB_EXPORT_PDF_COMMAND() : PCB_EXPORT_BASE_COMMAND( "layer names to include such as " "F.Cu,B.Cu" ) ) ) .metavar( "COMMON_LAYER_LIST" ); + + m_argParser.add_argument( ARG_PLOT_INVISIBLE_TEXT ) + .help( UTF8STDSTR( _( ARG_PLOT_INVISIBLE_TEXT_DESC ) ) ) + .flag(); } @@ -129,6 +133,7 @@ int CLI::PCB_EXPORT_PDF_COMMAND::doPerform( KIWAY& aKiway ) pdfJob->m_plotFootprintValues = !m_argParser.get( ARG_EXCLUDE_VALUE ); pdfJob->m_plotRefDes = !m_argParser.get( ARG_EXCLUDE_REFDES ); + pdfJob->m_plotInvisibleText = m_argParser.get( ARG_PLOT_INVISIBLE_TEXT ); pdfJob->m_plotDrawingSheet = m_argParser.get( ARG_INCLUDE_BORDER_TITLE ); diff --git a/kicad/cli/command_pcb_export_svg.cpp b/kicad/cli/command_pcb_export_svg.cpp index 8e5a1ebe90..fa066ddd13 100644 --- a/kicad/cli/command_pcb_export_svg.cpp +++ b/kicad/cli/command_pcb_export_svg.cpp @@ -105,6 +105,11 @@ CLI::PCB_EXPORT_SVG_COMMAND::PCB_EXPORT_SVG_COMMAND() : PCB_EXPORT_BASE_COMMAND( _( "Opt into the new behavior which means output path is a directory, a file " "per layer is generated and the common layers arg becomes available. " ) ) ) .flag(); + + + m_argParser.add_argument( ARG_PLOT_INVISIBLE_TEXT ) + .help( UTF8STDSTR( _( ARG_PLOT_INVISIBLE_TEXT_DESC ) ) ) + .flag(); } @@ -127,6 +132,7 @@ int CLI::PCB_EXPORT_SVG_COMMAND::doPerform( KIWAY& aKiway ) int drillShape = m_argParser.get( ARG_DRILL_SHAPE_OPTION ); svgJob->m_drillShapeOption = static_cast( drillShape ); svgJob->m_drawingSheet = m_argDrawingSheet; + svgJob->m_plotInvisibleText = m_argParser.get( ARG_PLOT_INVISIBLE_TEXT ); svgJob->m_filename = m_argInput; svgJob->SetOutputPath( m_argOutput );