Go to file
2023-12-12 12:02:09 +08:00
.gitignore Initial commit 2023-12-12 11:47:54 +08:00
generate_bom_from_xml.py Initial Commit of Scripts 2023-12-12 12:02:09 +08:00
README.md Initial Commit of Scripts 2023-12-12 12:02:09 +08:00

KiCAD_BOM_Generator

Description

This BOM Generation Script takes KiCAD sch xml file and generate BOM in the following formats and rules:

  1. Parts are not included if any of the following fields are checked:
    • DNP
    • excluded from BOM
  2. Parts are Grouped by:
    • Value
    • Footprint
    • MFR_PN
    • MFR_ALT
  3. Parts are sorted by: Ref
  4. Output Fields: Ref, Value, MFR_PN, MFR_PN_ALT, Qnty, LibPart, Footprint, Comment

Instructions to Use this Script

  1. Set PYTHONPATH to include the path to the kicad_netlist_reader scripts inside KiCad Installation
    • Located at {KiCAD Installation PATH}/share/kicad/plugins
  2. Generate the XML file from KiCad Schematics
  3. Run python -m generate_bom_from_xml input.xml output.csv