Follow these steps to draw a series of line segments by using the Line command:
1. Set object properties to the layer and other properties that you want applied to the line segments that you’ll draw.
2. Click the Line button on the Draw toolbar.
AutoCAD starts the Line command and prompts you at the command line:
Specify first point:
3. Specify the starting point by clicking a point or typing coordinates.
Remember to use one of the precision techniques described in Chapter 4 if you’re doing real drafting. For the first point, object snap, snap, tracking, and typing coordinates all work well.
AutoCAD prompts you at the command line to specify the other endpoint of the first line segment:
Specify next point or [Undo]:
4. Specify additional points by clicking or typing.
Again, use one of the AutoCAD precision techniques if you’re doing real drafting. For the second and subsequent points, all the techniques mentioned in the previous step work well, plus ortho and direct distance entry.
After you specify the third point, AutoCAD adds the Close option to the command line prompt:
Specify next point or [Close/Undo]:
5. When you’re finished drawing segments, end with one of these steps:
• Press Enter, or right-click anywhere in the drawing area and choose Enter (as shown in Figure 5-1), to leave the figure open.
• Type C and press Enter, or right-click anywhere in the drawing area and choose Close from the cursor menu, to close the figure.
AutoCAD draws the final segment and returns to the Command
prompt, indicating that the Line command is finished:
Command:
Figure 5-1: Line it up: Drawing line segments with the Line command.
The Line command is fine for some drawing tasks, but the PLine command is a better, more flexible choice in many situations. The PLine command draws a special kind of object called a
The most important differences between the Line and PLine commands are these:
? The Line command draws a series of single line segment objects. Even though they appear on the screen to be linked, each segment is a separate object. If you move one line segment, the other segments that you drew at the same time don’t move with it. The PLine command, on the other hand, draws a single, connected, multisegment object. If you select any segment for editing, your changes affect the entire polyline. Figure 5-2 shows how the same sketch drawn with the Line and the PLine commands responds when you select one of the objects.
Figure 5-2: Results of drawing with the Line and PLine commands.
Use the PLine command instead of Line in most cases where you need to draw a series of connected line segments. If you’re drawing a series of endto-end segments, there’s a good chance that those segments are logically connected — for example, they might represent the outline of a single object or a continuous pathway. If the segments are connected logically, it makes sense to keep them connected in AutoCAD. The most obvious practical benefit of grouping segments together into a polyline is that many editing operations are more efficient when you use polylines. If you move a single, disconnected line segment, the other segments that you drew at the same time don’t move with it — likewise for other common editing operations, such as copying, erasing, rotating, and mirroring. When you select any segment in a polyline for editing, the entire polyline is affected.
? The PLine command can draw curved segments as well as straight ones.
? You can add width to each segment of a polyline. Polyline segment width is similar to lineweight, except that it can be uniform or tapered. The ability to create polyline segments with line widths was more important in the old days before AutoCAD had lineweight as an object property. People used to draw polylines with a small amount of width to show the segments as somewhat heavier than normal on plots. Nowadays, it’s easier and more efficient to achieve this effect with object lineweights (as described in Chapter 4) or plot styles (as described in Chapter 12).
After you create a polyline, you can adjust its segments by grip editing any of the vertex points. (The little squares on the vertices in Figure 5-2 are called
Drawing polylines composed of straight segments is pretty much like drawing with the Line command, as demonstrated in the following procedure. Watch the command prompts carefully because the PLine command has a lot of options! Remember that you can right-click in the drawing area to select one of the options, but reading the command prompts is your ticket to knowing what the options are at any moment.
To draw a polyline composed of straight segments, follow these steps:
1. Set object properties to the layer and other properties that you want applied to the polyline object that you’ll draw.
2. Click the Polyline button — the one that looks like a fishhook — on the Draw toolbar.
AutoCAD starts the PLine command and prompts you at the command line:
Specify start point:
3. Specify the starting point by clicking a point or typing coordinates.
AutoCAD displays the current polyline segment line-width and prompts you to specify the other endpoint of the first polyline segment:
Current line-width is 0.0000
Specify next point or [Arc/Halfwidth/Length/Undo/Width]:
4. If the current line-width isn’t zero, change it to zero by typing W, Enter, 0, Enter, 0 (as shown in the following command line sequence).
Specify next point or [Arc/Halfwidth/Length/Undo/Width]: W
Enter Specify starting width 0.0000: 0
Enter Specify ending width 0.0000: 0
Enter Specify next point or [Arc/Halfwidth/Length/Undo/Width]:
Despite what you may think, a zero width polyline segment is not the AutoCAD equivalent of writing with disappearing ink. “Zero width” means “display this segment, using the normal, thin line-width on the screen.” AutoCAD still applies object property or plot style lineweights when you plot.
5. Specify additional points by clicking or typing.
After you specify the second point, AutoCAD adds the Close option to the command line prompt:
Specify next point or [Arc/Close/Halfwidth/Length/Undo/Width]:
In addition, you can view and choose options from the right-click menu, as shown in Figure 5-3.
Figure 5-3: Getting in the PLine.
6. After you finish drawing segments, either press Enter (to leave the figure open) or type