Mail Archives: geda-user/2015/02/16/11:42:29
I wrote gattrib some time ago. It is kind of limited in what it can
do, and I suspect you can't use it on components which don't have the
proper set of attributes that electrical components have in gschem.
What I do is this: I use gattrib to read in my schematic components,
then do file->export csv. Then I read the CSV file into oocalc (or
your favorite spreadsheet program), and add the other BOM components
there. I put unit costs into my component's attributes, so I can also
compute a BOM cost using oocalc. In general, I use oocalc to manage
my entire BOM, and gattrib to manage and update the attributes of my
schematic components only.
I realize that you can't use this flow to add non-electronic
components back into your schematic. However, to hold those
non-electronic components in gschem/gattrib, you need to create a full
symbol with the right set of attributes (at least a DEVICE and REFDES
attribute, IIRC). This is a PITA, so I don't generally do it for
random stuff like fasteners. YMMV.
I know DJ has a similar work flow, but he uses a script he wrote (I
belive) which reads .sch files and creates a .csv directly. You might
look at his scripts on gedasymbols.org for that script.
Stuart
On Mon, 16 Feb 2015, Matt Rhys-Roberts wrote:
> Following some advice given to me last year, I've been trying to describe some
> non-electrical hardware components (e.g. fasteners, spacers etc) on a separate
> .sch sheet, so that I can generate a non-pcb BOM via gattrib. This is to
> create a list of all possible project parts.
>
> Problem: gattrib won't even start up when I point it at this non-electrical
> sheet, despite using the -q (quiet) switch, and complains that there are no
> pins defined at all.
>
> I would welcome any suggestions and advice at this stage.
>
> Kind regards,
> Matt.
>
- Raw text -