Browse Source

Respect exclude from bom in all python files

Two scripts were missing the excludeBOM=True selector.
newinvert
Fabian Pflug 2 years ago
committed by Jon Evans
parent
commit
a1f796ffa0
  1. 5
      eeschema/python_scripts/bom_csv_grouped_by_value_with_fp.py
  2. 4
      eeschema/python_scripts/bom_csv_grouped_extra.py

5
eeschema/python_scripts/bom_csv_grouped_by_value_with_fp.py

@ -52,10 +52,13 @@ out.writerow( ['Generator:', sys.argv[0]] )
out.writerow(['Component Count:', len(net.components)])
out.writerow(['Ref', 'Qnty', 'Value', 'Cmp name', 'Footprint', 'Description', 'Vendor', 'DNP'])
# subset the components to those wanted in the BOM, controlled
# by <configure> block in kicad_netlist_reader.py
components = net.getInterestingComponents( excludeBOM=True )
# Get all of the components in groups of matching parts + values
# (see ky_generic_netlist_reader.py)
grouped = net.groupComponents()
grouped = net.groupComponents(components)
# Output all of the component information
for group in grouped:

4
eeschema/python_scripts/bom_csv_grouped_extra.py

@ -86,9 +86,11 @@ out = csv.writer(f, lineterminator='\n', delimiter=',', quotechar='\"', quoting=
# Output a CSV header
out.writerow(header_names)
components = net.getInterestingComponents( excludeBOM=True )
# Get all of the components in groups of matching parts + values
# (see kicad_netlist_reader.py)
grouped = net.groupComponents()
grouped = net.groupComponents(components)
# Output all of the component information
index = 1

Loading…
Cancel
Save