How to edit the BOM

Hello!
I am a bit lost with the FAQ and weird python commands…maybe someone could wind it back a little bit.

I maintained the table I can reach from eeschema with a lot of information, for me and also for the ordering company.

Now I want to print a BOM to send it away. I do that from pcbnew.

But where is the dialog where I can specify which fields should be exported? I need more than there are.

Alternative: Can I export the complete sheet that I get when I open eeschema?

Thanks

Hello,

the default way for exporting BOM data from eescheme is using and modifying the python scripts which come together with KiCad.

However, I recently had the same issue while preparing a little bit more custom data for my EMS for multiple population variants of a board. A little bit kind of accidently I found out, that you can also copy the whole BOM table by marking it and pressing STRG+C in eescheme and then paste it for example to excel.

You can try to use KiField Edit multiple component fields using KiField
Or edit default bom scripts and add there fields you needed

Editing scripts is far from what I am capable of I think…I go with the copy paste approach. thanks!

1 Like

Nothing wrong with using a text editor or spreadsheet or other methods to complement what the BOM scripts generate.

The problem with this workflow when using any version up to and including 5.1.x is the custom fields that you added to your components in the schematic don’t get picked up by PCBNew. No matter how you try to export a BOM from PCBNew, you won’t get the extra fields because PCBNew doesn’t know about them. This is changing for the development nightly releases that will eventually be v6, but that is in the future and not now. There are several BOM exporter scripts in EESchema, you can try them out (watch out, from what I’ve read here, some generate csv files w/o extensions). Or, you can open the Edit Symbol Fields... from the Tools menu in EESchema. Here is a screenshot from a stupidly simple board that I use as a scratch-pad:


In this window, using the check-boxes on the left, you can show or hide fields and change what fields are used for grouping. Then CTRL-a to select all and CTRL-c to copy the table to the clipboard (modify the bucky bits for your OS). Then paste into your favorite spread sheet for further processing (or paste into an empty .csv file using your favorite text editor).

BTW, you never mention what version you are using, so I’m assuming that you are using v5.1.x (currently the latest is 5.1.9 but you may not have updated to that yet, though I would advise doing so to be able to take advantage of all the cumulative bug fixes since 5.1.0 came out). I don’t recall if this trick works in 5.0.x, and I’m positive it won’t in versions that predate 5.0.0.

If you want to Eeschema, This may be helpful…

I am on the latest one, 5.1.9, of cause :slight_smile:

I really dont understand how suchba nice piece of software can get so messy about exporting a plain table with text. I mean really? A pile of python giberish to choose from, plugins of all sorts, problems getting tje fields from eeschema to newpcb?

I just copied from eeschema, cmd+c and am now doing fine with a simple spreadsheat on numbers.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.