GitHub - hildogjr/KiCost: Build cost spreadsheet for a KiCad project

Hello,

Does someone know how to use KiCost?

I’m stuck on creating an XML BOM…

https://hildogjr.github.io/KiCost/docs/_build/singlehtml/index.html#document-installation

1 Like

Without looking into it, my guess is you’re looking for Tools > Generate Legacy Bill of Materials.

1 Like

The most directly way is creating the XML file and run kicost.exe file.xml on the terminal.

It is possible to kicost.exe --gui to invoque a graphical interface, if you do not know all the optional arguments.

https://hildogjr.github.io/KiCost

Or run kicost.exe --setup to make it listed into the KiCad BOM generators and create a desktop shortcut (it may way warn you about wxpython missing dependence, because we made KiCost only terminal, by default).

But it is important, for all user cases, to read the first part of the documentation that teaches how to registry a API key (in the past KiCost scraped the online distributors web page, but sure constant changes and anti robot script, it became impracticable and we change to the API approach).

The key must be registered by it use account on Mouser, Digikey, or others online distributors.

Even in the legacy export all the options are .csv

Apparently its the user at fault, but my .csv export directory does not contain any .xml files after the export, legacy or regular. Maybe in some cache directory? No idea.

The XML file should be in the same directory as the .csv that is generated by the bom_csv_grouped_extra script (part of the legacy export). By default, I believe it is just the project directory. I just tested on a random project on Mac OS 14.6.1 running KiCad v8.0.5 and I see the expected .xml and .csv files.

1 Like

Yes, thank you this script indeed generates an XML!