www.delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2015/02/16/11:42:29

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-Virus-Scanned: amavisd-new at cloud9.net
Date: Mon, 16 Feb 2015 11:41:10 -0500 (EST)
From: Stuart Brorson <sdb AT cloud9 DOT net>
To: gEDA User List <geda-user AT delorie DOT com>
Subject: Re: [geda-user] Using gattrib with pinless, non-electrical
components?
In-Reply-To: <54E21859.9000708@envinsci.co.uk>
Message-ID: <alpine.BSF.2.00.1502161133510.52458@earl-grey.cloud9.net>
References: <54E21859 DOT 9000708 AT envinsci DOT co DOT uk>
User-Agent: Alpine 2.00 (BSF 1167 2008-08-23)
MIME-Version: 1.0
Reply-To: geda-user AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: geda-user AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019