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

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
X-TCPREMOTEIP: 63.119.35.194
X-Authenticated-UID: jpd AT noqsi DOT com
Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\))
Subject: Re: [geda-user] Searching for refdes's having a specific attribute?
X-Pgp-Agent: GPGMail 2.5.2
From: John Doty <jpd AT noqsi DOT com>
In-Reply-To: <568FBF61.3000708@iee.org>
Date: Fri, 8 Jan 2016 09:09:01 -0500
Message-Id: <1D5013F7-C793-4F26-8E29-CFB34FFCEE29@noqsi.com>
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> <568FBF61 DOT 3000708 AT iee DOT org>
To: geda-user AT delorie DOT com
X-Mailer: Apple Mail (2.1878.6)
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

--Apple-Mail=_A39E3B60-2091-4A30-8FA6-4EC7E166A63B
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
	charset=windows-1252


On Jan 8, 2016, at 8:53 AM, 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> wrote:

> 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.

I rarely use spreadsheets, even though I had a small role in their =
invention. But I often process the output of gnet-bom with AWK.

>=20
> MJE
>=20
> 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:
>>=20
>>> Thanks Michael... Hmm, it'll be interesting. The number of lines =
between the refdes=3Dxxx and OrderCode=3Dyyy 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 =93attribs=94 with contents:
>>=20
>> device
>> value
>> spec
>> footprint
>> description
>> OrderCode
>>=20
>> (adjust as needed)
>>=20
>> Then do =93gnetlist -g bom -o bom.txt <your schematics>
>>=20
>> That will maintain the relationship between refdes and attributes.
>>=20
>>> 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 .
>>>=20
>>> Regards,
>>> Matt.
>>>=20
>>>=20
>>> 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.
>>>>=20
>>>> If you need some help, drop me a line.
>>>>=20
>>>> Best regards,
>>>>=20
>>>> Michael.
>>>>=20
>>>> 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=3D1234567, =
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.
>>>>>=20
>>>>> 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?
>>>>>=20
>>>>> 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...
>>>=20
>> John Doty              Noqsi Aerospace, Ltd.
>> http://www.noqsi.com/
>> jpd AT noqsi DOT com
>>=20
>>=20
>=20
>=20

John Doty              Noqsi Aerospace, Ltd.
http://www.noqsi.com/
jpd AT noqsi DOT com



--Apple-Mail=_A39E3B60-2091-4A30-8FA6-4EC7E166A63B
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename=signature.asc
Content-Type: application/pgp-signature;
	name=signature.asc
Content-Description: Message signed with OpenPGP using GPGMail

-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQIcBAEBCgAGBQJWj8L9AAoJEF1Aj/0UKykRHpsQAKtEPInkkAQ9aFlc7LRW8f/x
n5hXYv9i5ncsxKiw+5tX5cQKUhPelpDBluPp8z7JqM4nutIm/piMCM/dMV4Y5sUO
kWrljKH5rCyWV55AFbr27N97QrBcTiK5T8wboWA6JRTxB6tjw2dAhtn4tj8lNNTy
v9R0VpJ3Thzbg5MZ1oVUUwWBb4D1OY0GSUFEW3Djbxce7bF0q6JKQXcJ/tEMwlNB
X5B6/uPVUPluiuDAyxqpEBkwZr3kMdykOJaFl0BMGcTFgfaSMcmagbq2jpwrQpoi
z5UcKbO1+UKIq0iHczysQhClJSQuPiZ+akkK2hfsdzPxKcsYxAlRNF9p4vnxf1um
TBh4DTplc5Balc1PaEI37LuAdF8hmRLx1ZU5TT1aLb8+GyS2GgHxo/Idclwuw0pY
4Rq+pX6GoHWXTyLK+Jpy3LSd0zNUJ0gnHegrXMUcCqgYrvdLKkLBTrSq+aXxGN2J
6cXlO5gkEWHLsQdqE2FgbJs2W8Voe7CKWH4X7msWRDIIwhdDyE1YniOc4sc5hGh0
RDa6wzHQAZ86ZUfs4mBPSx0Vrnn5LrN5Ch5aKNGmeDn0tmeArtfldn8tDGM4+i7f
IOP4xQlTf9LVCUAbNhAErQg1yXc1H7FeiZTaQUyQ6FknTPPenN2j/vgsZcE25vAR
csVFGdv8ydMJ9bzseKmu
=6BJt
-----END PGP SIGNATURE-----

--Apple-Mail=_A39E3B60-2091-4A30-8FA6-4EC7E166A63B--

- Raw text -


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