Respect "Exclude from Board" flag in export

When exporting to board-based netlists, skip components marked for
exclude from Board

Fixes https://gitlab.com/kicad/code/kicad/issues/13422
This commit is contained in:
Seth Hillbrand 2023-01-10 14:28:44 -08:00
parent 786fc14df3
commit 6cd750bb9c
5 changed files with 10 additions and 3 deletions

View File

@ -76,6 +76,9 @@ bool NETLIST_EXPORTER_CADSTAR::WriteNetlist( const wxString& aOutFileName,
if( !symbol )
continue;
if( !symbol->GetIncludeOnBoard() )
continue;
footprint = symbol->GetFootprintFieldText( true );
if( footprint.IsEmpty() )

View File

@ -76,6 +76,9 @@ bool NETLIST_EXPORTER_ORCADPCB2::WriteNetlist( const wxString& aOutFileName,
if( !symbol )
continue;
if( !symbol->GetIncludeOnBoard() )
continue;
CreatePinList( symbol, &sheet, true );
if( symbol->GetLibSymbolRef()

View File

@ -41,7 +41,7 @@ except IOError:
print(__file__, ":", e, sys.stderr)
f = sys.stdout
components = netlist.getInterestingComponents()
components = netlist.getInterestingComponents( excludeBoard=True )
row =""

View File

@ -41,7 +41,7 @@ except IOError:
print(__file__, ":", e, sys.stderr)
f = sys.stdout
components = netlist.getInterestingComponents()
components = netlist.getInterestingComponents( excludeBoard=True )
row =""
@ -61,6 +61,7 @@ row += '.TYP FULL' + '\n\n'
'''
for c in components:
c.getExcludeFromBOM
row += ".ADD_COM " + " " + c.getRef() + " \"" + c.getValue() + "\""
fp_name = c.getFootprint( False )

View File

@ -41,7 +41,7 @@ except IOError:
print(__file__, ":", e, sys.stderr)
f = sys.stdout
components = netlist.getInterestingComponents()
components = netlist.getInterestingComponents( excludeBoard=True )
row =""