Interactive Html Bom Plugin for KiCad

Thanks @qu1ck
Do you have an example of this shell script?

Something along the lines of

#!/bin/bash

/path/to/generate_interactive_bom.py --your-flags-here "$@"

Pass file name to it like my_ibom_wrapper.sh /path/to/board.kicad_pcb and it will automatically pass the flags along with the file to ibom.

OK. Thank you.
I was actually thinking of the script to convert the .ini file in a list of flags for the CLI.

You could write a little program for that but you shouldn’t have to unless you have lots of options that are not default. You only have to specify flags that you changed.

Indeed, thanks a lot.

Is it possible to use IBOM (or the data in the html file) to create a placement (CPL) file? I have an IBOM and I’d like to generate files for JLPCB assembly.

Yes, but with a bunch of caveats. There is layer, position, angle info in the data, look at the format. You could extract it from the html file directly and decompress the pcbdata struct or you can manually copy from browser dev tools (pcbdata variable in global namespace will be already unpacked).

But you need to take care about what you include in your cpl file (most manufacturers want smt footpritns only or at least separate, ibom does not care about smt/smd distinction) what coordinates offset should you use.

And most importantly you need to make sure it was generated from kicad project, not from something else because I can only guarantee that bounding box center and angle is correct in case of kicad, not other tools. Even then, rotation angle of the footprint is not always the same as rotation from the reel that cpl files are expected to have but that is not specific to kicad or ibom.

1 Like

I thought this was a built in feature, but apparently not.
This script is good. How can I add columns, my version has only basics, and not for instance Manufacturer, Manufacturers code and so on.

I have not read all 387 messages, and I probably wont.

Add your fields in eeschema and update pcb. Then those fields will appear in extra fields list in ibom config window.

1 Like

I think I said this already, but this script is good. Thank you. Too bad my libraries are messy.

1 Like