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:
@@ -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 =""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user