Friday, 30 October 2009

LDraw Tutorial - Part 1

For those without any CAD experience or who are not very handy with a computer, LDraw and the programs associated to it may appear quite complex. However, with some basic explanations and a bit of practice you can learn to use them quite quickly.

For many of us it is important to be able to document our creations and ideas. Traditionally we have used photos, especially since the appearance of digital cameras. Some have also tried to make drawings of their designs. The creation of the LDraw parts library for a simplified version of CAD (Computer Aided Design) has made this task a lot easier, to the point where some have made MOCs without actually having the physical parts.

For those who have no experience with CAD or who are not particularly handy with their computer, LDraw and the programs associated to it may appear quite complicated, but with a few basic explanations and some practice you can learn to use them quite quickly. In this first part of my LDraw tutorial you will learn to take your first few steps with MLCad, a program that allows you to use the LDraw library quite easily.

First steps with MLCad

Mike’s LEGO CAD (MLCad) is computer aided design software which uses the LDraw parts library. In order to be able to use it you will have to install both. The LDraw website has a link to an installation package that contains both MLCad and the LDraw library as well as a number of other useful applications. Download* the package and do a basic installation which will set up the LDraw parts library, MLCad and LDview. Simply accept every time the installer requires your input and you are ready to go**.

The first time you open MLCad it will ask you where the LDraw parts library is. If you didn’t change anything in the installer it will be located at C:\LDraw. Once you get the MLCad interface you can change the position of the icon bars to your liking, for example like this:

  1. Tool bars
  2. Parts tree
  3. List of used parts
  4. Construction area

Before you try to build anything let’s take a look at a construction that comes with the installer. You can find it at C:\LDraw\Models and the file is named PYRAMID.DAT. (In MLCad go to File>Open and browse to the location of the file, select and click ‘open’). Now take a good look at how the Pyramid has been built. You can see the building process step by step (or layer by layer) if you select “View” mode, the first icon on the Model bar:

Click on the image of the pyramid to advance to the next step.

Once you are familiar with the way the pyramid is built it is time to try to copy the design. Open a new document (File > New or Ctrl+N). Now go to the parts tree and click on the + to the left of ‘bricks’. The tree will expand and you can scroll down to select a ‘Brick 2 x 4’. Alternatively you can select ‘Brick’ in the drop down menu in the lower part of parts tree (just above the images) and use the scrollbar to visually identify the part you need. Click on either the description or the image of the part and drag it into the construction area. You can drop it in any of the four panes, although it is usually better not to use the 3D pane for this.

In order to change the colour of the part, click on the colour of your choice in the Color bar. In this case you will need to make it Blue.

Drag another Brick 2 x 4 into the pane of your choice and drop it next to the first brick. You will notice it is blue (the last colour you used).

The third brick needs to be placed at an angle of 90 degrees, which means you will have to use the Transformation bar to rotate the part:

You will find that it is not always easy or reliable to move a part using the mouse. However, using the Transformation bar isn’t always that comfortable either, so you may want to learn a few short-cuts to help you work more easily:

For moving parts the following short-cuts apply

For turning you use the same keys in combination with the Control key

You can only move or turn a part while it is selected, but when a part is selected it is outlined with a thin line that sometimes makes it difficult to see if you aligned it properly. You will have to unselect the part /e.g. by clicking on an empty part of the workspace) to see if the part is correctly placed. If you are still having trouble placing the part correctly you may need to change the grid size. You can do this in the Model bar (there are three greyed out icons in the image of the bar above, representing the three available grid sizes) or using the short-cuts F9, F10 and F11 for those same three grid sizes. When you change grid size you also change the angle steps with which a part rotates. Typically you will rotate a part 90 degrees per step in the large grid and 45 degrees per step in the medium grid.

When you add the next part you will notice it has again acquired all the characteristics of the part that was selected when you added it: the colour and rotation will be the same. There is another way of adding the same part again which is using copy (Ctrl+C) and paste (Ctrl+V) If you do that you will notice a new entry is added to the parts list, but the part doesn’t show up in the construction area. This is because the part takes up the exact same space as the part you copied it from! But if you move the part using the arrows or the short-cuts you will see it come out of that part. This means that you need to be very careful when building something in MLCad, because it is possible to put parts entirely or partially inside other parts. You can also select several parts (holding down Ctrl while you select them either in the construction area or in the parts list) and copy and paste them at the same time.

When you have finished the first layer of the pyramid it is time to indicate you have finished the first step. Go to Edit > Add > Step or use the third icon on the object bar:

This way, when you select view mode, all the parts added between one step and the next are shown at the same time.

Whereas you will probably have used only the top view up to this point, you will now have to use the Front or Right views to be able to place the next layer of bricks on top of the first one. You should now be able to finish the pyramid. Don’t forget to insert a Step every time you finish a layer.

*) You will have to type in the contents of the Captcha image which has been added to avoid automated downloads

**) This installation process is for Windows users. If you use Mac you will have to learn to use Bricksmith instead of MLCad. If you use Linux you are supposed to know what you are doing , MLCad will run fine on a basic Wine installation.

No comments:

Post a Comment