I believed/hoped that there will be some default to get BOM (I don’t know Python or XSLT).
Today I tried for the first time. I don’t see any default. Just Tools/Generate Bill of Materials/Generate does nothing (as I understood the xml file is generated but it is not what I wont).
Reading Help at Bill of Material window don’t help me much. I supposed mentioned there faq may be help. There ( https://answers.launchpad.net/kicad/+faq/2265 ) I read: “You are free to use the basic xsltproc stylesheet as is, and this will create a CSV file suitable for loading into a spreadsheet.”
Bingo - so there is some default and it should be what I wont. But what it is “basic xsltproc stylesheet” and how to use it. I understand that xsltproc is a scrypt processor so the stylesheet should be the scrypt file to find. I searched my KiCad installation directory for “stylesheet” and “stylesheet.*” with no results. Where it is?
Till now, as start for my BOM I used generated by Protel text files looking like this:
3 100p C1,C5,C7
2 220p C4,C6
4 100 R1,R2,R3,R4
I think it is the simplest what can be needed. I read them into spreadsheet dividing into columns by text positions, but other methods of dividing I can accept.
What I should do to get BOM file containing at least these information in form possible to read into spreadsheet?
It should’n be complicated but I don’t know how to do it.
My example text file don’t looks like intended.
After counts there are few spaces so values are linked vertically and also references are linked vertically (R1 is exactly under C1).
I would strongly recommend using the “KiBOM” plugin for this, it spits out what your after, I agree it should be baked in better, but this plugin does a very good job of it.
xsltproc is the command line tool the processes xml stylesheets. The default stylesheet that should have been installed with KiCad is bom2csv.xsl. For Windows the command line for running the plugin should look something like:
If I get it or that KiBOM will I be able to use it from schematic (by “Add Plugin” button in Bill of Material window)? May be I should try before answering but as I see so fast answer I try to show that I read and try to understand.
At that moment I understand(suppose) that at that window I can load some Plugins. Then probably I select one and press “Generate”. I suppose the field Command line I have to fill also. But I understood that different plugins (Python/XSLT) needs be colled diferently and there is only one line for Command line. So I am probably restricted to have in list only plugins of one type.
Or I have to use plugins you write about from command line?
Thanks, I’ll read, but I am not sure if I need too sofisticated tool. Starting from text file as I showed I have the rest way ready together with generating the list of ROHS declaration files for each element as new ROHS directive asks manufacturer (in Europe) to have such documentation. I’m not sure if it is time now to move my database to new tools, specially that I plan some Protel->KiCad transfer period when I will be using both (Protel for projects which are just modifications of existing ones).
That clarifies me also one thing - I supposed you are writeing about may be some external applications (to install separatelly from KiCad and use separatelly). I still don’t know how such plugin can have different outputs (don’t know how you select your output), but suppose instruction will tell me everything.
Thanks to all of you who tried to help me. Unfortunatelly courier bring a parcel with something which I have to work immedietelly (something which should work but don’t). And on Monday I will probably get prototypes of antennas to work with them (we got into reading distance problems when swithced from standard mifare to crypto mifare PLUS tags). So don’t know when I’ll get back to BOM subject.
I use V4.0.7 on Linux Mint, and on my PC I first thought that the BOM tool was “too complicated” to be worth looking into, and I just closed the window when presented with an empty selelction list.
After toying around with it for a few minutes, I discovered however that a bunch of scripts for generating a BOM are installed, but not in the place KiCad expects them to.
You can try pointing the bom tool to your local equivalent of:
Weird though:
I forgot where the dialog is for pointing PCBnew to those scripts.
Then I accidentally stumbled upon:
PCBnew -> File -> Fabrication Outputs -> BOM file -> Save
That generated a csv file with semicolons (much more sensible than commas) which I could import into libreoffice Calc without any problem.