Say that I have a schematic in which I forgot or somehow neglected to populate the fields of components — I know: a rookie mistake! (I’m at best making the transition from beginner to an “early intermediate” user, with KiCAD 5)
More specifically, the mistake was: for decoupling capacitors (something like 40+ of them), I did start placing one and assigning
value = 0.1uF, then copy-n-pasted. Just thinking in terms of grouping them together in the generated BOM. I should have — but didn’t — populated MPN and Digikey part number fields in that initially placed capacitor.
Hacking into the .sch file, and looking at the file format doc, I can more or less easily add those fields (read: I can write a quick program/script that does it, or possibly I could manage to do it with a search-and-replace in a regex-aware text editor).
My concrete question: is there a built-in way to accomplish this? (or any existing plugins, or standalone programs such as the one I’m thinking of writing?)
To avoid this in the future, the strategy I have in mind is creating custom library symbols — I could have a symbol Decoupling (or specific ones, such as Decoupling_0.1, Decoupling_0.1_402, Decoupling_0.1_603, Decoupling_0.1_25V, etc.), with the fields already in. For resistors, I could have symbols R_pullup_10k, R_pullup_4.7k, … , or simply the combinations of typical values with typical package sizes.
Does the above sound like a reasonable / effective strategy? Do you guys have your own strategy to deal with this? Or simply discipline when creating the schematic?