scripts for bill of materials generation from kicad
GPL-2.0 License
scripts for bill of materials generation from KiCad
These are minor modifications of scripts provided with the KiCad source.
This script generates a bill of materials file in .csv format useful for ordering parts.
Parts with "DNP" in the "DNP" or "Note" field are ignored.
Generate a BOM in KiCad's eeschema using the kicad_netlist_reader plugin (if you are using a version of KiCad that is older than KiCad 5, generate the BOM without using a plugin). This will generate a .xml file in the project directory.
Convert the .xml file to a .csv file:
$ bom.py <file.xml>
-q
allows you to specify a quantity in number of boards-d
truncates lists of reference designators for Digi-Key order compatibility-s
outputs a single reference designator per row, required for validate-pos.shThis script checks for discrepancies between a footprint position file and a bill of materials.
bom.py -s
(see above).$ validate-pos.sh <file.pos> <bom.csv>