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 15:23:26 -08:00
parent 786fc14df3
commit 6cd750bb9c
5 changed files with 10 additions and 3 deletions
@@ -41,7 +41,7 @@ except IOError:
print(__file__, ":", e, sys.stderr)
f = sys.stdout
components = netlist.getInterestingComponents()
components = netlist.getInterestingComponents( excludeBoard=True )
row =""
@@ -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 )
@@ -41,7 +41,7 @@ except IOError:
print(__file__, ":", e, sys.stderr)
f = sys.stdout
components = netlist.getInterestingComponents()
components = netlist.getInterestingComponents( excludeBoard=True )
row =""