kicad-developers team mailing list archive
-
kicad-developers team
-
Mailing list archive
-
Message #18782
[PATCH] Use specific gerber extensions for inner Cu layers and the Edge_Cuts layer in preference to the default .gbr .
The attached patch is a minor fix to the Protel gerber file name
extensions to assign
a more specific extension to internal Cu layers as well as the Edge_Cuts
layer
as described here on the Altium site:
http://techdocs.altium.com/display/ADRR/WorkspaceManager_Dlg-GerberSetup_Form((Gerber+Setup))_AD
Regards,
Marco
diff --git a/pcbnew/pcbplot.cpp b/pcbnew/pcbplot.cpp
index 7d5527e..4b8f89e 100644
--- a/pcbnew/pcbplot.cpp
+++ b/pcbnew/pcbplot.cpp
@@ -55,7 +55,7 @@ const wxString GetGerberExtension( LAYER_NUM aLayer )
return wxT( "gbl" );
else
{
- return wxT( "gbr" );
+ return wxString::Format( wxT( "g%d" ), aLayer+1 );
}
}
else
@@ -74,11 +74,12 @@ const wxString GetGerberExtension( LAYER_NUM aLayer )
case B_Mask: return wxT( "gbs" );
case F_Mask: return wxT( "gts" );
+ case Edge_Cuts: return wxT( "gm1" );
+
case Dwgs_User:
case Cmts_User:
case Eco1_User:
case Eco2_User:
- case Edge_Cuts:
default: return wxT( "gbr" );
}
}
Follow ups