diff --git a/pcbnew/exporters/gen_drill_report_files.cpp b/pcbnew/exporters/gen_drill_report_files.cpp index a92dcb0903..8d5f7032e2 100644 --- a/pcbnew/exporters/gen_drill_report_files.cpp +++ b/pcbnew/exporters/gen_drill_report_files.cpp @@ -33,6 +33,7 @@ #include // for KiROUND #include +#include #include #include @@ -258,6 +259,31 @@ bool GENDRILL_WRITER_BASE::genDrillMapFile( const wxString& aFullFileName, PLOT_ } } + // Plot edge cuts in footprints + for( const FOOTPRINT* footprint : m_pcb->Footprints() ) + { + for( BOARD_ITEM* item : footprint->GraphicalItems() ) + { + if( item-> GetLayer() != Edge_Cuts ) + continue; + + switch( item->Type() ) + { + case PCB_FP_SHAPE_T: + { + PCB_SHAPE dummy_shape( *static_cast( item ) ); + dummy_shape.SetLayer( Dwgs_User ); + dummy_shape.SetParentGroup( nullptr ); // Remove group association, not needed for plotting + itemplotter.PlotPcbShape( &dummy_shape ); + } + break; + + default: + break; + } + } + } + int plotX, plotY, TextWidth; int intervalle = 0; char line[1024];