delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2016/01/08/08:53:55

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
Message-ID: <568FBF61.3000708@iee.org>
Date: Fri, 08 Jan 2016 13:53:37 +0000
From: "M. J. Everitt (m DOT j DOT everitt AT iee DOT org) [via geda-user AT delorie DOT com]" <geda-user AT delorie DOT com>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0
MIME-Version: 1.0
To: geda-user AT delorie DOT com
Subject: Re: [geda-user] Searching for refdes's having a specific attribute?
References: <568F9808 DOT 5040808 AT envinsci DOT co DOT uk> <568F9AA5 DOT 4070402 AT iee DOT org> <568FB7F6 DOT 7040300 AT envinsci DOT co DOT uk> <6A8C16EF-C5A1-491D-B306-E14EEFE52AB6 AT noqsi DOT com>
In-Reply-To: <6A8C16EF-C5A1-491D-B306-E14EEFE52AB6@noqsi.com>
X-Provags-ID: V03:K0:nICR82k8//CPM/aNCY2u2MdaeEDL81pSpoQP++yaq5cG6VKIHEb
NGOmL0TqloDKAAXBr6DlwVE8mva4KSKlWt5BMPyjzKJVqDUXcW+QLaX3UCOATTpk9oV5lZf
+UXDiMZcuu6pBQs7G1bhwCkvF4OrgCcMP4hcjwmHcSVW2/P5TLmC5KzhKKTWNWup44Bm2QJ
eivUWCIQUE+yL3v++3gzg==
X-UI-Out-Filterresults: notjunk:1;V01:K0:0qoCs4dtUeU=:pKfc3gPPm36ZF/gQGh0VMj
ckxtbshf0jVOv2bdMU3D9rlfqty9m635Vd+y4MT3pHhnF+d4UjBA4V9Ky8lOvK6S9p+gmndpl
G9ov2Lw13oyhHC/zBu2+2lqOXh4vDI2CQnfAWva2i+nLqoYWkz8dsbwlX8ZmXU2TQGlCnz7NA
6coFbk7cu585KjsfN4C3yfiDoJ2/VIt8uytRq+sBlwVC4qLrfRRUCwWmzG2Pd4iYvZap6y1ib
HrvxmzNAM/p1uE0G4y9UnsRkbsCFJEov5oCvZKR8HaoAyprnTaufoyVV9L0ItBmR8Rgxp9xVI
lAtfueHvqRNkzpFb6XMbMN/zm5iQtYZj6tNqMXhLhY8EP84DaJ+iHf5u/L0aDpeYaiKCHsxqf
YdaXXOdFt1Flpy/cdLTPeDLg6LteAg10hRuGxnW/BSv7L9bUYtSG6nWqXA2ft6YsRxzVhy6uv
5VbiJZZ2zFL+7RUEbc9c5UwmQ4zKQ5+H8ExMrq0Ic1aqPDUWPoYSPw2E/UPqSzkSoPC2SrJXa
A9eEndx/qoUujhufWz0ERxfeCPxt41f9WNniWdO9yIDCJ8UQAwGttu+BoxjTWmt2k0Ic6Z8jX
gQEP5f3lIAKo77ykx9onIMG2Q4daMoWc/8aWN5iEOMWz7H1q/z7nDw9sjaixPIHlKjjOM0ZXS
PGilJVMesdGDaEdyz+m+MAF3GSwB7+9kQUn2uNjifdA0iXN8E9Wgh7Su9G4axwhEBRAPNC8I+
fflD+2VMtNXoxgTf
Reply-To: geda-user AT delorie DOT com

Yes, I forgot the 'bom' export (in fact I use 'bom2' all the time with
an 'attribs' file) Then I import to a spreadsheet, and can do whatever I
like in there. It just gets a bit cludgy when I have to re-import and
migrate any changes.

MJE

On 08/01/16 13:40, John Doty wrote:
> On Jan 8, 2016, at 8:21 AM, Matt Rhys-Roberts (matt DOT rhys-roberts AT envinsci DOT co DOT uk) [via geda-user AT delorie DOT com] <geda-user AT delorie DOT com> wrote:
>
>> Thanks Michael... Hmm, it'll be interesting. The number of lines between the refdes=xxx and OrderCode=yyy lines, varies in number and sequence. So outputting via grep would need a blanket number of pre-match context and post-match context lines to include. It'd be messy :)
> Make a file named “attribs” with contents:
>
> device
> value
> spec
> footprint
> description
> OrderCode
>
> (adjust as needed)
>
> Then do “gnetlist -g bom -o bom.txt <your schematics>
>
> That will maintain the relationship between refdes and attributes.
>
>> For now I'll just use grep to locate which .sch files contain the specific order code, then hop around the schematic in gschem using Attributes->FindSpecificText .
>>
>> Regards,
>> Matt.
>>
>>
>> On 08/01/16 11:16, M. J. Everitt (m DOT j DOT everitt AT iee DOT org) [via geda-user AT delorie DOT com] wrote:
>>> Now this is where the power of the raw text file comes into play. I
>>> suggest you look at 'grep' which is a standard text utility in linux,
>>> and will allow you to filter your schematics. You will probably need
>>> some context (-A/-B/-C) in your grep command to give you all the
>>> important information, but you can then process this to give you your list.
>>>
>>> If you need some help, drop me a line.
>>>
>>> Best regards,
>>>
>>> Michael.
>>>
>>> On 08/01/16 11:05, Matt Rhys-Roberts (matt DOT rhys-roberts AT envinsci DOT co DOT uk)
>>> [via geda-user AT delorie DOT com] wrote:
>>>> How could I search a directory of .sch schematic sheets for components
>>>> that contain a specific attribute, e.g. OrderCode=1234567, please?
>>>> Basically, I need to fit components manually to a board, one specific
>>>> type at a time, to keep production neat. So I need to list them by
>>>> unique order code, ideally.
>>>>
>>>> The search function would have to know how to navigate to and fro
>>>> within each component's curly brackets in the .sch file, to find which
>>>> component that attribute value belongs to. So I guess a perl script
>>>> might already exist for this?
>>>>
>>>> Gattrib doesn't let me sort by column, which would have been useful
>>>> for this. Maybe there's an obvious and easier way to do what I'm
>>>> trying to do...
>>
> John Doty              Noqsi Aerospace, Ltd.
> http://www.noqsi.com/
> jpd AT noqsi DOT com
>
>

- Raw text -


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