This tutorial is designed to show you how all of the AutoCAD Draw commands work. If you just need information quickly, use the QuickFind toolbar below to go straight to the command you want or select a topic from the contents list above. Not all of the Draw commands that appear on the Draw toolbar are covered in this tutorial. Blocks, Hatch and Text for example are all tutorial topics in their own right!
The Draw commands can be used to create new objects such as lines and circles. Most AutoCAD drawings are composed purely and simply from these basic components. A good understanding of the Draw commands is fundamental to the efficient use of AutoCAD.
The sections below cover the most frequently used Draw commands such as Line, Polyline and Circle as well as the more advanced commands like Multiline and Multiline Style. As a newcomer to AutoCAD, you may wish to skip the more advanced commands in order to properly master the basics. You can always return to this tutorial in the future when you are more confident.
In common with most AutoCAD commands, the Draw commands can be started in a number of ways. Command names or short-cuts can be entered at the keyboard, commands can be started from the Draw pull-down menu, shown on the right or from the Draw toolbar. The method you use is dependent upon the type of work you are doing and how experienced a user you are. Don't worry too much about this, just use whatever method feels easiest or most convenient at the time. Your drawing technique will improve over time and with experience so don't expect to be working very quickly at first.
If you are working with the pull-down menus, it is worth considering the visual syntax that is common to all pull-downs used in the Windows operating ststem. For example, a small arrow like so "" next to a menu item means that the item leads to a sub-menu that may contain other commands or command options. An elipsis, "…" after a menu item means that the item displays a dialogue box. These little visual clues will help you to work more effectively with menus because they tell you what to expect and help to avoid surprises for the newcommer.
Lines
Lines are probably the most simple of AutoCAD objects. Using the Line command, a line can be drawn between any two points picked within the drawing area. Lines are usually the first objects you will want to draw when starting a new drawing because they can be used as "construction lines" upon which the rest of your drawing will be based. Never forget that creating drawings with AutoCAD is not so dissimilar from creating drawings on a drawing board. Many of the basic drawing methods are the same.
Anyone familiar with mathematics will know that lines drawn between points are often called vectors. This terminology is used to describe the type of drawings that AutoCAD creates. AutoCAD drawings are generically reffered to as "vector drawings". Vector drawings are extremely useful where precision is the most important criterion because they retain their accuracy irrespective of scale.
The Line Command
Toolbar | |||
Pull-down | DrawLine | ||
Keyboard | LINE | short-cut | L |
You can also draw lines by entering the co-ordinates of their end points at the command prompt rather than picking their position from the screen. This enables you to draw lines that are off screen, should you want to. (See Using Co-ordinates for more details).
Command Sequence
Command: LINE
From point: (pick P1)
To point: (pick P2)
To point: (to end)
The Construction Line Command
Toolbar | |||
Pull-down | DrawConstruction Line | ||
Keyboard | XLINE | short-cut | XL |
Construction lines are not normally used as objects in finished drawings, it is usual, therefore, to draw all your construction lines on a separate layer which will be turned off or frozen prior to printing. See the Object Properties tutorial to find out how to create new layers. Because of their nature, the Zoom Extents command option ignores construction lines.
Command Sequence
Command: XLINE
Hor/Ver/Ang/Bisect/Offset/
Through point: (pick a second point)
Through point: (to end or pick another point)
You may notice that there are a number of options with this command. For example, the "Hor" and "Ver" options can be used to draw construction lines that are truly horizontal or vertical. In both these cases, only a single pick point is required because the direction of the line is predetermined. To use a command option, simply enter the capitalised part of the option name at the command prompt. Follow the command sequence below to see how you would draw a construction line using the Horizontal option.
Command Sequence
Command: XLINE
Hor/Ver/Ang/Bisect/Offset/
Through point: (pick a point to position the line)
Through point: (to end or pick a point for another horizontal line)
The Ray Command
Toolbar | custom |
Pull-down | DrawRay |
Keyboard | RAY |
Command Sequence
Command: RAY
From point: (pick the start point)
Through point: (pick a second point to determine direction)
Through point: (to end or pick another point)
The Polyline Family
Polylines differ from lines in that they are more complex objects. A single polyline can be composed of a number of straight-line or arc segments. Polylines can also be given line widths to make them appear solid. The illustration below shows a number of polylines to give you an idea of the flexibility of this type of line.
You may be wondering, if Polylines are so useful, why bother using ordinary lines at all? There are a number of answers to this question. The most frequently given answer is that because of their complexity, polylines use up more disk space than the equivalent line. As it is desirable to keep file sizes as small as possible, it is a good idea to use lines rather than polylines unless you have a particular requirement. You will also find, as you work with AutoCAD that lines and polylines are operationally different. Sometimes it is easier to work with polylines for certain tasks and at other times lines are best. You will quickly learn the pros and cons of these two sorts of line when you begin drawing with AutoCAD.
The Polyline Command
Toolbar | |||
Pull-down | DrawPolyline | ||
Keyboard | PLINE | short-cut | PL |
Command Sequence
Command: PLINE
From point: (pick P1)
Current line-width is 0.0000
Arc/Close/Halfwidth/Length/Undo/Width/
Arc/Close/Halfwidth/Length/Undo/Width/
Arc/Close/Halfwidth/Length/Undo/Width/
Arc/Close/Halfwidth/Length/Undo/Width/
Arc/Close/Halfwidth/Length/Undo/Width/
In the illustration on the right, the figure on the left was created by hitting the key after the fifth point was picked. The figure on the right demonstrates the effect of using the Close option.
It is worth while taking some time to familiarise yourself with the Polyline command as it is an extremely useful command to know. Try experimenting with options such as Arc and Width and see if you can create polylines like the ones in the illustration above. The Undo option is particularly useful. This allows you to unpick polyline vertices, one at a time so that you can easily correct mistakes.
Polylines can be edited after they are created to, for example, change their width. You can do this using the PEDIT command, ModifyObjectPolyline from the pull-down menu.
The Rectangle Command
Toolbar | |||
Pull-down | DrawRectangle | ||
Keyboard | RECTANGLE | short-cuts | REC, RECTANG |
Command Sequence
Command: RECTANG
Chamfer/Elevation/Fillet/Thickness/Width/
Other corner: (pick P2)
The Rectangle command also has a number of options. Width works in the same way as for the Polyline command. The Chamfer and Fillet options have the same effect as the Chamfer and Fillet commands, see the Modifying Objects tutorial for details. Elevation and Thickness are 3D options.
The Polygon Command
Toolbar | |||
Pull-down | DrawPolygon | ||
Keyboard | POLYGON | short-cut | POL |
This command also allows you to define the polygon by entering the length of a side using the Edge option. You can also control the size of the polygon by entering an exact radius for the circle. Follow the command sequence below to see how this command works.
Command Sequence
Command: POLYGON
Number of sides <4>: 5
Edge/
Inscribed in circle/Circumscribed about circle (I/C) :
(to accept the inscribed default or type C for circumscribed)
Radius of circle: (pick P2 or enter exact radius)
In the illustration above, the polygon on the left is inscribed (inside the circle with the polygon vertexes touching it), the one in the middle is circumscribed (outside the circle with the polyline edges tangential to it) and the one on the right is defined by the length of an edge.
The Donut Command
Toolbar | custom | ||
Pull-down | DrawDonut | ||
Keyboard | DONUT | short-cut | DO |
Command Sequence
Command: DONUT
Inside diameter <0.5000>:
(pick any two points to define a diameter or enter the exact length)
Outside diameter <1.0000>:
(pick any two points to define a diameter or enter the exact length)
Center of doughnut: (pick P1)
Center of doughnut:
(to end or continue to pick for more doughnuts)
As an alternative to picking two points or entering a value for the diameters, you could just hit to accept the default value. Most AutoCAD commands that require user input have default values. They always appear in triangular brackets like this
Curiously enough AutoCAD doesn't seem to mind if you make the inside diameter of a donut larger than the outside diameter, try it and see.
Circles, Arcs etc.
Along with Line and Polyline, the Circle command is probably one of the most frequently used. Fortunately it is also one of the simplest. However, in common with the other commands in this section there are a number of options that can help you construct just the circle you need. Most of these options are self explanatory but in some cases it can be quite confusing. The Circle command, for example, offers 6 ways to create a circle, while the Arc command offers 10 different methods for drawing an arc. The sections below concentrate mainly on the default options but feel free to experiment.
The Circle Command
Toolbar | |||
Pull-down | DrawCircleCenter, Radius | ||
Keyboard | CIRCLE | short-cut | C |
Command Sequence
Command: CIRCLE
3P/2P/TTR/
Diameter/
As you can see from the command prompt above the default options are always indicated in triangular brackets like so
The Arc Command
Toolbar | |||
Pull-down | DrawArc3 Points | ||
Keyboard | ARC | short-cut | A |
Command Sequence
Command: ARC
Center/
Center/End/
End Point: (pick P3)
It is also possible to create an arc by trimming a circle object. In practice, many arcs are actually created this way. See the Trim command on the Modifying Objects tutorial for details.
The Ellipse Command
Toolbar | |||
Pull-down | DrawEllipseAxis, End | ||
Keyboard | ELLIPSE | short-cut | EL |
Command Sequence
Command: ELLIPSE
Arc/Center/
Axis endpoint 2: (pick P2)
The ellipse command can also be used to draw isometric circles. See the worked example in the Drawing Aids tutorial to find out how to do this and how to draw in isometric projection with AutoCAD.
The Spline Command
Toolbar | |||
Pull-down | DrawSpline | ||
Keyboard | SPLINE | short-cut | SPL |
Splines can be edited after they have been created using the SPLINEDIT command, ModifyObjectSpline from the pull-down menu. Using this command, you can change the tolerance, add more control points move control points and close splines, amongst other things.
Command Sequence
Command: SPLINE
Object/
Enter point: (Pick P2)
Close/Fit Tolerance/
Close/Fit Tolerance/
Close/Fit Tolerance/
Enter start tangent: (pick a point)
Enter end tangent: (pick a point)
You can create linear approximations to splines by smoothing polylines with the PEDIT command. However, you can also turn polylines into true splines using the Object option of the Spline command.
Points and Point Styles
Points are very simple objects and the process of creating them is also very simple. Points are rarely used as drawing components although there is no reason why they could not be. They are normally used just as drawing aids in a similar way that Construction Lines and Rays are used. For example, points are automatically created when you use the Measure and Divide commands to set out distances along a line.
When adding points to a drawing it is usually desirable to set the point style first because the default style can be difficult to see.
The Point Command
Toolbar | |||
Pull-down | DrawPointSingle Point | ||
Keyboard | POINT | short-cut | PO |
Command Sequence
Command: POINT
Point: (pick any point)
The Point Style Command
Toolbar | none |
Pull-down | FormatPoint Style… |
Keyboard | DDPTYPE |
To change the point style, just pick the picture of the style you want and then click the "OK" button. You will need to use the Regen command, REGEN at the keyboard or ViewRegen from the pull-down to force any existing points in your drawing to display in the new style. Any new points created after the style has been set will automatically display in the new style.
One interesting aspect of points is that their size can be set to an absolute value or relative to the screen size, expressed as a percentage. The default is for points to display relative to the screen size, which is very useful because it means that points will remain the same size, irrespective of zoom factor. This is particularly convenient when drawings become complex and the drawing process requires a lot of zooming in and out.
Multilines
Multilines are complex lines that consist of between 1 and 16 parallel lines, known as elements. The default multiline style has just two elements but you can create additional styles of an almost endless variety. The Multiline Style command enables you to create new multiline styles by adding line elements, changing the colour and linetype of elements, adding end caps and the option of displaying as a solid colour.
The Multiline Command
Toolbar | |||
Pull-down | DrawMultiline | ||
Keyboard | MLINE | short-cut | ML |
When you start the Multiline command you also have the option to specify the Justification, Scale and Style of the multiline. The Justification option allows you to set the justification to "Top", the default, "Zero" or "Bottom". When justification is set to top, the top of the multiline is drawn through the pick points, as in the illustration below. Zero justification draws the centreline of the multiline through the pick points and Bottom draws the bottom line through the pick points. Justification allows you to control how the multiline is drawn relative to your setting out information. For example, if you are drawing a new road with reference to its centre line, then Zero justification would be appropriate.
The Scale option allows you to set a scale factor, which effectively changes the width of the multiline. The default scale factor is set to 1.0 so to half the width of the multiline, a value of 0.5 would be entered. A value of 2.0 would double the width.
The Style option enables you to set the current multiline style. The default style is called "Standard". This is the only style available unless you have previously created a new style with the Multiline Style command. Follow the command sequence below to see how the Multiline command works and then try changing the Justification and Scale options.
Command Sequence
Command: MLINE
Justification = Top, Scale = 1.00, Style = STANDARD
Justification/Scale/STyle/
Undo/
Close/Undo/
The Multiline Style Command
Toolbar | none |
Pull-down | FormatMultiline Style… |
Keyboard | MLSTYLE |
You will now see the Element Properties dialogue box appear. This dialogue box allows you to add new line elements or delete existing ones and to control the element offset, colour and linetype. Click the "Add" button to add a new element. A new line element now appears with an offset of 0.0, in other words, this is a centre line. Highlight the top element in the "Elements" list and change the offset to 1.0 by entering this value in the "Offset" edit box. Now do the same with the bottom element remembering to enter a value of -1.0 because this is a negative offset. You now have a multiline that is 2 drawing units wide with a centre line. Let's now change the colour and linetype of the centre line.
Highlight the 0.0 offset element by clicking it in the "Elements" list. To change the colour, simply click on the Colour… button and select an appropriate colour from the palette. When a colour has been selected, click the "OK" button on the palette to return to the Element Properties dialogue box.
Changing the linetype is a little more complicated because we will need to load the required linetype first. However, click on the "Linetype…" button to proceed.
The Select Linetype dialogue box appears with just a few solid linetypes listed, ByLayer, ByBlock and Continuous. Click on the "Load…" button. The Load or Reload Linetypes dialogue box now appears. Scroll down the list of linetypes until you find one called "Hidden". Highlight Hidden and then click the "OK" button. You will now see the Hidden linetype appear in the "Loaded linetypes" list in the Select Linetype dialogue box, which should now look similar to the one shown above. Finally, highlight Hidden and click the "OK" button. Your Element Properties dialogue box should now look similar to the one in the illustration above. To complete our new style, we will add some end caps and a solid fill. Click on the "Multiline Properties…" button to proceed.
In the Multiline Properties dialogue box, click in the "Line" check boxes under "Start" and "End". This will have the effect of capping the ends of the multiline with a 90 degree line. As you can see from the dialogue box, you can change this angle if you wish to give a chamfered end. Next, click the "On" check box in the "Fill" section and then click on the Colour… button and select the fill colour from the palette. The Multiline Properties dialogue box should now look like the one in the illustration on the left. Finally, click the "OK" button in the Multiline Properties dialogue box and again in the Multiline Style dialogue box. You are now ready to draw with your new multiline.
Start the Multiline command, pick a number of points and admire your handiwork. If you have followed this tutorial closely, your new multiline should look something like the one in the illustration on the right. Notice the effect of the various changes you have made compared with the Standard multiline style.
One limitation of multiline styles is that you cannot modify a style if there are multilines referencing the style in the current drawing. This is a shame because it means that it is not possible to update multiline styles in the same way as it is possible to update text or dimension styles. You also cannot change the style of an existing multiline. If you really want to modify a multiline style, you will have to erase all multilines that reference the style first. However, there is a workaround for this problem, see the Autodesk Quick Tips page for details.
If you are new to AutoCAD, the whole process of working with multilines and creating multiline styles may appear a little bewildering because it touches upon a number of aspects of the program with which you may not be familiar. If this is the case, it may be a good idea to return to this tutorial in the future. Multilines are useful because they can save lots of time but their use is fairly specific and you should think carefully before using them. It may, for example, be more convenient simply to draw a polyline and to create offsets using the Offset command.
Tips & Tricks
- You will have noticed that many of the draw commands require the key on the keyboard to be pressed to end them. In AutoCAD, clicking the right mouse key has the same effect as using the key on the keyboard. Right clicking the mouse is a much more efficient way of working than using the keyboard.
- You can also use the key or right mouse click to repeat the last command used. When a command has ended, you can start it again by right clicking rather that entering the command at the keyboard or selecting it from the pull-down or toolbar. By this method it is possible, for example, to draw any number of lines. The command sequence might be something like the one below.
Command Sequence
Command: LINE
From point: (pick P1)
To point: (pick P2)
To point: (right click to end)
Command: (right click start the Line command again)
From point: (pick P1)
To point: (pick P2)
To point: (right click to end)
Command: (right click start the Line command again)…You could continue this as long as you needed to using only the mouse for input.
- You can change the Linetype of any of the objects created in the above tutorial. By default all lines are drawn with a linetype called "Continuous". This displays as a solid line. However, lines can be displayed with a dash, dash-dot and a whole range of variations. See the Object Properties tutorial for details.
Tidak ada komentar:
Posting Komentar