This is an old revision of the document!
gschem tips
Generating BOM from schema
- make a text file called 'attribs' listing the attributes you want in the BOM, for example:
$ print "device\nfootprint\ncomment" > ./attribs $ cat ./attribs device footprint comment $
No need to explicitly specify 'refdes', it is always added.
- Let gnetlist create the BOM and sort it using 'refdes'
$ gnetlist -g bom -o file1.bom file1.sch $ sort -o file1.bom file1.bom
Tabulator is used as a separator in this case. There is also a possibility to generate BOM with colon used as a separator:
$ gnetlist -g bom2 -o file1.bom file1.sch