Home :: Login :: Forgot Password :: Search :: FAQ
Support our host

News

Software

Reference

Community

Parts Library

About Us

Reference > Tutorials
Published By Holly-Wood on Sunday, January 27, 2008 - 12:38 PM

Printer-friendly page

This tutorial takes for granted that:

The LDraw Parts Library + MLCad - http://www.ldraw.org/Article126.html
LEGO Digital Designer - http://ldd.lego.com/

have been installed, are running smoothly and that you are at least a little familiar with both programs. The tutorial is based on MLCad 3.20 and LDD 2.3.15.

The LDraw and LDD libraries differ in color numbers, sometimes in part numbers, the fact that LDD parts are measured in millimeters while LDraw uses LDUs - LDraw Units, but most notably in the part's origin point. While LDraw parts have their origin in the middle of the part the LDD origin is in the bottom right-hand corner.

Tutorial_LDD_LDRAWorigin Tutorial_LDD_LDDorigin

The conversion between LDraw and LDD is governed by the ldraw.xml file which contains all the information about these differences. The file can be found in the "LEGO Digital Designer/Assets" directory (where "LEGO Digital Designer" is the directory in which LDD 2 is installed). Though the current LDD ships with a version containing a good bunch of translations compiled by the LEGO Universe Team and LDraw-Users you might replaced the file with an updated version that can be found here (to download the file right-click the link and select "Save Target As...").

To install the file just go to the "LEGO Digital Designer/Assets" directory, back up the existing ldraw.xml and overwrite it with the latest version. Once this is done start or restart LDD and it will now use the updated list.

Importing a LDraw-File into the LEGO Digital Designer
 

Tutorial_LDD_Conversion1

1. Select the File menu and then the Import (Ctrl+I) tab (File > Import (Ctrl+I).

2. In the popping up dialog you first have to select Ldraw-Files (*.ldr) from the Files of type: drop-down box. Otherwise the dialog will show only its default LXF-Files (*.lxf).

3. You can now read LDraw files (but not MPD files). After hitting the Open button it should load your LDraw-Model although there are likely to be numerous mistakes due to oversensitivity of the LDD collision detection or not supported colors.

4. For the event you get this type of warning you should check the following:

  • Did you use parts not supported by LDD? The pallette of the supported LDD parts can be found at the LEGO Digital Designer homepage.
  • Contains your model parts in not supported colors? LDD's color pallette is in some ways limited by the bricks you can purchased through LEGO Factory. Therefore you can for example use a Brick 1 x 2 in all the colors below, but the LEGO Digital Designer will refuse to load an orange 1 x 2:
  • The part will not load because its translations hasn't been added to the ldraw.xml file yet or the internal LDD part number has changed. Please contact the LDraw Team if the part in question comes in the right color and is supported by both system but gives out an error. We will do our best to add the part for the next release.

Exporting a LEGO Digital Designer-file to LDraw
 

5. Select File > Export model (Ctrl+E) from the menu bar but don't forget to save your model first in LDD's own file format .lxf.

6. In the popping up dialog first select Ldraw-Files (*.ldr) from the Files of type: in the drop-down box. Additionally you might select the .lxfml file format which is a human readable version of the binary .lxf file and gives some very interesting clues about the part numbers used in LDD.

7. In the File name: drop-down box the LEGO Digital Designer proposes the name you saved the model with even after you have changed the file type. In case you don't change the file extension to .ldr - LDraw's official extension for models - the LEGO Digital Designer will ask you if you wanna substitute the already existing file and re-save your model in .lxf once you agreed to do so. It is therefore crucial that you delete the .lxf extension. Additionally you might type in the .ldr or change the file name to something completely different. After hitting the Save button will be exported to the selected folder although there are likely to be numerous mistakes.

8. Loading the file in MLCad you might get the warning above due to different part numbers in the LDD and LDraw library. Hit Yes and MLCad will upgrade your file. If there are still missing parts there are several reasons for:

  • The part used in LDD hasn't been certified yet and is therefore not part of the official library. Downloading the package containing all unofficial parts might solves the problem but be aware that those parts have to be treated with much care and should not be stored together with official LDraw parts. However there are tutorials which explain how to include these unofficial parts in programs like MLCad.
  • The part hasn't been authored as LDraw file yet. Though LDraw.org now gets parts from the LEGO Universe Team some files still need to be cleaned for the certification process at the LDraw Parts Tracker while others are still in the queue.
  • The part can be found in the official Library but it's translation is missing in the ldraw.xml file. Please contact the LDraw Team and tell them when you encounter such parts. We will do our best to add the part for the next release of the ldraw.xml. Let them also know if you find parts with wrong rotations or origin points.



Recipient 2007
Kevin Clague

Want to learn more about LDraw? Check out the following books:




Current Contest Winners

Model of the Month


Scene of the Month



Vote for Next Month's Winner

Submit Your Creation for Next Month's Contest

What's new in lugnet.cad?

Inliner v1.1
by Michael Heidemann - 33 hours ago

L3PAO 1.9 Beta
by Jeff Boen - 2 days ago

Re: LETGUI new version 0.1.0.15
by Michael Heidemann - 3 days ago

LETGUI new version 0.1.0.15
by Michael Heidemann - 3 days ago


There are 31 unlogged users and 0 registered users online.

You can log-in or register for a user account here.





 


 Log in Problems?
 New User? Sign Up!

©2003-2008 LDraw.org, see Legal Info for details.
LDraw™ is a trademark owned and licensed by the Estate of James Jessiman
This website is powered by Peeron.com.

LEGO® is a registered trademark of the LEGO Group, which does not sponsor, endorse, or authorize this site. Visit the official Lego website at http://www.lego.com.
LDraw is a completely unofficial, community run free CAD system which represents official parts produced by the LEGO company.