Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 09:39 17 Sep 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Needing HELP with Eagle . . .

Author Message
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2948
Posted: 02:56am 14 Mar 2015
Copy link to clipboard 
Print this post

I am laying out a PCB and have a part that I cannot find a .lbr file for. However, I have come across a .dtd file here on GitHub that I see contains the part I need so I was thinking to somehow 'import' the .dtd file into Eagle and then simply using Copy & Paste to place the component footprint into my PCB layout.

However, I am totally stuck with what to do with the .dtd file and how to import it into Eagle. I have spent the last 4.5 hours Googling but with no joy whatsoever

Can anyone help me, please . . . .

WW
 
MicroBlocks

Guru

Joined: 12/05/2012
Location: Thailand
Posts: 2209
Posted: 03:49am 14 Mar 2015
Copy link to clipboard 
Print this post

Which part is it?
The link you posted is to a .brd file and all components are in a library called pxhawk2 which can be found here.
If the part you look for is on that board it should be in this library file.

A .dtd file is a Document Type Definition file which is used to validate a xml file.
A .lbr file in Eagle is an xml file and it is validated against eagle.dtd which should be on your machine already as partof the eagle software.

Edited by TZAdvantage 2015-03-15
Microblocks. Build with logic.
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2948
Posted: 04:15am 14 Mar 2015
Copy link to clipboard 
Print this post

Hi TZA,

I am after the SD card holder.
When clicking the link on my iMac it just opens up a browser page with lots of text (and no option that I can see to save it as an .lbr (which I am ultimately wanting))

Just opened up in Windoze and now it shows the URL as a .lbr file but still no option to save it.

Please, HOW do I save the 'browser' view as a .lbr file ??

I must be missing something so simple here surely

WW
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2948
Posted: 04:54am 14 Mar 2015
Copy link to clipboard 
Print this post

SUCCESS!!

Thanks TZA - you gave me a clue to allow me to solve it . . . . .

Not bad for six hours of effort!

 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9641
Posted: 02:13pm 14 Mar 2015
Copy link to clipboard 
Print this post

I could have sent you a GBR with a SD card footprint, if you got desperate.

Six hours is still time well spent, if you come out of that with a solution.
Smoke makes things work. When the smoke gets out, it stops!
 
MicroBlocks

Guru

Joined: 12/05/2012
Location: Thailand
Posts: 2209
Posted: 06:20pm 14 Mar 2015
Copy link to clipboard 
Print this post

  WhiteWizzard said   Hi TZA,
I must be missing something so simple here surely
WW

In windows (IE, chrome and firefox) you right click on the link and choose 'save as'.
You then get a dialog that prompts you for the location and file name. The file name should already be there, but if not you can enter it.
I guess on the Mac it will be something similar but with only one mouse button it must be some key combination. (Or do Macs finally have more then one mouse button?)
Alternatively you can copy the text from your browser and paste it into a text editor (notepad) and save it with the right file name.

Microblocks. Build with logic.
 
WhiteWizzard
Guru

Joined: 05/04/2013
Location: United Kingdom
Posts: 2948
Posted: 02:42am 15 Mar 2015
Copy link to clipboard 
Print this post

@TZA,

On the iMac, the file was initially being saved as a RichTextFormat and hence added lots of 'garbage' to the contents of the file (let alone be in totally the wrong format). This then obviously meant Eagle couldn't import it. Same thing happened if I used Copy & Paste into TextEdit - always wanted to save in .RTF format.

However, I soon found how to save it as a non-RTF file directly from Safari resulting in the file being 'preserved' as an .lbr (and .brd) format meaning the files were then able to be imported into Eagle. It was the comment in your first post saying that I had "linked to an actual .brd file" which was the 'clue' I needed (iMac doesn't show the full URL by default so I wasn't aware it was a .brd file).

Anyway, I finally got the required SD card holder 'layout'; so am now able to move forward with the final PCB I'm working on . . . . my TerMite is about to be re-born (at long last)

WW
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025