ADDED: Pcbnew, add "pin function" (pin name in eeschema) to pads.

The pin name defined in Eeschema is now available as pad info.
Useful for the board designer (the pin function is displayed in the message panel).
Needed for the Gerber P&P files.
This commit is contained in:
jean-pierre charras
2019-11-23 09:12:43 +01:00
parent 13df645af9
commit 71cd8c57bf
23 changed files with 2665 additions and 2421 deletions
+8 -1
View File
@@ -79,7 +79,14 @@ void BRDITEMS_PLOTTER::PlotPad( D_PAD* aPad, COLOR4D aColor, EDA_DRAW_MODE_T aPl
gbr_metadata.SetCopper( true );
if( isOnExternalCopperLayer )
gbr_metadata.SetPadName( aPad->GetName() );
{
const bool useUTF8 = false;
const bool useQuoting = false;
gbr_metadata.SetPadName( aPad->GetName(), useUTF8, useQuoting );
if( !aPad->GetName().IsEmpty() )
gbr_metadata.SetPadPinFunction( aPad->GetPinFunction(), useUTF8, useQuoting );
}
gbr_metadata.SetNetName( aPad->GetNetname() );