原创 HOW-TO: Build 3D models from Eagle files

2012-8-30 07:50 2582 18 21 分类: PCB 文集: Eagle

Overview

Over the last few weeks we’ve been building 3D models of our projects in Google SketchUp using the EagleUp script. This script makes a 3D model of the board from Cadsoft Eagle board (.brd) files, and populates it with pre-existing models of components.

Once you have a 3D model in SketchUp you are free to evaluate it, build custom enclosures around it, or interface your model with others. This tutorial will help you build 3D models of your projects.

 

  • Be advised that to build full 3D models of your projects you will have to have models for all your components. Some are available with the EagleUp script, some via the 3D warehouse, and some from our  own library.

Download and Setup

There are a few apps you’ll need for everything to function properly. Download the following:

Once you have downloaded everything, install SketchUp and ImageMagick.

  • Extract the EagleUp archive
  • Move the ”EagleUp_export.ulp” file to the ULP folder located in the Eagle installation folder
  • Move the ”EagleUp_import.rb” file to the Plugins folder in the Google SketchUp installation folder
  • Move the models folder anywhere you like, but remember where it is. This is where you will build your component 3D library
  • Open an Eagle board (.brd) file
  • Run ”EagleUp_export.ulp”. A configuration GUI will appear

Insert the links to the respective files into the fields, use full paths and ‘/’ as directory separators instead of ‘\’

  • Example of models path: C:/Users/(username)/Desktop/Models
  • Example of convert.exe path: C:/Program Files (x86)/ImageMagick-6.7.5-Q8/convert.exe
  • Example of composite.exe path: C:/Program Files (x86)/ImageMagick-6.7.5-Q8/composite.exe
  • Tip: just hit ”set for Windows”, and edit the default paths to match your own

Hit OK.

Check that there are no beaks on the dimension Layer

Now open the board you want to model.

It’s very important to check if the board outline defined by the ”Dimensions layer” is broken. If you get a bunch of lines instead of a model in SketchUp it is probably due to a broken board outline.

Zoom in for a close inspection. Once you are reasonably confident that there are no breaks continue to the next step.

Export the board model from Eagle

Next, run the EagleUp export ULP to export the board in a format that’s useful in SketchUp.

  • Open the board in Eagle that you want to model
  • Run the ”EagleUp_export.ulp”
  • Choose your board export options
  • Hit OK.

A new folder is created in the directory where your Eagle files are. Inside you’ll find lots of images of the board and an .eup file. SketchUp uses the .eup file to build the model.

Import the board model into SketchUp

Run the import EagleUp script in SketchUp to build the model:

  • Start a new file in SketchUp
  • Choose meters as the unit
  • Make sure the new SketchUp file is empty, delete the human model
  • Start the EagleUp plug in ”Plugins->Import EagleUp 4.3”
  • Browse to the .eup exported from Eagle

Enjoy the show, it can take a while.

Check model placement and orientation

When the model has been built, a report will show components that did not have 3D models. The board and any available components will be visible. Look over the board, check the alignment and orientation of the component models.

Some part model won’t be perfectly aligned with the PCB. These will need to be tweaked.

To rotate a part model:

  • Select the model you want to move with the ”Select” tool
  • Click on the ”Rotate” tool
  • Move your mouse over a flat part of the board or model, click on it
  • Now click anywhere you like
  • Rotate the model with movements from your mouse
  • Click the mouse button when you are satisfied with the orientation

Hint: you can also just type in the number in degrees you would like the model to rotate.

To move a part model:

  • Select the model you want to move with the ”Select” tool
  • Click on the ”Move” tool
  • Click on the model you want to move and hit one of the keyboard arrow keys

TIP: If you remember what you had to do to adjust the part, you can save the changes for future projects. Go into the models folder and edit the component model in the exact same way. Now generate the whole board again, the component will be properly aligned.
Download or create missing part models

One thing you’ll have to do a lot is download models of your missing components or create them from scratch.

To download components hit the ”Get models…” button in the top right corner. This opens the 3D warehouse where you can search for models. Alternately you can  download the models we use from SVN.

In order for a part model to be matched automatically it must be in the Models folder, and the name must match the part in Eagle. Our part models in SVN match our Eagle part library.

If there is no model of the component you are looking for, you’ll have to build one yourself. That’s beyond the scope of this tutorial, but there’s plenty of SketchUp info out there.

Share models
If you build a part model, please share it share it with other modelers. You can upload it to the 3D Warehouse, post it in our forums, or just share a link with us. Our parts models are available in SVN, and we’re uploading them to the 3D Warehouse too.

This entry was posted in Eagle, tutorials and tagged Cadsoft Eagle, tutorials.

PARTNER CONTENT

文章评论3条评论)

登录后参与讨论

用户1250015 2012-9-3 08:03

真cool.

yueleilei2004_790049340 2012-8-31 22:34

看下面这个网址: http://eagleup.wordpress.com/

wxg1988 2012-8-30 08:50

好文章,可看不到图片哦,博主还是把图片传上为好啊
相关推荐阅读
yueleilei2004_790049340 2016-04-10 21:16
A 3D Gerber Viewer that Gets “Between the Layers”
ZofzPCB is a FREE 3D Gerber viewer that shows you more than just how your board is going to loo...
yueleilei2004_790049340 2015-12-17 10:00
物料编码方式
不同的企业可根据不同的编码方式的特点来选择适合自己企业的编码方式。 流水码: 如果公司物料种类较多,品种复杂,建议采用“流水号”进行编码,并可通过“零件类型”对流水号编码进行分类。为了便于...
yueleilei2004_790049340 2015-12-17 09:57
物料编码规则
物料编码规则应遵循以下原则: 唯一性:同一种物料只能对应一个编码,同一编码只能代表一个物料,绝不能出现一个物料多个编码,或多个物料一个编码的情况。 可使用性:编码的长度应在6-20之...
yueleilei2004_790049340 2015-06-04 16:48
皮之不存,毛将焉附?详谈PCB业的发展
印制电路板PCB( Printed Circuit Board)是重要的电子部件,也是是电子元器件的支撑体和电子元器件电气连接的载体。本文通过PCB主要地区发展情况分析、市场发展趋势、国内外市场对...
我要评论
3
18
关闭 站长推荐上一条 /3 下一条