SparkFun Forums 

Where electronics enthusiasts find answers.

Questions relating to designing PCBs
By bfoz
#159252
After reading the blog post from a few weeks ago about creating 3D product models from Eagle files, I figured there must be a better way than doing it all by hand. So, I started working on doing just that. As a first step I've created a Ruby gem that can read Eagle CAD XML files:

https://github.com/bfoz/ruby-eaglecad

It's not much at this point. The documentation is almost non-existant and I'm sure I missed some stuff. But, the basic functionality is there so I thought I'd see if there's any interest. Eventually I'd like to be able to generate new projects and possibly parse ULP scripts as well.

Take a look and let me know what you think. Feedback, both good and bad, is always appreciated.
By lyndon
#159258
There is this. It's automated using a ULP and works well, but there needs to be more models available.

[edit]
Never mind. I misread your post: thought you were trying to automate the conversion from PCB -> 3D display.
By bfoz
#159272
In the long run I'm am trying to automate generation of 3D models, but not necessarily for realtime display, and I'd like to do it without having to depend on SketchUp or ImageMagick.
By bfoz
#165345
It's been awhile, but I finally got around to working on this again.

In case anyone is interested, I've added the ability to write Eagle files. Although, right now the only way to generate something to write out is to first read it from an existing file. So it's probably not that useful yet, but one step at a time. I've tested that the generated file can be read by EagleCAD 6.4, so it's working at least that well.

Here's the GitHub page:

https://github.com/bfoz/eaglecad-ruby

and RubyGems:

https://rubygems.org/gems/eaglecad