Gerber file generation: fix incorrect aperFunction attribute for graphic items on edge cut layer.

Was NonConductor. Must be Profile.
This commit is contained in:
jean-pierre charras 2019-10-09 15:46:35 +02:00
parent 187cd5aa09
commit c7d636d560
3 changed files with 5 additions and 5 deletions

View File

@ -170,8 +170,8 @@ std::string GBR_APERTURE_METADATA::FormatAttribute( GBR_APERTURE_ATTRIB aAttribu
attribute_string = "TA.AperFunction,Conductor"; attribute_string = "TA.AperFunction,Conductor";
break; break;
case GBR_APERTURE_ATTRIB_CUTOUT: // print info associated to a outline case GBR_APERTURE_ATTRIB_EDGECUT: // print info associated to a board outline
attribute_string = "TA.AperFunction,CutOut"; attribute_string = "TA.AperFunction,Profile";
break; break;
case GBR_APERTURE_ATTRIB_VIAPAD: // print info associated to a flashed via case GBR_APERTURE_ATTRIB_VIAPAD: // print info associated to a flashed via

View File

@ -82,7 +82,7 @@ public:
GBR_APERTURE_ATTRIB_NONE, ///< uninitialized attribute GBR_APERTURE_ATTRIB_NONE, ///< uninitialized attribute
GBR_APERTURE_ATTRIB_ETCHEDCMP, ///< aperture used for etched components GBR_APERTURE_ATTRIB_ETCHEDCMP, ///< aperture used for etched components
GBR_APERTURE_ATTRIB_CONDUCTOR, ///< aperture used for connected items like tracks (not vias) GBR_APERTURE_ATTRIB_CONDUCTOR, ///< aperture used for connected items like tracks (not vias)
GBR_APERTURE_ATTRIB_CUTOUT, ///< aperture used for board cutout GBR_APERTURE_ATTRIB_EDGECUT, ///< aperture used for board cutout
GBR_APERTURE_ATTRIB_NONCONDUCTOR, ///< aperture used for not connected items (texts, outlines on copper) GBR_APERTURE_ATTRIB_NONCONDUCTOR, ///< aperture used for not connected items (texts, outlines on copper)
GBR_APERTURE_ATTRIB_VIAPAD, ///< aperture used for vias GBR_APERTURE_ATTRIB_VIAPAD, ///< aperture used for vias
GBR_APERTURE_ATTRIB_COMPONENTPAD, ///< aperture used for through hole component on outer layer GBR_APERTURE_ATTRIB_COMPONENTPAD, ///< aperture used for through hole component on outer layer

View File

@ -475,7 +475,7 @@ void BRDITEMS_PLOTTER::Plot_1_EdgeModule( EDGE_MODULE* aEdge )
} }
else if( aEdge->GetLayer() == Edge_Cuts ) // happens also when plotting copper layers else if( aEdge->GetLayer() == Edge_Cuts ) // happens also when plotting copper layers
{ {
gbr_metadata.SetApertureAttrib( GBR_APERTURE_METADATA::GBR_APERTURE_ATTRIB_NONCONDUCTOR ); gbr_metadata.SetApertureAttrib( GBR_APERTURE_METADATA::GBR_APERTURE_ATTRIB_EDGECUT );
} }
switch( type_trace ) switch( type_trace )
@ -729,7 +729,7 @@ void BRDITEMS_PLOTTER::PlotDrawSegment( DRAWSEGMENT* aSeg )
bool isOnCopperLayer = ( m_layerMask & LSET::AllCuMask() ).any(); bool isOnCopperLayer = ( m_layerMask & LSET::AllCuMask() ).any();
if( isOnCopperLayer && aSeg->GetLayer() == Edge_Cuts ) // can happens when plotting copper layers if( isOnCopperLayer && aSeg->GetLayer() == Edge_Cuts ) // can happens when plotting copper layers
gbr_metadata.SetApertureAttrib( GBR_APERTURE_METADATA::GBR_APERTURE_ATTRIB_NONCONDUCTOR ); gbr_metadata.SetApertureAttrib( GBR_APERTURE_METADATA::GBR_APERTURE_ATTRIB_EDGECUT );
switch( aSeg->GetShape() ) switch( aSeg->GetShape() )
{ {