X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=XBqMXytDiJx41V6hTrHgcPwHGwfZWtWnHO+J/uX/4mo=; b=vJZmGa8eq0DPM6ADlOUFfqOjNB2LWhJ65X3BjYTUk25wwYK5wroObfdqDeLnIta5hm QZ/u3uCA5AAb7HXIGjbofkYNxfcFII0w50EtcbDlBE8Naw5v7ZeI0T/OeKYemBt7Be/D xTx0OQPLntfRBJQ83fMapm4o/qyPrj4tpMx/o+rN9I0gtc50wObaBrYMTok/VpXpwLR1 U8kq9LgX0s14pTree2wQPWT2/xBa2wdTiO59JZ0qG1Vj2SgGJPZixdLutv+oIaVVkqnN L1h9zH2l7A+dX84irAPIKUukKekvBgPjCFVnqxZ/IyJBGZUozReVHoKBbmH2dwiJsdow iWEw== MIME-Version: 1.0 X-Received: by 10.180.126.37 with SMTP id mv5mr6320057wib.2.1415039482431; Mon, 03 Nov 2014 10:31:22 -0800 (PST) In-Reply-To: References: Date: Mon, 3 Nov 2014 10:31:22 -0800 Message-ID: Subject: Re: [geda-user] Eagle's XML Format -> gEDA Schematic/PCB? From: Ouabache Designworks To: geda-user AT delorie DOT com Content-Type: multipart/alternative; boundary=e89a8f839d7db18feb0506f88d51 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 --e89a8f839d7db18feb0506f88d51 Content-Type: text/plain; charset=UTF-8 So I randomly picked one part from the pdf and found that it is contained in two separate sections in the xml file: >NAME >VALUE and Dual High-Speed Power MOSFET Drivers parsing this out would be easy enough and you could regurgitate it back out into a file named something like element13/MOSFET/TC4424AVPA/PDIP-8.sym Somebody will need to come up with an algorithm for the file name and how to map everything into geda format. John Eaton On Mon, Nov 3, 2014 at 9:47 AM, Jason White < whitewaterssoftwareinfo AT gmail DOT com> wrote: > Hello, I just recently learned that newer versions of Eagle use an > entirely XML based format for their Part Libraries as well as for > schematic pages and layouts. Has anyone been able to do anything with > this (maybe have written a script or something?) to allow gEDA to be > able to use the rather large component libraries that have been > produced and is freely distributed for Eagle? > > Take [1] for an example of such a library, it contains an enormous > number [>1000] of pre-made symbols and footprints. Element14 as well > as many others freely distribute part libraries to promote their > services. > > It would be a time saver to be able to use those libraries in gEDA > designs, either to extract individual symbols and packages, or perhaps > even to have something represent the entire library file as a > directory of symbols and footprints to gEDA. > > [1] > http://www.element14.com/community/servlet/JiveServlet/download/64255-1-101093/Microchip.zip > > Thanks, > Jason White > --e89a8f839d7db18feb0506f88d51 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
So I randomly picked one part from the pdf and found = that it is contained in two separate sections in the xml file:


&= lt;symbol name=3D"TC4424AVPA">
<pin name=3D"VDD&quo= t; x=3D"-17.78" y=3D"7.62" length=3D"middle" = direction=3D"pwr"/>
<pin name=3D"IN_A" x=3D&qu= ot;-17.78" y=3D"2.54" length=3D"middle" direction= =3D"in"/>
<pin name=3D"IN_B" x=3D"-17.78&= quot; y=3D"0" length=3D"middle" direction=3D"in&qu= ot;/>
<pin name=3D"NC_2" x=3D"-17.78" y=3D&quo= t;-5.08" length=3D"middle" direction=3D"nc"/><pin name=3D"NC" x=3D"-17.78" y=3D"-7.62"= ; length=3D"middle" direction=3D"nc"/>
<pin na= me=3D"GND" x=3D"-17.78" y=3D"-12.7" length=3D= "middle" direction=3D"pas"/>
<pin name=3D"= ;OUT_A" x=3D"17.78" y=3D"7.62" length=3D"midd= le" direction=3D"out" rot=3D"R180"/>
<pin= name=3D"OUT_B" x=3D"17.78" y=3D"5.08" length= =3D"middle" direction=3D"out" rot=3D"R180"/&g= t;
<wire x1=3D"-12.7" y1=3D"12.7" x2=3D"-12.= 7" y2=3D"-17.78" width=3D"0.1524" layer=3D"94= "/>
<wire x1=3D"-12.7" y1=3D"-17.78" x2= =3D"12.7" y2=3D"-17.78" width=3D"0.1524" laye= r=3D"94"/>
<wire x1=3D"12.7" y1=3D"-17.78= " x2=3D"12.7" y2=3D"12.7" width=3D"0.1524&quo= t; layer=3D"94"/>
<wire x1=3D"12.7" y1=3D"= ;12.7" x2=3D"-12.7" y2=3D"12.7" width=3D"0.15= 24" layer=3D"94"/>
<text x=3D"-4.0894" y= =3D"14.8844" size=3D"2.0828" layer=3D"95" rat= io=3D"10" rot=3D"SR0">&gt;NAME</text>
&= lt;text x=3D"-5.7912" y=3D"-22.2504" size=3D"2.082= 8" layer=3D"96" ratio=3D"10" rot=3D"SR0"= >&gt;VALUE</text>
</symbol>

and

<= div>
<deviceset name=3D"TC4424AVPA">
<description&= gt;Dual High-Speed Power MOSFET Drivers</description>
<gates>= ;
<gate name=3D"A" symbol=3D"TC4424AVPA" x=3D&quo= t;0" y=3D"0"/>
</gates>
<devices>
&l= t;device name=3D"" package=3D"DIP254P762X533-8">
= <connects>
<connect gate=3D"A" pin=3D"GND" = pad=3D"3"/>
<connect gate=3D"A" pin=3D"IN= _A" pad=3D"2"/>
<connect gate=3D"A" pin= =3D"IN_B" pad=3D"4"/>
<connect gate=3D"A&= quot; pin=3D"NC" pad=3D"8"/>
<connect gate=3D&= quot;A" pin=3D"NC_2" pad=3D"1"/>
<connect= gate=3D"A" pin=3D"OUT_A" pad=3D"7"/>
&= lt;connect gate=3D"A" pin=3D"OUT_B" pad=3D"5"= />
<connect gate=3D"A" pin=3D"VDD" pad=3D"= ;6"/>
</connects>
<technologies>
<technolog= y name=3D"">
<attribute name=3D"DESCRIPTION" v= alue=3D"MOSFET" constant=3D"no"/>
<attribute n= ame=3D"MPN" value=3D"TC4424AVPA" constant=3D"no&qu= ot;/>
<attribute name=3D"OC_FARNELL" value=3D"13323= 08" constant=3D"no"/>
<attribute name=3D"OC_NE= WARK" value=3D"34M8777" constant=3D"no"/>
&l= t;attribute name=3D"PACKAGE" value=3D"PDIP-8" constant= =3D"no"/>
<attribute name=3D"SUPPLIER" value= =3D"Microchip" constant=3D"no"/>
</technology&= gt;
</technologies>
</device>
</devices>
<= /deviceset>


parsing this out would be easy enough = and you could regurgitate it back out into a file named=C2=A0 something lik= e element13/MOSFET/TC4424AVPA/PDIP-8.sym

Somebody = will need to come up with an algorithm for the file name and how to map eve= rything into geda format.

John Eaton





On Mon, Nov 3, 2014 at 9:47 AM, Jason White <whitewat= erssoftwareinfo AT gmail DOT com> wrote:
Hello, I just recently learned that newer versions of Eagle use an entirely XML based format for their Part Libraries as well as for
schematic pages and layouts. Has anyone been able to do anything with
this (maybe have written a script or something?) to allow gEDA to be
able to use the rather large component libraries that have been
produced and is freely distributed for Eagle?

Take [1] for an example of such a library, it contains an enormous
number [>1000] of pre-made symbols and footprints. Element14 as well
as many others freely distribute part libraries to promote their
services.

It would be a time saver to be able to use those libraries in gEDA
designs, either to extract individual symbols and packages, or perhaps
even to have something represent the entire library file as a
directory of symbols and footprints to gEDA.

[1] http://www.element14.co= m/community/servlet/JiveServlet/download/64255-1-101093/Microchip.zip
Thanks,
Jason White

--e89a8f839d7db18feb0506f88d51--