[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: gEDA-user: Design Nark
BOM is quite easy with current gaf products.
My Makefile version:
------------------------ cut here
----------------------------------------
BOARDNAME=RCReceiver
SCHEMAEXT=sch
PCBEXT=pcb
BOMEXT=bom
PSEXT=ps
PDFEXT=pdf
DRCEXT=drc
GSCHEM=gschem
SCHEMDRC=gnetlist
GSCH2PCBBIN=gsch2pcb
PCBBIN=pcb
PCB2PSFLAGS=--mirror --auto-mirror --ps-invert --media A5
# GUI schema editor
schema:
$(GSCHEM) $(BOARDNAME).$(SCHEMAEXT)
# Make DRC for schema file
schema_drc:
$(SCHEMDRC) -g drc2 $(BOARDNAME).$(SCHEMAEXT) -o
$(BOARDNAME).$(DRCEXT)
#Schema BOM
schema_bom:
$(SCHEMDRC) -g bom $(BOARDNAME).$(SCHEMAEXT) -o
$(BOARDNAME).$(BOMEXT)
# Create PCB from schema file
gsch2pcb:
$(GSCH2PCBBIN) -v -v $(BOARDNAME).$(SCHEMAEXT)
# GUI PCB editor
pcb:
$(PCBBIN) $(BOARDNAME).$(PCBEXT)
# export to PS format
ps:
$(PCBBIN) -x ps $(PCB2PSFLAGS) --psfile $(BOARDNAME).$(PSEXT)
$(BOARDNAME).$(PCBEXT)
# export to PDF
pdf: ps
ps2pdf -sPAPERSIZE=a5 $(BOARDNAME).$(PSEXT) $(BOARDNAME).$(PDFEXT)
clean:
rm -f *.$(DRCEXT)
rm -f *.*[~-]
rm -f *.pdf
rm -f *.ps
rm -f *.cmd
rm -f *.net
rm -f *.$(BOMEXT)
------------------------ cut here
----------------------------------------
File attribs must exists in project directory.
After you can import created file $(BOARDNAME).$(BOMEXT) to any
spreadsheet application for further processing.
Also usefull key -g bom2 which produce count for each similar
components (with the same attribute values defined in attribs file).
2011/7/20 Kai-Martin Knaak <[1]kmk@xxxxxxxxxxxxxxx>
Hannu Vuolasaho wrote:
> Find these BC547 transistors from these many suppliers and write BOM.
Yes, this would be a wonderful tool. But it would also be more than
a
simple script whipped up on a lazy weekend. Unfortunately,
distributors
offer their commodities in vastly different formats. In addition,
distributors like to change the way their online catalogs work. A
searching tool would have to track these changes.
Next step would be: Import the BOM to an accounting application like
sql-ledger :-)
---<)kaimartin(>---
--
Kai-Martin Knaak
Email: [2]kmk@xxxxxxxxxxxxxxx
[3]http://pool.sks-keyservers.net:11371/pks/lookup?search=0x6C0B9F53
not happy with moderation of geda-user
_______________________________________________
geda-user mailing list
[4]geda-user@xxxxxxxxxxxxxx
[5]http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
References
1. mailto:kmk@xxxxxxxxxxxxxxx
2. mailto:kmk@xxxxxxxxxxxxxxx
3. http://pool.sks-keyservers.net:11371/pks/lookup?search=0x6C0B9F53
4. mailto:geda-user@xxxxxxxxxxxxxx
5. http://www.seul.org/cgi-bin/mailman/listinfo/geda-user
_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user