delorie.com/archives/browse.cgi   search  
Mail Archives: geda-user/2012/07/12/12:36:37

X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f
X-Recipient: geda-user AT delorie DOT com
Message-ID: <4FFEFCFF.4060101@laserlinc.com>
Date: Thu, 12 Jul 2012 12:36:15 -0400
From: Joshua Lansford <Joshua DOT Lansford AT laserlinc DOT com>
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20120614 Thunderbird/13.0.1
MIME-Version: 1.0
To: geda-user AT delorie DOT com
Subject: Re: [geda-user] refdes index locations
References: <4FFD6CF7 DOT 60707 AT laserlinc DOT com> <20120711201719 DOT A8816819FBAB AT turkos DOT aspodata DOT se> <4FFEB545 DOT 5010000 AT laserlinc DOT com> <20120712155653 DOT 7D5EE819FBB2 AT turkos DOT aspodata DOT se>
In-Reply-To: <20120712155653.7D5EE819FBB2@turkos.aspodata.se>
Reply-To: geda-user AT delorie DOT com

>
> if line.startswith( "C " ):
> lineSplit = line.split()
> x = int( lineSplit[1] )
> y = int( lineSplit[2] )
> symName = lineSplit[6]
> justSawComponent = True
> refdes = ""
>
>
> Remeber the "T" line (x,y)'s instead, if next one is refdes=xx, use it.
>
That would be a good way to do it.  I'll try to remember to do so on a 
lunch break sometime.
>> The python script parses the ASCII schematic files themselves. (woot
>> human readable format)
>
> Yes, but the .sch-file doesn't tell you where your symbols are, it just
> tells you the basename.
Oh.  I don't think this script needs the information in the symbols.  
The location of the symbols is in the .sch file.  For my scripts that do 
need to read though the symbols, I have a separate text file with all 
the symbol dirs listed in it.  It's redundant but it works.

I am interested in knowing how polished a script needs to be before it 
is useful for someone else besides myself.  Let me know if this script 
makes itself useful in its current form.  I've got a bunch of other 
scripts which I might consider helpful depending on how useful this one 
end up becoming.

- Raw text -


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