Foreword: I’ve recently started to create proper BOMs for my KiCad projects (Part/order numbers for each part). For my last board, I did it manually (click on part in schematics, hit E, fill in fields, rinse-and-repeat), and it got tedious after 20 parts or so. This time, I was looking at doing this for 120 parts, which triggered a lust for automation
Initially I cooked up a simple python script which parses eeschema files but I soon realized it’s a bad idea for two-way editing.
Then I set on adding this feature to KiCad (thanks, opensource) and arrived at this:
http://faili.wot.lv/tmp/2016-01-03_22-11-20.jpg (can’t embed images, argh)
Current implementation uses an editable list/table for default fields + user specified fields (set in eeschema options) thus allowing to edit properties/fields for multiple components easily.
At the moment only single row can be edited at one but I plan on extending this to be able to select multiple rows and update cells for all of them at once.
For the adventurous among us, code for this can be found here: https://code.launchpad.net/~reinis-veips/kicad/eeschema-batch-properties
And now, the questions:
- Would anybody else be interested in something like this in mainline KiCad?
- Is there a better way to solve this problem? I don’t really like the prospects of creating my own library just to set the default field values for components from sources I prefer.
- Any ideas for improvements?