Export KiCad v6 (v5?) BOM to be imported into PartsBox as CSV
For v6:
-
Copy
kicad_netlist_reader.py
andPartsBox_BOM.py
to%userprofile%\Documents\KiCad\5.99\plugins
folder. -
Open sch with eeschema, Tools -> Generate Bill of materials..., click "+", locate
%userprofile%\Documents\KiCad\5.99\plugins\PartsBox_BOM.py
. Edit "Command line" field to end with%O.csv
, instead of%O
to add csv file extension for the output file; -
Click generate; CSV file file will be located inside project folder and shell opened with csv editor.
This repository contains patched kicad_netlist_reader.py
. At present (2021-Jul-30) this file is not merged to KiCad master, and it is unknown if it will be merged. This file is installed by KiCad installer somewhere, probably in program files dir, together with KiCad stock Schematic editor BOM plugins. In case stock kicad_netlist_reader.py
is used, flag REMOVE_DNP_COMPONENTS
will be ignored, and BOM will contain all components, without any exceptions.
Only Id Designator Package Quantity Designation Supplier
and ref
(as per https://partsbox.io/how-to-generate-a-bom-from-kicad.html) columns are necessarry for partsbox import, other collumns inside csv can be customized by editing "PartsBox_BOM.py".
v5 plugins dir (untested): %appdata%\kicad\scripting\plugins
or C:\Program Files\KiCad\bin\scripting\plugins
.
Script is based on "# Example: Sorted and Grouped CSV BOM".