Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Autocad 2005 And Autocad LT 2005 Bible (2004).pdf
Скачиваний:
92
Добавлен:
17.08.2013
Размер:
32.22 Mб
Скачать

Chapter 16 Drawing Complex Objects 447

For all these editing tools, you get prompts for further edits. Press Enter to end selection.

You can also move vertices using grips with the Stretch option.

An old command, TRACE, draws lines with width. Usually you can use polylines or multilines instead to create the same effect.

Note

Multiline styles are stored with the drawing, so that they can be updated and viewed, even if

 

the multiline style file containing the multiline definition is not available.

Creating Dlines

Dlines are the AutoCAD LT equivalent of Multilines. AutoCAD does not have dlines. Dlines (double lines) create line segments and arcs that are individual objects. The double lines and arcs have nicely finished corners and ends. You can specify the width between the lines, offset the lines from your pick points, and cap the lines with a simple square cap.

To create a dline, choose Draw Double Line. The first prompt, Specify start point or [Break/Caps/Dragline/Snap/Width]:, gives you the following options:

Break: Breaks the dline when it crosses other double lines, single lines, or arcs.

Caps: Places a square cap at the start or end of the double line or at both the start and end. Otherwise, use the None suboption.

Dragline: Offsets the double line from your pick points. A positive value for this option offsets to the right and a negative value offsets to the left of your pick points. By default, the double line is centered on either side of your pick points. You can also choose to use the Left or Right suboptions to align the left or right line with your pick points.

Snap: Ends a double line whenever you use an object snap.

Width: Specifies the distance between the double lines.

After you specify the first point, the prompt expands to give you three more options:

Arc: Creates double arcs using this option. (You can’t easily do this in AutoCAD!) You have suboptions that are similar to the ARC command options, including a Line option to return to drawing lines segments.

CLose: Draws a double line from the last point back to the first point.

Undo: Undoes the last line segment or arc.

Because dlines are individual lines and arcs, there are no special editing tools and they are easy to edit.

Using the SKETCH Command

The SKETCH command enables you to draw freehand. Freehand drawing is useful for contour lines in architectural or civil engineering drawings, for illustrative effects, and for when you’re feeling artistic. Although you may get best results if you have a digitizer and a stylus pen, you can sketch with a mouse or puck as well. Figure 16-37 shows some contour lines created with SKETCH.

448 Part II Drawing in Two Dimensions

Figure 16-37: Contour lines drawn with SKETCH.

AutoCAD LT does not have the Sketch feature.

Sketch can create lines or polylines. Polylines are probably easier to work with if you need to edit the sketch later — you can use the PEDIT command. To specify whether SKETCH creates lines or polylines, set the SKPOLY system variable. A value of zero creates lines, and a value of one creates polylines.

Start the SKETCH command by typing sketch . The command places you in a special sketch mode and displays a special menu on the command line:

Record increment <0.1000>: Press Enter or type a new increment.

Sketch. Pen eXit Quit Record Erase Connect

Type the record increment, which is the length of the line or polyline segment you want to create. If the increment is too big, small movements do not create a segment at all and the sketch line appears jagged instead of smooth. However, you need to take into account the scale of your drawing and your zoom factor. You should also turn off ORTHO and SNAP if they’re on.

The pick button is equivalent to typing p and toggles the pen up and down. Follow these steps to start sketching:

1.Place the cursor where you want to start drawing.

2.Press the pick button. The prompt responds with the <Pen down> message. You can now draw.

3.Without holding down the pick button, move the mouse or stylus to create the shape you want. SKETCH creates a temporary green line.

4.After you finish, click the pick button again to see the <Pen up> message.

Chapter 16 Drawing Complex Objects 449

5.Move the mouse to the starting point of your next line or polyline. Continue in this manner until you finish sketching.

6.Type r to record the sketch. The prompt tells you what you created. The sketch changes to the color of the current layer and becomes permanent as shown in this example:

4 polylines with 238 edges recorded.

7.Type x to exit Sketch mode.

Here are the other options:

On the

CD-ROM

Quit: Quits Sketch mode without saving your sketch. The temporary line disappears.

Erase: Erases temporary lines.

Connect: Enables you to continue drawing from the end of the last sketch. Use this when the pen is up. Type c and move to the endpoint of the last temporary sketch.

. (Period): Enables you to draw straight line segments from the endpoint of the last sketch. While the pen is up, type a period to add a line segment from the last endpoint to your current cursor position.

The drawing used in the following Step-by-Step exercise on sketching, ab16-h.dwg, is in the Drawings folder on the CD-ROM.

STEP-BY-STEP: Sketching

1.Open ab16-h.dwg from your CD-ROM.

2.Save the file as ab16-08.dwg in your AutoCAD Bible folder. It shows the front elevation of a house. You’ll add the sketched path and contours, as shown in Figure 16-38.

3.Type skpoly . Set SKPOLY to 1 and press Enter.

1

Figure 16-38: A sketched path and contours.

450 Part II Drawing in Two Dimensions

4.Type sketch . At the Record increment <0'-0">: prompt, type 1 to set the record increment to 1".

5. At the Sketch. Pen eXit Quit Record Erase Connect. prompt, move the cursor to 1 in Figure 16-38. Click the pick button to put the pen down and draw the first line of the path. Click the pick button to put the pen up.

6.Use the same technique to draw the other lines in Figure 16-38. If you make a mistake, type q to quit and then start again.

7.After you’re done, type r to record the lines.

8.Type x to end the SKETCH command.

9.Save your drawing.

Digitizing Drawings with the TABLET Command

In Chapter 3, I explained that you can use a digitizer to execute commands. One important use for a digitizer is to copy paper drawings into your drawing. Many companies have used this technique to copy old drawings that were drafted by hand so that they could be edited electronically. Digitizing can also be used to copy artwork and logos into a drawing.

To digitize a paper drawing, you use a special digitizing mode that turns the entire digitizer into a drawing tablet. To start the TABLET command, choose Tools Tablet and choose one of the options.

If you’ve been using the digitizer to execute commands, you need to reconfigure it to eliminate the command areas and enlarge the drawing area. Use the Configure option of the TABLET command and reconfigure the digitizer for 0 tablet menus. Respecify the screen pointing area so that the fixed screen pointing area covers the entire digitizing area.

Attach the paper drawing securely to the digitizer so that it won’t move as you work.

To set up the digitizing mode, start the TABLET command and choose the Calibrate option. The option prompts you to pick two points on the paper drawing and specify which coordinates they represent. To do this you need to mark two points on the paper drawing — take out a ruler and measure their distance. If the drawing has a title block, two corners of the title block are distinctive points to mark and measure. If the drawing is drawn to a scale — and it probably is — the coordinates you type should be the distance in real life, not the measurement. In other words, if the two horizontal points are 1 inch apart and 1 inch represents 48 inches (a scale of 1=48), you could enter 0,0 for the first point and 48,0 for the second point. However, it is usually useful to choose points over a wider area of your drawing. You can calibrate more than two points if you want.

Note

If your drawing is distorted or uses a perspective view that you want to straighten out, you can

 

calibrate additional points and choose either Affine or Projective calibration to account for the

 

distortion. Affine calibration requires at least three points and scales the X and Y axes sepa-

 

rately. Projective calibration requires at least four points and stretches the coordinates to adjust

 

for the perspective view. You can provide up to 31 calibration points.

After you finish specifying calibration points and coordinates, press Enter. Now your entire tablet can be used only for picking points. You can press F12 to use a menu or toolbar and press F12 to return to picking points, or type commands on the command line.

Chapter 16 Drawing Complex Objects 451

Note You can turn Tablet mode on and off by starting the TABLET command and choosing the On and Off options. Tablet calibration settings are lost when you close the drawing session.

Choose the command you need and pick points along the paper drawing. After you’re done, turn off Tablet mode and do any editing and cleanup necessary.

In this exercise, you practice digitizing drawings. If you have a digitizer, you can try this exercise. Otherwise, skip it.

STEP-BY-STEP: Digitizing Drawings

1.Start a new drawing using acad.dwt or aclt.dwt as your template.

2.Save the file as ab16-09.dwg in your AutoCAD Bible folder. This is a sheet metal template as shown in Figure 16-39.

3.Make a photocopy of Figure 16-39 and tape it to the active area of your digitizer.

4.Choose Tools Tablet Calibrate. Follow the prompts:

Digitize point #1: Pick 1 in Figure 16-39. Enter coordinates for point #1: 0,0

Digitize point #2: Pick 2 in Figure 16-39. Enter coordinates for point #2: 7,5 Digitize point #3 (or RETURN to end):

5.Type tablet and on .

6.Type line .

7.In Figure16-39, pick 3 with the digitizer, then 4, and then each line endpoint in turn counterclockwise around the figure.

8.After you reach 5, do not digitize point 1 again. Instead, type c to close the figure exactly.

9.Type tablet . Type off to return the digitizer to Screen Pointing mode.

10.Save your drawing.

5

2

 

3 4

1

Figure 16-39: An unfolded sheet-metal stemplate.