Interactive Html Bom Plugin for KiCad

This is fantastic plugin and should be considered as built-in feature for KiCAD!

I have just tried installing it but getting following error.

I am using Win 10 and running KiCAD 5.1.10 version. Any ideas?

Note: I tried installing plugin into C:\Users\xxxxx\AppData\Roaming\kicad\scripting\plugins and also C:\Program Files\KiCad\share\kicad\scripting\plugins but getting same result in both cases.

That was my mistake, I pushed the fix to github, download the plugin anew.

Hi there,

Fantastic plugin, I just wish I had discovered it when I started a year ago!

I have come across an error when I try to use with a complex board shape imported from a dxf, if I delete the external outline it is fine so I think it must be related. Looks similar to the error above but I have just updated and it is still present. I’m on Win 10 x64 & KiCAD 5.1.10 as well. Let me know if there is anything I can do to help debug.

Thanks for reporting, I pushed a fix to github. Update plugin and restart kicad.

Where is the configuration file stored? Is it possible to read it from file located elsewhere (i.e. server)?

Config is stored in the plugin folder. You can make a symlink to a mounted remote fs.

1 Like

Hi @qu1ck,
thanks for the great plugin. Here are my thoughts after using it a bit:

The character “/” in fields will be stored as “{slash}” in KiCad. The value “100n/50V” shows up in the interactive BOM as “100n{slash}50V”. Any chance to do a replace before generating the HTML? There are probably more characters that are handled like this in KiCad.

The copy-to-clipboard functionality is handy. Can you extend this feature to only copy the content of a single cell? As of now, I am unable to copy only the part number from the interactive BOM, because selecting (and therefore ctrl+c) the text of a cell seems not possible.

Again, thanks for the great plugin! :+1:

Which version are you using? Get latest from github (not release v2.3) it has many fixes.
Both things you are talking about work fine for me:

image

I am indeed using v2.3. I will check out the latest version. Thanks!

How do I filter on THT or SMT?

This question was originally posed by #187 anishkgt.

My boards contain both surface mount and through hole components. Of course, I place and reflow all of the surface mount components before placing any through hole ones. I only use iBom while placing the surface mount components and then all of the through hole components in the BOM are a distraction.

An almost equivalent implementation would be to allow SMT and THT components to be black listed at iBom generation time, the way that virtual components are.

Since a footprint is designated as SMT, THT or virtual in the footprint editor, the data should be readily accessible.

Right now you can only do that using custom field and use that field as dnp field or variant.

Version 2.4 is out: https://github.com/openscopeproject/InteractiveHtmlBom/releases/tag/v2.4
Note, grab the normal zip file, not pcm.zip file

This version brings a bunch of new features:

  • You can configure field order, remove Value/Footprint fields, choose which fields the table is grouped by
  • You can reorder or hide fields in html view dynamically
  • You can choose a checkbox to highlight footprints when checked
  • Better support for graphics (rectangles, bezier curves, text)
  • Kicad nightly support is updated, support for Eage/Fusion360 is added (see wiki for more info)
3 Likes

This error occurs when I try to start the most recent version:

Edit: My KiCad Version:
Application: KiCad (64-bit)

Version: (5.99.0-11550-g369d813a32), release build

Libraries:
wxWidgets 3.1.5
libcurl/7.74.0-DEV Schannel zlib/1.2.11

Platform: Windows 10 (build 19042), 64-bit edition, 64 bit, Little endian, wxMSW

Build Info:
Date: Jul 27 2021 21:01:30
wxWidgets: 3.1.5 (wchar_t,STL containers)
Boost: 1.75.0
OCC: 7.5.0
Curl: 7.74.0-DEV
ngspice: 34
Compiler: Visual C++ 1928 without C++ ABI

Build settings:
KICAD_USE_OCC=ON
KICAD_SPICE=ON

I’ve had some reports about this error but it doesn’t seem repeatable. If you rerun the plugin does the same error pop up? If you do import wx.grid in scripting console, exit kicad and restart, does the issue still happen?

After seeing the error message several times yesterday, I (of course :roll_eyes:) cannot reproduce it today and the plugin starts normally.

BTW: The title in the plugin window still says “InteractiveHtmlBom v2.3”. I’m certain I installed it from this link: https://github.com/openscopeproject/InteractiveHtmlBom/releases/download/v2.4/InteractiveHtmlBom.zip
image

Kicad restart was needed. This is a weird error, something funky going on in wxpython. The remedy is to ignore it on first use, restart kicad and you shouldn’t see it anymore.

I forgot to bump the version in one of the files…

Awesome project.

I’ve see in the recent versions references to Variants.

Where can I found information about how to use/implement variants in Interactive html plugin?

Thanks.

Add a custom field in eeschema with some different values on different components. Then generate netlist file, open ibom and in fields tab make sure the netlist file is picked up, select the field you added as variant field. You will see the different values you used in the whitelist/blacklist windows. If you select whitelist only components with variant field value on the whitelist will be included in the bom. If you select blacklist, only components with variant field not on the blacklist will be included in the bom.

3 Likes

I’m trying to give some custom functionality to your plugin and unfortunately I don’t know program without a debugger close to me. So I try to run outside kiCad but I’m becoming crazy with the relative imports ( from . import dialog) and similar things related with packaging.

Do you could give an advice about how you debug the tool?
Thx!

Use CLI mode to debug and add the root of InteractiveHtmlBom module to the classpath of your ide.
IDEA/PyCharm does it automatically if you open the project. You shouldn’t have issues with relative imports that way.

3 Likes