X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com X-Injected-Via-Gmane: http://gmane.org/ To: geda-user AT delorie DOT com From: Kai-Martin Knaak Subject: Re: [geda-user] why I parse sch: gnetlist, writing backends (Back annotation) Date: Wed, 15 Jul 2015 01:47:40 +0200 Lines: 21 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> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Complaints-To: usenet AT ger DOT gmane DOT org X-Gmane-NNTP-Posting-Host: a89-182-151-27.net-htp.de User-Agent: KNode/4.14.1 Reply-To: geda-user AT delorie DOT com Mitch Davis (mjd+geda-user AT hackvana DOT com) [via geda-user AT delorie DOT com] wrote: >>import xorn.storage >>from xorn.geda.read import read >> >>sch = read('some-schematic.sch') >> >>for ob in sch.toplevel_objects(): >>data = ob.data() >>if isinstance(data, xorn.storage.Line): >>print 'X1: %d Y1: %d X2: %d Y2: %d' % ( >>data.x, data.y, data.x + data.width, data.y + data.height) >> > > I don't know why everyone is complaining about Scheme. I can read > this just fine, the first time I ever saw it. It is written in python. Maybe, that's why... ---<)kaimartin(>---