How to generate BOM in eeschema

Asked by Alessandro Fabilli

Hi, I need help to generate BOM in eeschema using command tools->BOM Generate Bill of Materials
I used the default plugin, for example: bom_with_title_block_2_csv

whit command line: xsltproc -o "%O" "C:\Users\alessandro\Documents\kicad\share\plugin\bom_with_title_block_2_csv.xsl" "%I"

The result is error message:
Execution of command 'xsltproc -o
"C:\User\alessandro\Documents\kicad\projects\isexpmini\isexpmini"
"C:\User\alessandro\Documents\kicad\share\plugin\bom_with_title_block_2_csv.xsl"
"C:\User\alessandro\Documents\kicad\projects\isexpmini\isexpmini.xml" 'failed (error 0: operazione completata.)

And in the Plugin Info windos, return this message:
Run command:
xsltproc -o "C:\Users\alessandro\Documents\kicad\projects\isexpmini\isexpmini" "C:\Users\alessandro\Documents\kicad\share\plugin\bom_with_title_block_2_csv.xsl" "C:\Users\alessandro\Documents\kicad\projects\isexpmini\isexpmini.xml"

Command error. Return code -1

I work with Windows 7 with Open Office suite.

Question information

Language:
English Edit question
Status:
Solved
For:
KiCad Edit question
Assignee:
No assignee Edit question
Solved by:
Alessandro Fabilli
Solved:
Last query:
Last reply:
Revision history for this message
Wayne Stambaugh (stambaughw) said :
#1

How did you install KiCad? Did you use one of the pre-built installers or did you compile and install from source? If you built from source, you will have to build xstlproc from source as well. I'm not sure that the current installers install xsltproc. I know at one point they did not. I'm not sure if this issue has be resolved yet. Look to see if xsltproc.exe is installed in the same path as the kicad binaries. If not, you will have to find a copy of xsltproc.exe. If xsltproc is installed on your system then it could be due to this bug: https://bugs.launchpad.net/kicad/+bug/1473373.

Revision history for this message
Alessandro Fabilli (o-alessandro) said :
#2

I use pre-built installer for Windows (new version r5955).
A colleague of mine told me to try installing a xsltproc, after having done the BOM is created.
I had to edit the command line by adding after .csv O%, so: xsltproc -o "%O.csv" "C:\Users\alessandro\Documents\kicad\share\plugin\bom_with_title_block_2_csv.xsl" "%I".

I think it would be better if the xsltproc package was installed with xxx Kicad.
What do you think Wayne?

Revision history for this message
Wayne Stambaugh (stambaughw) said :
#3

I believe our package developers are working on this. This needs to be resolved for the stable release. It may already be fixed in the most recent installers. The answer to your question is yes it should be installed with KiCad.

Revision history for this message
Alessandro Fabilli (o-alessandro) said :
#4

Thanks