|
|
|
@ -1065,11 +1065,14 @@ int PCBNEW_JOBS_HANDLER::JobExportGerbers( JOB* aJob ) |
|
|
|
delete plotter; |
|
|
|
} |
|
|
|
|
|
|
|
wxFileName fn( brd->GetFileName() ); |
|
|
|
if( aGerberJob->m_createJobsFile ) |
|
|
|
{ |
|
|
|
wxFileName fn( brd->GetFileName() ); |
|
|
|
|
|
|
|
// Build gerber job file from basename
|
|
|
|
BuildPlotFileName( &fn, outPath, wxT( "job" ), FILEEXT::GerberJobFileExtension ); |
|
|
|
jobfile_writer.CreateJobFile( fn.GetFullPath() ); |
|
|
|
// Build gerber job file from basename
|
|
|
|
BuildPlotFileName( &fn, outPath, wxT( "job" ), FILEEXT::GerberJobFileExtension ); |
|
|
|
jobfile_writer.CreateJobFile( fn.GetFullPath() ); |
|
|
|
} |
|
|
|
|
|
|
|
return exitCode; |
|
|
|
} |
|
|
|
@ -1153,6 +1156,15 @@ void PCBNEW_JOBS_HANDLER::populateGerberPlotOptionsFromJob( PCB_PLOT_PARAMS& aPl |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
void PCBNEW_JOBS_HANDLER::populateGerberPlotOptionsFromJob( PCB_PLOT_PARAMS& aPlotOpts, |
|
|
|
JOB_EXPORT_PCB_GERBERS* aJob ) |
|
|
|
{ |
|
|
|
populateGerberPlotOptionsFromJob( aPlotOpts, static_cast<JOB_EXPORT_PCB_GERBER*>( aJob ) ); |
|
|
|
|
|
|
|
aPlotOpts.SetCreateGerberJobFile( aJob->m_createJobsFile ); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
int PCBNEW_JOBS_HANDLER::JobExportGerber( JOB* aJob ) |
|
|
|
{ |
|
|
|
int exitCode = CLI::EXIT_CODES::OK; |
|
|
|
|