X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com Message-ID: <54E46B8F.7040301@envinsci.co.uk> Date: Wed, 18 Feb 2015 10:38:07 +0000 From: Matt Rhys-Roberts Organization: Envin Scientific Ltd. User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: geda-user AT delorie DOT com Subject: Re: [geda-user] Using gattrib with pinless, non-electrical components? References: <54E21859 DOT 9000708 AT envinsci DOT co DOT uk> In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Reply-To: geda-user AT delorie DOT com Hi Stuart, thanks for replying. I guess that adding non-electronic components to gschem, in order to have them come out in the BOM, is on the blurry edge of the design suite's scope! I only want to keep project hardware details upstream of the spreadsheet BOM, i.e. in gschem, to avoid having to think about copying the old hardware details into a new BOM at every project up-issue. And the number of open gEDA projects I manage is growing, so having non-electronic parts in the BOM would be a great boon. Maybe whoever advised me that gattrib would work with pinless symbols was mistaken, and meant to specify some other method of BOM creation. Getting gradually less confused :) Matt On 16/02/15 16:41, Stuart Brorson wrote: > 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. >>