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:
parent
786fc14df3
commit
6cd750bb9c
|
@ -76,6 +76,9 @@ bool NETLIST_EXPORTER_CADSTAR::WriteNetlist( const wxString& aOutFileName,
|
||||||
if( !symbol )
|
if( !symbol )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
if( !symbol->GetIncludeOnBoard() )
|
||||||
|
continue;
|
||||||
|
|
||||||
footprint = symbol->GetFootprintFieldText( true );
|
footprint = symbol->GetFootprintFieldText( true );
|
||||||
|
|
||||||
if( footprint.IsEmpty() )
|
if( footprint.IsEmpty() )
|
||||||
|
|
|
@ -76,6 +76,9 @@ bool NETLIST_EXPORTER_ORCADPCB2::WriteNetlist( const wxString& aOutFileName,
|
||||||
if( !symbol )
|
if( !symbol )
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
if( !symbol->GetIncludeOnBoard() )
|
||||||
|
continue;
|
||||||
|
|
||||||
CreatePinList( symbol, &sheet, true );
|
CreatePinList( symbol, &sheet, true );
|
||||||
|
|
||||||
if( symbol->GetLibSymbolRef()
|
if( symbol->GetLibSymbolRef()
|
||||||
|
|
|
@ -41,7 +41,7 @@ except IOError:
|
||||||
print(__file__, ":", e, sys.stderr)
|
print(__file__, ":", e, sys.stderr)
|
||||||
f = sys.stdout
|
f = sys.stdout
|
||||||
|
|
||||||
components = netlist.getInterestingComponents()
|
components = netlist.getInterestingComponents( excludeBoard=True )
|
||||||
|
|
||||||
row =""
|
row =""
|
||||||
|
|
||||||
|
|
|
@ -41,7 +41,7 @@ except IOError:
|
||||||
print(__file__, ":", e, sys.stderr)
|
print(__file__, ":", e, sys.stderr)
|
||||||
f = sys.stdout
|
f = sys.stdout
|
||||||
|
|
||||||
components = netlist.getInterestingComponents()
|
components = netlist.getInterestingComponents( excludeBoard=True )
|
||||||
|
|
||||||
row =""
|
row =""
|
||||||
|
|
||||||
|
@ -61,6 +61,7 @@ row += '.TYP FULL' + '\n\n'
|
||||||
'''
|
'''
|
||||||
|
|
||||||
for c in components:
|
for c in components:
|
||||||
|
c.getExcludeFromBOM
|
||||||
row += ".ADD_COM " + " " + c.getRef() + " \"" + c.getValue() + "\""
|
row += ".ADD_COM " + " " + c.getRef() + " \"" + c.getValue() + "\""
|
||||||
|
|
||||||
fp_name = c.getFootprint( False )
|
fp_name = c.getFootprint( False )
|
||||||
|
|
|
@ -41,7 +41,7 @@ except IOError:
|
||||||
print(__file__, ":", e, sys.stderr)
|
print(__file__, ":", e, sys.stderr)
|
||||||
f = sys.stdout
|
f = sys.stdout
|
||||||
|
|
||||||
components = netlist.getInterestingComponents()
|
components = netlist.getInterestingComponents( excludeBoard=True )
|
||||||
|
|
||||||
row =""
|
row =""
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue