X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com Date: Fri, 10 Jul 2015 18:19:01 +0200 (CEST) X-X-Sender: igor2 AT igor2priv To: "Vladimir Zhbanov (vzhbanov AT gmail DOT com) [via geda-user AT delorie DOT com]" X-Debug: to=geda-user AT delorie DOT com from="gedau AT igor2 DOT repo DOT hu" From: gedau AT igor2 DOT repo DOT hu Subject: Re: [geda-user] why I parse sch: gnetlist, writing backends (Back annotation) In-Reply-To: <20150710152308.GA17023@localhost.localdomain> Message-ID: References: <559E86A4 DOT 3040109 AT ecosensory DOT com> <201507091843 DOT t69IhGF6028321 AT envy DOT delorie DOT com> <6392CE1A-AFA0-4D62-979C-3F35786422BD AT noqsi DOT com> <201507092127 DOT t69LRHRC001744 AT envy DOT delorie DOT com> <559EFE69 DOT 1040601 AT zoot DOT drehmel DOT com> <201507092332 DOT t69NWUEN006109 AT envy DOT delorie DOT com> <20150710132650 DOT GA15876 AT localhost DOT localdomain> <20150710152308 DOT GA17023 AT localhost DOT localdomain> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed 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 Precedence: bulk On Fri, 10 Jul 2015, Vladimir Zhbanov (vzhbanov AT gmail DOT com) [via geda-user AT delorie DOT com] wrote: > On Fri, Jul 10, 2015 at 03:49:27PM +0200, gedau AT igor2 DOT repo DOT hu wrote: >> >> >> On Fri, 10 Jul 2015, Vladimir Zhbanov (vzhbanov AT gmail DOT com) [via geda-user AT delorie DOT com] wrote: >>> >>> TL;DR >>> Have you ever tried to read 'info geda-scheme'? >> >> No. >> >> But I do div down in random unknown code written in random unknown-to-me >> languages from time to time to fix something or make small modifications, so >> I know when it takes much longer than it should. With scheme, it does. >> >> I did it once, it enables me to access most of the data I need, so I won't >> need to do it ever again. >> >> Regards, >> >> Igor2 > > If your task was outputting coords of line segments in your schematic, > it is as easy as the script attached. With little modifications you can > output it to any file. You can use it in gschem or with the gaf utility > if you want to make it a stand-alone program. Thanx. > > And for the record: gnetlist is g-netlist. It's for netlisting (for work > with pin, nets, components) rather than accessing any schematic objects. > > My wish to all participants of these thread (hope it's non-offensive): > please, try to be less ignorant, better ask here rather than flood the > list with your private opinions on how everything around is bad. Btw, it was you who TL;DR'd. One part of my story was right about trying to extract attributes and netlist stuff with gnetlist That was the part that took incredibly long due to scheme. In turn this experience made me not even consider using it again for the other task which was coord extraction. So next time I have something similar to solve, I will first ask you for the scheme code and only if that fails I do the dirty sch-parsing awk fewliner. Regards, Igor2