Commit 60171f7a authored by viknn's avatar viknn

Added datasheet field in to the BOM file (KICAD_GOST)

parent 3066c705
...@@ -587,7 +587,11 @@ int DIALOG_BUILD_BOM::PrintComponentsListByRef( ...@@ -587,7 +587,11 @@ int DIALOG_BUILD_BOM::PrintComponentsListByRef(
}; };
// Print comment line: // Print comment line:
#if defined(KICAD_GOST)
fprintf( f, "ref%cvalue%cdatasheet", s_ExportSeparatorSymbol,s_ExportSeparatorSymbol );
#else
fprintf( f, "ref%cvalue", s_ExportSeparatorSymbol ); fprintf( f, "ref%cvalue", s_ExportSeparatorSymbol );
#endif
if( aIncludeSubComponents ) if( aIncludeSubComponents )
{ {
...@@ -655,11 +659,24 @@ int DIALOG_BUILD_BOM::PrintComponentsListByRef( ...@@ -655,11 +659,24 @@ int DIALOG_BUILD_BOM::PrintComponentsListByRef(
sprintf( CmpName + strlen( CmpName ), "%c", Unit ); sprintf( CmpName + strlen( CmpName ), "%c", Unit );
if( CompactForm ) if( CompactForm )
#if defined(KICAD_GOST)
fprintf( f, "%s%c%s%c%s", CmpName, s_ExportSeparatorSymbol,
CONV_TO_UTF8( DrawLibItem->GetField( VALUE )->m_Text ), s_ExportSeparatorSymbol,
CONV_TO_UTF8( DrawLibItem->GetField( DATASHEET )->m_Text ) );
#else
fprintf( f, "%s%c%s", CmpName, s_ExportSeparatorSymbol, fprintf( f, "%s%c%s", CmpName, s_ExportSeparatorSymbol,
CONV_TO_UTF8( DrawLibItem->GetField( VALUE )->m_Text ) ); CONV_TO_UTF8( DrawLibItem->GetField( VALUE )->m_Text ) );
#endif
else else
#if defined(KICAD_GOST)
fprintf( f, "| %-10s %-12s %-20s", CmpName,
CONV_TO_UTF8( DrawLibItem->GetField( VALUE )->m_Text ), CONV_TO_UTF8( DrawLibItem->GetField( DATASHEET )->m_Text ) );
#else
fprintf( f, "| %-10s %-12s", CmpName, fprintf( f, "| %-10s %-12s", CmpName,
CONV_TO_UTF8( DrawLibItem->GetField( VALUE )->m_Text ) ); CONV_TO_UTF8( DrawLibItem->GetField( VALUE )->m_Text ) );
#endif
if( aIncludeSubComponents ) if( aIncludeSubComponents )
{ {
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* the actual pen size is default value * BUS_WIDTH_EXPAND * the actual pen size is default value * BUS_WIDTH_EXPAND
*/ */
#if defined(KICAD_GOST) #if defined(KICAD_GOST)
#define BUS_WIDTH_EXPAND 2 #define BUS_WIDTH_EXPAND 3.6
#else #else
#define BUS_WIDTH_EXPAND 1.4 #define BUS_WIDTH_EXPAND 1.4
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment