Chapter 10

Adding Text to Drawings

One of the more tedious drafting tasks is applying notes to your drawing. The AutoCAD® 2014 software makes this job faster by enabling you to type your notes, insert text from other sources, and copy notes that repeat throughout a drawing, and it helps you create professional-looking notes using a variety of fonts, type sizes, and type styles.

In this chapter, you’ll add notes to your apartment building plan. In the process, you’ll explore some of the AutoCAD text-creation and text-editing features. You’ll learn how to control the size, slant, type style, and orientation of text and how to import text files. You’ll start by working through some exercises that show you the process of preparing a drawing for text. You’ll then add a few lines of text to the drawing and learn how text size and drawing scale interrelate. The rest of the chapter shows you the tools available for formatting text to fit your application.

In this chapter, you will learn to:

  • Prepare a drawing for text
  • Set the annotation scale and add text
  • Explore text formatting in AutoCAD
  • Add simple single-line text objects
  • Use the Check Spelling feature
  • Find and replace text

Preparing a Drawing for Text

cert.eps

In these first sections, you’ll go through the process of adding text to a drawing that currently has none. By doing so, you’ll gain firsthand experience in using all the tools you’ll need for adding text to a drawing. Start by setting up a drawing to prepare it for the addition of text:

1. Start AutoCAD, and open the Unit file. If you haven’t created the Unit file, you can use the file called 10a-unit.dwg. Metric users should use 10a-unit-metric.dwg. After the file is open, choose Save As from the Application menu to save the Unit drawing to a file called Unit.dwg.
2. Create a layer called Notes, and make it the current layer. Notes is the layer on which you’ll keep all your text information.
3. If it is on, turn off the FLR-PAT layer. Otherwise, the floor pattern you added previously will obscure the text you enter during the exercises in this chapter.
4. Set up your view so it looks similar to the top image in Figure 10-1.

Figure 10-1 The top image shows the points to pick to place the text boundary window. The bottom image shows the completed text.

c10f001.eps

Organize Text with Layers
It’s a good idea to keep your notes on a separate layer so you can plot drawings containing only the graphics information or freeze the Notes layer to save redraw/regeneration time.

Organizing Text by Styles

cert.eps

Before you begin to add text to your drawing, you should set up a text style or two. You can think of text styles as a tool to store your most common text formatting. Styles store text height and font information so you don’t have to set these options every time you enter text. Generally, you’ll need only a few text styles.

Even if you started to add text without creating your own text style, you would still be using a text style. That’s because every text object must have a style, so AutoCAD includes the Standard text style in every new drawing. The Standard style uses an AutoCAD font called Txt and includes numerous other settings that you’ll learn about in this section. These other settings include width factor, oblique angle, and default height.


Set Up Default Fonts in Templates
If you don’t like the way the AutoCAD default style is set up, open the acad.dwt template file and change the Standard text style settings to your liking. You can also add other styles that you use frequently. Remember, AutoCAD files with the .dwt filename extension in their name are just AutoCAD DWG files with a slightly different extension to set them apart.

In this next exercise, you’ll create a text style called Note1, which you’ll use to add notes to the Unit plan on which you’ve been working:

c10i001.tif
1. Click the Text Style drop-down list from the Home tab’s expanded Annotation panel and select Manage Text Styles, or type St↵. This opens the Text Style dialog box (see Figure 10-2).

Figure 10-2 The Text Style dialog box

c10f002.tif
2. Click the New button to the right in the dialog box to open the New Text Style dialog box.
3. Enter Note1for the name of your new style, and then click OK.
4. In the Text Style dialog box again, click the Font Name drop-down list in the Font group and select a font for your style.
5. Locate the Courier New TrueType font and select it. A quick way to locate the font is to click in the list and start typing the font name.
6. Select the Annotative option in the Size group (see Figure 10-3).

Figure 10-3 The Annotative option in the Text Style dialog box

c10f003.eps
7. In the Paper Text Height box, enter 0.1. You’ll see your input change to 1⁄8″ if you are using the architectural unit style. Metric users should enter 0.15.
8. Close the dialog box.

The Annotative option you turned on in step 6 is an important feature for keeping your text at the proper size for your drawing scale. You’ll see how it works in the exercises later in the section “Setting the Annotation Scale and Adding Text.”


Making a Style the Default
Once you’ve created a style, you can make it the default current style by selecting it from the Text Style drop-down list in the Annotate tab’s Text panel.

Getting Familiar with the Text and Annotation Scale Control Panels

Before you get much further into the AutoCAD text features, take a moment to get familiar with the Annotate tab’s Text and Annotation Scaling panels (see Figure 10-4). You’ll be using a few of these panel tools in this chapter. If you need to, you can refer to this figure as you work through the exercises.

Figure 10-4 The Text panel (left) and the Annotation Scaling panel (right)

c10f004.eps

If your Annotation panel doesn’t look like the one in this figure, hover over it and the panel will expand to display the options.

Setting the Annotation Scale and Adding Text

You’ve got a text style set up and ready to use. Now you’ll add some text to your unit plan. Before you begin, you should determine a drawing scale. This is important because with the Annotative feature turned on, AutoCAD needs to know the drawing scale in order to set the size of the text. Follow these steps:

1. In the right side of the status bar, click the drop-down arrow next to Annotation Scale.
c10uf001.tif
2. Select 1⁄4″ = 1′-0″. Metric users, select 1:100.

You’ve just set the drawing scale for the Model Space view. This isn’t a permanent setting; you can change it at any time, as you’ll see later. The settings you used for the annotation scale are somewhat arbitrary for the purposes of demonstrating the Annotative Scale feature.

Inserting Text

Finally, you can begin to add text. To start, you’ll add some text to label the entrance to the floor plan. The process is similar to the process in other graphics programs that offer a text feature. You draw a boundary in the area where you want the text to appear, and then you start typing:

c10i002.tif
1. Turn off the Object Snap tool in the status bar.
c10i003.tif
2. Click the Multiline Text tool in the Annotate tab’s Text panel. You can also type MT↵. You see a prompt that tells you the current text style and height:
Current text style: "Note1" Text height: 4 13/16"
Annotative: Yes
Specify first corner:
3. Click the first point indicated in the top image in Figure 10-1 to start the text boundary window. This boundary window indicates the area in which you’ll place the text. Notice the arrow near the bottom of the window; it indicates the direction of the text flow. You don’t have to be too precise about where you select the points for the boundary because you can adjust the location and size later.
4. At the Specify opposite corner or [Height/Justify/Line spacing/Rotation/Style/Width/Columns]: prompt, click the second point indicated in the top image in Figure 10-1. The Text Editor tab appears with the text editor superimposed over the area you just selected (see Figure 10-5).

Figure 10-5 The text editor floats over the selected area.

c10f005.tif
5. Click the text editor and type Entry. As you type, the word appears in the text editor just as it will appear in your drawing.
6. Press ↵ to advance one line; then enter 6 by 7′.
7. Press ↵ to advance another line, and enter [182 cm by 213 cm].
8. Press ↵ again to advance another line, and enter carpet floor.
c10i004.tif
9. Click Close Text Editor on the Close panel. The text appears in the drawing just as it did in the text editor. (See the bottom image in Figure 10-1.)

After you’ve added text, if the text doesn’t quite fit in the area you’ve indicated, you can make adjustments to the text boundary. Click the text to expose the text boundary, including the boundary grips. Then click and drag the grips to resize the boundary. The word-wrap feature automatically adjusts the text formatting to fit the text boundary.

You may have noticed that the Text Editor tab and text editor work like any text editor; if you make a typing error, you can highlight the error and retype the letter or word. You can perform other word-processing functions too, such as using search and replace, importing text, and changing fonts.

You also saw that the text editor shows how your text will appear in the location you selected using the text boundary. If your view of the drawing is such that the text is too small to be legible, the text editor enlarges the text so that you can read it clearly. Likewise, if you’re zoomed in too closely to see the entire text, the text editor adjusts the text to enable you to see all of it.


Making Text Readable over Hatch Patterns
If text is included in a selection where a hatch pattern is to be placed, AutoCAD automatically avoids hatching over the text. If you add text over a hatched area, you can use the Background Mask tool in the Text Editor tab to make the text more readable. Another option is to use the Select Boundary Objects tool in the Hatch Edit tab to add text to a hatch selection.

Exploring Text and Scale

Even though your text height is 0.1′, or 0.15 cm, it appears at the appropriately enlarged size for the current scale. If the text were drawn to the size of 0.1′, it would be very small and barely visible. However, the Annotative Scale feature makes the adjustment to your text size based on the Annotation Scale setting.

You can see how the Annotation Scale setting affects your text:

c10i005.tif
1. First, make sure the Annotation Visibility tool is turned on in the status bar, or type Annoallvisible1↵.
c10i006.tif
2. Click the Annotation Scale setting, and select 1⁄2″ = 1″-0″. Metric users should select 1:50. The new text changes to the appropriate size for the selected scale.
c10uf002.tif
c10i007.tif
3. Click the Add/Delete Scales tool in the Annotate tab’s Annotation Scaling panel, or enter Objectscale↵.
4. At the Select annotative objects: prompt, select the text and press ↵. You see the Annotation Object Scale dialog box (see Figure 10-6) listing the annotation scales you have used for this drawing.

Figure 10-6 The Annotation Object Scale dialog box

c10f006.tif
5. You can add additional scales to your text object. Click the Add button, which opens the Add Scales To Object dialog box (see Figure 10-7).

Figure 10-7 The Add Scales To Object dialog box

c10f007.tif
6. Select 1⁄2″ = 1′-0″ from the list and click OK, and then click OK again at the Annotation Object Scale dialog box. Metric users should select 1:50.

Now test your settings by changing the Annotation Scale value back to the previous setting:

1. In the status bar, click the Annotation Scale setting, and select 1⁄4″= 1′-0″. Metric users should select 1:100.
c10uf003.tif
2. The text changes back to its original size.

In steps 2 through 4 of the first exercise in this section, you added a new annotation scale to the text. This is necessary for the text to be aware of the new annotation scale you want to use. Each time you include a new scale for your drawing, you need to add an annotation scale to the text in your drawing.

c10i008.tif

If you prefer, you can turn on the Automatically Add Scales To Annotative Objects tool in the status bar, which does just what its name says. The keyboard command for this tool is Annoautoscale4↵. Once a scale is added, you can quickly change between scales by selecting a scale from the Annotation Scale list.

So far, you’ve used only a single multiline text object. However, if you have many notes distributed throughout a drawing, you’ll need to add an annotation scale to all of them before they can automatically adjust themselves to the different scales you’ll use with your drawing. If you have the Automatically Add Scale To Annotative Objects tool turned on in the status bar, this happens automatically. Otherwise, you’ll have to add the scales to each annotative object. This is easy to do because you have the option to select as many objects as you need when adding annotation scales.

Understanding the Text Style Dialog Box Options

You’ve just taken nearly all the steps you’ll need to know to add text to any drawing. Now let’s take a step back and look more closely at some of the finer points of adding text, starting with text styles. The following sections give you more detailed information about the text style settings you saw in the early part of this chapter. They explain those settings and their purposes. Some of them, such as Width Factor, can be quite useful. Others, such as the Backwards and Vertical options, are rarely used. Take a moment to study these settings to become familiar with what is available and make a mental note of these items for future reference.

Styles

In the Styles list box, you’ll see a list showing the current style. This list also contains other styles that may be present in the drawing. The drop-down list below the Styles list box lets you control whether all styles are listed or just those that are being used in the drawing. In addition, there are the Set Current, New, and Delete buttons and options in the Font and Effects groups. You have already seen the Size group.

Set Current/New/Delete

Set Current makes the selected style the current one. New lets you create a new text style. Delete lets you delete the selected style.

The Delete option isn’t available for the Standard style.

Font

In the Font group, you have the following options:

Font Name Lets you select a font from a list of available fonts. The list is derived from the font resources available to Windows 8, Windows 7, Windows Vista, or Windows XP plus the standard AutoCAD fonts.
Font Style Offers variations of a font, such as italic or bold, when they’re available.
Use Big Font Applicable to Asian fonts. This option is offered only with AutoCAD fonts.

Size

The Size group offers settings relating to text size, scale, and orientation.

Annotative Causes the text size to adjust automatically to the current annotation scale setting.
Match Text Orientation To Layout Causes the text orientation to match the orientation of a layout view. This option is available only when the Annotative option is on.
Height/Paper Text Height Lets you enter a font size. With the Annotative option turned off, this option is named Height and will set the absolute height of the text. With the Annotative option turned on, it shows Paper Text Height and will set the height of the text when printed. A 0 height has special meaning when you use the Text command to enter single-line text as described later in this chapter.

Effects

In the Effects group, you have the following options:

Upside Down Displays text upside down.
Backwards Displays text backward.
Vertical Displays text in a vertical column.
Width Factor Adjusts the width and spacing of the characters in the text. A value of 1 keeps the text at its normal width. Values greater than 1 expand the text, and values less than 1 compress the text.
c10uf004.tif
Oblique Angle Skews the text at an angle. When this option is set to a value greater than 0, the text appears italicized. A value of less than 0 (–12, for example) causes the text to lean to the left.
c10uf005.tif

You can also set the width factor and oblique angle directly for text using the Width Factor and Oblique Angle tools in the expanded Formatting panel under the Text Editor Ribbon panel. This tab is available when you create new text or double-click existing text.


Renaming a Text Style or Other Named Object
If you need to rename a text style or other named object in AutoCAD, you can do so using the Rename command. Enter Ren↵ at the Command prompt to open the Rename dialog box. In the Named Objects list box to the left, choose Text Styles. Click the name of the style you want to change from the Items list on the right; the name appears in the Old Name box below the list. In the box next to the Rename To button, enter the new name. Click the Rename To button, and click OK.

Exploring Text Formatting in AutoCAD

cert.eps

You’ve seen how you can set up a style and make scale adjustments. AutoCAD also offers a wide range of text-formatting options that are typical of the options in most word-processing programs. You can control fonts, text height, justification, line spacing, and width. You can even include special characters such as degree symbols or stacked fractions. With these additional formatting tools, you can make adjustments to the text style with which you started.

Adjusting the Text Height and Font

To get some experience using the text-formatting tools in AutoCAD, try the following exercise. You’ll use the Multiline Text tool again, but this time you’ll get to try out some of its other features.

In this exercise, you’ll see how you can use the Ribbon tools to adjust the size and font of text:

1. Pan your view so the kitchen is just at the top of the drawing, as shown in the first image in Figure 10-8.
2. In the status bar, make sure the Annotation Scale is set to 1⁄4″ = 1′-0″ (1:100 for metric users).

Figure 10-8 Placing the text-boundary window for the living-room label and the final label

c10f008.eps
c10i009.tif
3. Click the Multiline Text tool on the Annotate tab’s Text panel, and then select a text boundary window, as shown in the first image in Figure 10-8.
4. In the text editor, type the following:
Living Room
14-0 by 16-5 [427 cm by 500 cm]
Be sure you press ↵ after Living Room, but make the rest of the text a continuous string. As you type, the words wrap. AutoCAD uses word wrap to fit the text inside the text boundary area.
5. Highlight the text 14-0 by 16-5 [427 cm by 500 cm] as you would in any word processor. For example, you can click the end of the line to place the cursor there and then Shift+click the beginning of the line to highlight the whole line.
6. In the Text Editor tab’s Style panel, click in the Text Height text box and enter 1/16↵. Metric users, enter 0.08↵. The highlighted text changes to a smaller size.
7. Highlight the words Living Room.
8. In the Formatting panel, click the Font drop-down list to display a list of font options.
c10uf006.tif
9. Scroll up the list until you find Arial. The text in the text editor changes to reflect the new font.
c10i010.tif
10. With the words Living Room still highlighted, click the Underline button in the Formatting panel.
c10i011.tif
11. Click Close Text Editor in the Close panel. The label appears in the area you indicated in step 3 (see the bottom image in Figure 10-8).
12. To see how you can go back to the Text Editor tab, double-click the text. The Text Editor tab and text editor appear, enabling you to change the text.
13. Click Close Text Editor in the Close panel.

While using the Multiline Text tool, you may have noticed the [Height/Justify/Line spacing/Rotation/Style/Width/Columns]: prompt immediately after you picked the first point of the text boundary. You can use any of these options to make on-the-fly modifications to the height, justification, line spacing, rotation style, or width of the multiline text.

For example, after clicking the first point for the text boundary, you can typeR↵ and then specify a rotation angle for the text window, either graphically with a rubber-banding line or by entering an angle value. After you’ve entered a rotation angle, you can resume selecting the text boundary.

Understanding the Text Editor Tab

cert.eps

You’ve just experimented with a few of the Text Formatting features of the Text Editor tab. A variety of additional formatting tools are available. Figure 10-9 shows where these tools are, and Table 10-1 describes their uses. Note that Figure 10-9 shows the Ribbon with the AutoCAD window at a 1024-pixel width. The Style panel will display the text styles as a list in large displays. These Ribbon tools are fairly straightforward, and if you’ve used other word-processing programs, you should find them easy to use. Most are common to the majority of word processors, although a few—such as Symbol, Oblique Angle, and Width Factor—are unique to AutoCAD. Look at Table 10-1 and see if there are any tools you think you’ll find useful.

Figure 10-9 Additional features of the Text Editor tab

c10f009.eps

Table 10-1: Text formatting tools

ToolUse
Text Style (appears when the AutoCAD window is 1024 pixels wide or smaller)Select a text style.
AnnotativeTurn the Annotative feature on or off.
Text HeightSet the paper text height of text currently being entered or edited.
Bold/Italic/Underline/Overline/StrikethroughSelect text, and then select one of these options to add bold, italic, underline, overline, or strikethrough to the text.
Text Editor Color GallerySelect text, and then choose a color from this drop-down list.
FontSelect a font different from the font for the current text style.
Background MaskThis tool gives you control over the background mask feature, which places a background behind text to make it more readable when placed over hatch patterns.
Make Lower/Upper CaseChange the case of text.
Line SpacingSet the line spacing in paragraphs. You can also set line spacing in the Properties palette for an Mtext object or by using the Paragraph dialog box. (See “Setting Indents and Tabs” later in this chapter.)
Bullets And NumberingSelect a text list, click this tool, and then select Lettered, Numbered, or Bulleted to add letters, numbers, or bullets to the list.
Default/Left/Center/Right/Justify/DistributeClick the appropriate tool to align the text to the left, center, or right side of the text boundary. Justify adds space between words to force left and right alignment. Distribute adds space between letters to force left and right alignment.
ParagraphParagraph opens a dialog box that lets you set up paragraph formatting, including tabs, indents, and paragraph spacing.
ColumnsIndicate the number of columns and how the columns are set up.
SymbolPlace the cursor at a location for the symbol, and then click the Symbol tool to find and add a symbol. (See Figure 10-10 later in this chapter for the available symbols.)
FieldClick to open the Field dialog box where you can add a text field. See “Adding Formulas to Cells” in Chapter 11, “Using Fields and Tables,” for more about fields.
Character Set/Editor SettingsCharacter Set offers foreign language characters such as Cyrillic or Greek, for example. Editor Settings offers settings for the text editor.
RulerClick to turn the ruler at the top of the Text panel on or off.

Adding Symbols and Special Characters

The Text Editor tab also offers a tool called Symbol. This tool lets you add special symbols common to technical drawing and drafting. Figure 10-10 shows the symbols that are offered in the Symbol tool in the form of a drop-down list.

Figure 10-10 Symbols available in AutoCAD

c10f010.tif

At the bottom of the Symbol drop-down list is an option called Other. By clicking the Other option, you open the Windows Character Map dialog box (see Figure 10-11). Characters such as the trademark (™) and copyright (©) symbols are often available in the fonts offered in the Character Map. The contents of the Character Map depend on the font currently selected.

Figure 10-11 The Character Map

c10f011.tif

The Character Map is a Windows accessory. If it doesn’t appear when you choose Other from the Symbol tool menu, you may need to install the Character Map from your Windows installation CD.

Finally, if your application requires music, math, astronomy, Greek, or other symbols, AutoCAD offers a set of fonts with special symbols. Figure 10-17, later in the chapter, shows these fonts and the symbols they contain. You can set up text styles with these fonts or call them up directly from the Formatting panel’s Font option.

Text Justification and Osnaps

cert.eps

You may have noticed that the object-justification list offers three center options: Top Center, Middle Center, and Bottom Center. All three of these options have the same effect on the text’s appearance, but they each have a different effect on how osnaps act on the text. Figure 10-12 shows where the osnap point occurs on a text boundary depending on which justification option is selected. A multiline text object has only one insertion point on its boundary, which you can access with the Insert osnap.

Figure 10-12 The location of the Insert osnap point on a text boundary, based on its justification setting

c10f012.eps

The osnap point also appears as an extra grip point on the text boundary when you click the text. If you click the text you just entered, you’ll see that a grip point now appears at the top center of the text boundary.

Knowing where the osnap points occur can be helpful when you want to align the text with other objects in your drawing. In most cases, you can use the grips to align your text boundary, but the Top Center and Middle Center justification options enable you to use the center and middle portions of your text to align the text with other objects.

Changing Justification of Multiple Text Objects

c10i012.tif

You’ve seen how you can change the justification of an individual text object, but you’ll often find that you need to change the justification of several text objects at one time. AutoCAD offers the Justifytext command for this purpose. To use it, click the Justify tool in the Annotate tab’s expanded Text panel, or type Justifytext↵ at the Command prompt. At the Select objects: prompt, select the text you want to change and then press ↵ to confirm your selection. You’ll see the following prompt in the command line (or at the cursor if Dynamic Input is on):

[Left/Align/Fit/Center/Middle/Right/TL/TC/TR/ML/MC/MR/BL/BC/BR] <Left>:

Enter the letters corresponding to the type of justification you want to use for the text. (See the section “Justifying Single-Line Text Objects”later in this chapter for a description of these options.) After you enter an option, the selected text changes to conform to the selected justification option.

Setting Indents and Tabs

You should also know about the indent and tab features of the text editor. You may have noticed the ruler at the top of the text editor. Figure 10-13 shows that ruler, including tabs and indent markers.

Figure 10-13 The ruler at the top of the text editor lets you quickly set tabs and indents for text.

c10f013.eps

The indent markers let you control the indention of the first line and the rest of the paragraph. The tab markers give you control over tab spacing. For new text, the tab markers don’t appear until you add them by clicking the ruler. The following exercises will demonstrate the use of these markers.

Start by practicing with the indent markers:

1. Save the Unit drawing, and then open the indent.dwg file. This file contains some text with which you’ll experiment.
2. Double-click the text at the top of the drawing to open the Text Editor tab.
3. Press Ctrl+A to highlight all the text in the text editor. This is necessary to indicate the text group to be affected by your indent settings.
4. Click and drag the top indent marker two spaces to the right. The indent of the first line moves with the marker. A note appears above the ruler showing you how much indent you’re applying. Also notice that the text at the first tab remains at its starting location.
c10uf007.tif
5. Click and drag the bottom indent marker two spaces to the left. The rest of the paragraph moves with the marker. Again, you see a note by the ruler showing how much indent you’re applying.
c10i013.tif
6. Click the Close Text Editor tool in the Text Editor tab to exit.

Here you see how you can control the indents of the selected text with the indent markers. You can set paragraphs of a single Mtext object differently, giving you a wide range of indent-formatting possibilities. Just select the text you want to set, and then adjust the indent markers.

Now try the tab markers. For this exercise, you’ll try the text-import feature to import a tab-delimited text file:

c10i014.tif
1. Click the Multiline Text tool on the Annotate tab’s Text panel.
2. For the first corner of the text boundary, click the upper-left corner of the large rectangle in the drawing, just below the paragraph.
3. For the opposite corner of the text boundary, click the lower-right corner of the rectangle.
4. Right-click in the text editor, and select Import Text.
5. In the Select File dialog box, locate and select the tabtest.txt file and then click Open. The contents of the tabtest.txt file are displayed in the text editor.

The file you just imported was generated from the Attribute Extraction Wizard in AutoCAD. You’ll learn more about this feature in Chapter 13, “Using Attributes.” This file contains tabs to align the columns of information. You can adjust those tabs in the Text Formatting toolbar, as you’ll see in the next set of steps.

Now use the tab markers to adjust the tab spacing of the columns of text:

1. Press Ctrl+A to select all the text.
2. Click the ruler at a point that is at the 12th mark from the left (that’s three of the taller tick marks in the ruler). An L-shaped marker appears, and the first tab column of text moves to this position.
c10uf008.tif
3. Click the ruler again at the 20th mark. The second tab column aligns to this position.
c10uf009.tif
4. Continue to click the ruler to add more tab markers so the text looks similar to Figure 10-14. Don’t worry about being exact; this is just for practice. After you’ve placed a marker, you can click and drag it to make adjustments.

Figure 10-14 Add tab markers so your text looks similar to this figure.

c10f014.tif
5. Click Close Text Editor in the Text Editor tab’s Close panel. The text appears in the drawing as a door schedule.

Here you saw how you can create a table or a schedule from an imported text file. You can also create a schedule from scratch by composing it directly in the text editor of the Multiline Text command. AutoCAD also offers the Table feature, which is specifically designed for creating tables (see Chapter 11). Still, the previous example offers a way to demonstrate the tab feature in the Multiline Text tool, and you may encounter a file in which a table is formatted in the way described here.

In addition to using the indent and tab markers on the ruler, you can control indents and tabs through the Paragraph dialog box. Do the following to get a firsthand look:

1. Double-click the text at the top of the indent.dwg drawing (the one you edited in the first part of this section), and then press Ctrl+A to select all the text.
2. Right-click the ruler above the text editor, and select Paragraph to open the Paragraph dialog box (see Figure 10-15). The Paragraph dialog box also lets you set other paragraph settings, such as alignment, spacing between paragraphs, and line spacing in the paragraph.

Figure 10-15 The Paragraph dialog box

c10f015.tif
3. Change the value in the First Line box to 1.5 and the Hanging box to 2.2.
4. Double-click the tab position box in the upper-left corner, just below the row of tab symbols in the Tab group. Enter 2.2,and click the Add button.
5. Click OK. The text now appears indented from the numbers.
c10uf010.tif
6. Click the Close Text Editor tool in the Close panel. The text in the drawing is now formatted as it appeared in the text editor.
7. Close but do not save the indent.dwg file.

In this exercise, you used the Paragraph dialog box to set the paragraph indent and the first tab marker to be the same value. This causes the text portion of the list to be aligned at a distance of 2.2 drawing units from the left text boundary, leaving the list number extended farther to the left. This gives the list a more professional appearance.


Setting Exact Mtext Width and Height
You may have noticed the options Set Mtext Width and Set Mtext Height in the right-click context menu in step 2 of the exercise using the Paragraph dialog box. The Set Mtext Width option opens a dialog box that enables you to enter a width for paragraph columns where there are multiple columns. The Set Mtext Height allows you to enter an exact height for columns.

The Paragraph dialog box gives you fine control over the formatting of your text. It lets you delete tabs by highlighting them in the list and clicking the Remove button. You can also add tabs at specific distances from the left margin of the text boundary by entering new tab locations in the Tab box and clicking the Add button.

You specify distances in drawing units. If your drawing is set up to use architectural units, for example, you can enter values in feet and inches or just inches. In the First Line and Hanging boxes, you enter a numeric value for paragraph indents. As you’ve just seen, you can use the First Line and Hanging boxes to create a numbered list by setting the Hanging box value to be the same as the first tab stop position.

What Do the Fonts Look Like?

You’ve already seen a few of the fonts available in AutoCAD. Chances are that you’re familiar with the TrueType fonts available in Windows. You have some additional AutoCAD fonts from which to choose. You may want to stick with the AutoCAD fonts for all but your presentation drawings because other fonts can consume more memory.

Figure 10-16 shows the basic AutoCAD text fonts. The Romans font is perhaps the most widely used because it offers a reasonable appearance while consuming little memory. Figure 10-17 lists some of the symbols and Greek fonts.

Figure 10-16 Some of the standard AutoCAD text fonts

c10f016.tif

Figure 10-17 Some of the AutoCAD symbols and Greek fonts

c10f017.eps

Importing Text Files
With multiline text objects, AutoCAD enables you to import ASCII text (TXT) or Rich Text Format (RTF) files. RTF files can be exported from Microsoft Word and most other word-processing programs and retain most of their formatting in AutoCAD. Here’s how you import text files:
1. With the multiline text editor open, right-click in the text area and choose Import Text.
2. In the Select File dialog box, locate a valid text file. It must be a file in either a raw text (ASCII) format, such as a Notepad file (with the filename extension.txt) or RTF (with the filename extension.rtf). RTF files can store formatting information such as boldface and varying point sizes.
3. After you’ve highlighted the file you want, double-click it or click Open. The text appears in the text editor window.
4. Click the Close Text Editor button, and the text appears in your drawing.
You can use the Windows Clipboard and the Cut and Paste functions to add text to a drawing. To do this, follow these steps:
1. Select some text and then choose Cut or Copy in any Windows program to place the text on the Windows Clipboard.
2. Open AutoCAD. Right-click in the drawing area, and choose Clipboard ⇒ Paste from the Home tab’s Clipboard panel; the pasted text appears in your drawing. However, it isn’t editable in AutoCAD.
Additionally, you may drag and drop TXT and RTF files directly from Windows Explorer into AutoCAD, with the same results.
If the text is from a text editor like Windows Notepad, it is inserted as AutoCAD text. If the text contains formatting from a word processor, like Microsoft Word, the text is an OLE object.
Because AutoCAD is an OLE client, you can also attach other types of documents to an AutoCAD drawing file. See Chapter 20, “Getting and Exchanging Data from Drawings,” for more on OLE support in AutoCAD.

In the following sections, you’ll work with some of the AutoCAD fonts. You can see samples of all the fonts, including TrueType fonts, in the preview window of the Text Style dialog box. If you use a word processor, you’re probably familiar with at least some of the TrueType fonts available in Windows and AutoCAD.


The Textfill System Variable
Unlike the standard sticklike AutoCAD fonts, TrueType and PostScript fonts have filled areas. These filled areas take more time to generate, so if you use these fonts for a lot of text, your redraw and regen times will increase. To help reduce redraw and regen times, you can set AutoCAD to display and plot these fonts as outline fonts while still printing them as solid fonts.
To change this setting, type Textfill↵, and then type 0↵. Doing so turns off text fill for PostScript and TrueType fonts.

Adding Simple Single-Line Text Objects

cert.eps

You might find that you’re entering a lot of single words or simple labels that don’t require all the bells and whistles of the multiline text editor. AutoCAD offers the single-line text object, which is simpler to use and can speed text entry if you’re adding only small pieces of text.

Continue the tutorial on the Unit.dwg or the 10b-unit.dwg sample file by trying the following exercise:

1. Adjust your view so that you see the part of the drawing shown in Figure 10-18.

Figure 10-18 Adding simple labels to the kitchen and bath by using the Text command

c10f018.tif
2. Make sure Note1 is the current text style, and then, from the Multiline Text flyout on the Annotate tab’s Text panel, click the Single Line tool, or enter Dt↵.
c10uf011.tif
3. At the Specify start point of text or [Justify/Style]: prompt, pick the starting point for the text you’re about to enter, just below the kitchen at coordinate 17′-2″,22′-5″ (490,664 for metric users). Note that the prompt offers the Justify and Style options.
4. At the Specify rotation angle of text <0>: prompt, press ↵ to accept the default, 0. You can specify any angle you like at this prompt (for example, if you want your text aligned with a rotated object). You see a text I-beam cursor at the point you picked in step 3.
5. Type Kitchenette. As you type, the word appears directly in the drawing.

Pasting Text from Other Sources
You can paste text from the Clipboard into the cursor location by using the Ctrl+V keyboard shortcut or by right-clicking in the drawing area to access the context menu.

6. This time, you want to label the bathroom. Pick a point to the right of the door swing; you can approximate the location since you can always adjust the text location later. The text cursor moves to that point.
7. Type Bathroom↵. Figure 10-18 shows how your drawing should look now.
8. Press ↵ again to exit the Text command.

Continuing Where You Left Off
If for some reason you need to stop entering single-line text objects to do something else in AutoCAD, you can continue the text where you left off by starting the Text command and then pressing ↵ at the Specify start point of text or [Justify/Style]: prompt. The text continues immediately below the last line of text entered.

Here you were able to add two single lines of text in different parts of your drawing fairly quickly. Text uses the current default text style settings. If you want to create a column of single-line text, you can press ↵ to move the cursor down to start a new line below the one you just entered.

To edit single-line text, you can double-click the text. The text is highlighted, and you can begin typing to replace it all, or you can click a location in the text to make single word or character changes.

This is the end of the tutorial section of this chapter. The rest of this chapter offers additional information about text.

Justifying Single-Line Text Objects

cert.eps

Justifying single-line text objects is slightly different than justifying multiline text. For example, if you change the justification setting to Center, the text moves so that the center is placed at the text-insertion point. In other words, the insertion point stays in place while the text location adjusts to the new justification setting. Figure 10-19 shows the relationship between single-line text and the insertion point based on different justification settings.

Figure 10-19 Text inserted using the various justification options

c10f019.eps

To set the justification of text as you enter it, you must enter J↵ at the Specify start point of text or [Justify/Style]: prompt after issuing the Text command. You can also change the current default style by entering S↵ and then the name of the style at the Specify start point of text or [Justify/Style]: prompt.

After you’ve issued Text’s Justify option, you get the following prompt:

Enter an option
[Align/Fit/Center/Middle/Right/TL/TC/TR/ML/MC/MR/BL/BC/BR]:

Here are descriptions of each of these options. (We’ve left Fit and Align until last because they require more explanation.)

Center Centers the text on the start point with the baseline on the start point.
Middle Centers the text on the start point with the baseline slightly below the start point.
Right Justifies the text to the right of the start point with the baseline on the start point.
TL, TC, and TR TL, TC, and TR stand for Top Left, Top Center, and Top Right. When you use these justification styles, the text appears entirely below the start point, justified left, center, or right, depending on which option you choose.
ML, MC, and MR ML, MC, and MR stand for Middle Left, Middle Center, and Middle Right. These styles are similar to TL, TC, and TR except that the start point determines a location midway between the baseline and the top of the lowercase letters of the text.
BL, BC, and BR BL, BC, and BR stand for Bottom Left, Bottom Center, and Bottom Right. These styles too are similar to TL, TC, and TR, but here the start point determines the bottommost location of the letters of the text (the bottom of letters that have descenders, such as p,q, and g).
Align and Fit With the Align and Fit justification options, you must specify a dimension in which the text is to fit. For example, suppose you want the word Refrigerator to fit in the 26″-wide box representing the refrigerator. You can use either the Fit or the Align option to accomplish this. With Fit, AutoCAD prompts you to select start and end points and then stretches or compresses the letters to fit within the two points you specify. You use this option when the text must be a consistent height throughout the drawing and you don’t care about distorting the font. Align works like Fit, but instead of maintaining the current text style height, the Align option adjusts the text height to keep it proportional to the text width without distorting the font. Use this option when it’s important to maintain the font’s shape and proportion. Figure 10-20 demonstrates how Fit and Align work.

Figure 10-20 The word Refrigerator as it appears normally and with the Fit and Align options selected

c10f020.tif
c10i015.tif

You can change the justification of single-line text by using the Properties palette, but the text moves from its original location while maintaining its insertion point. If you want to change the justification of text without moving the text, you can use the Justifytext command. Click the Justify tool in the Annotate tab’s expanded Text panel, or type Justifytext at the Command prompt, and then select the text you want to change. Justifytext works on both multiline and single-line text.


Keeping Text from Mirroring
At times, you’ll want to mirror a group of objects that contain some text. This operation causes the mirrored text to appear backward. You can change a setting in AutoCAD to make the text read normally even when it’s mirrored:
1. At the Command prompt, enter Mirrtext↵.
2. At the Enter new value for MIRRTEXT <1>: prompt, enter 0↵.
Now any mirrored text that isn’t in a block will read normally. The text’s position, however, will still be mirrored, as shown in the following example. Mirrtext is set to 0 by default.
c10uf012.eps

Using Special Characters with Single-Line Text Objects

Just as with multiline text, you can add a limited set of special characters to single-line text objects. For example, you can place the degree symbol (°) after a number, or you can underscore (underline) text. To accomplish this, you use double percent signs (%%) in conjunction with a special code. For example, to underscore text, you enclose that text with %% followed by the letter u, which is the underscore code. So to create the text “This is underscored text,” you enter the following at the prompt:

This is %%uunderscored%%u text.

Overscoring (putting a line above the text) operates in the same manner. To insert codes for symbols, you place the codes in the correct positions for the symbols they represent. For example, to enter 100.5°, you type 100.5%%d. Table 10-2 shows some other examples of special character codes.

Table 10-2: Special character codes

CodeWhat it does
%%oToggles overscore on and off.
%%uToggles underscore on and off.
%%cPlaces a diameter symbol where the code occurs.
%%dPlaces a degree sign (°) where the code occurs.
%%pPlaces a plus/minus sign where the code occurs.
%%%Forces a single percent sign. This is useful when you want a percent sign in conjunction with another code.
%%nnnAllows the use of extended characters or Unicode characters when these characters are available for a given font. nnn is the three-digit value representing the ASCII extended character code.

Using the Character Map Dialog Box to Add Special Characters

You can add special characters to a single line of text in the same way you add special characters to multiline text. You may recall that to access special characters, you use the Character Map dialog box.

To open the Character Map dialog box, choose Start ⇒ All Programs ⇒ Accessories ⇒ System Tools ⇒ Character Map. You can then use the procedure discussed in the section “Adding Symbols and Special Characters” earlier in this chapter to cut and paste a character from the Character Map dialog box. If you use the Character Map dialog box often, create a shortcut for it and place the shortcut in your Start menu or on your Desktop.

Using the Check Spelling Feature

Although AutoCAD is primarily a drawing program, you’ll find that some of your drawings contain more text than graphics, and so AutoCAD does include a spell checking tool. If you’ve ever used the spelling checker in a typical word processor, such as Microsoft Word, the operation in AutoCAD will be familiar to you.

How Check Spelling Works

The hardest part to using the Check Spelling tool is locating it in the Ribbon. Try the following to see how it works:

c10i016.tif
1. Click the Check Spelling tool in the Annotate tab’s Text panel. You can also type Sp↵. The Check Spelling dialog box appears (see Figure 10-21).

Figure 10-21 The Check Spelling dialog box

c10f021.tif
2. You can click the Start button to check the spelling in the entire drawing. Or if you prefer, you can be more selective by choosing an option from the Where To Check drop-down list. You can select a mixture of multiline and single-line text as well as dimension text, attributes, and text in Xrefs.

When the spelling checker finds a word it doesn’t recognize, the Check Spelling dialog box shows you the word along with a suggested spelling. If the spelling checker finds more than one spelling, a list of suggested alternate words appears below the box. You can then highlight the desired replacement and click the Change button to change the misspelled word, or you can click Change All to change all occurrences of the word in the selected text. If the suggested word is inappropriate, choose another word from the replacement list (if any) or enter your own spelling in the Suggestions box. Then click Change or Change All.

Here is a list of the options available in the Check Spelling dialog box:

Add To Dictionary Adds the word in question to the current dictionary.
Ignore Skips the word.
Ignore All Skips all occurrences of the word in the text being checked.
Change Changes the word in question to the word you’ve selected from (or entered into) the Suggestions box.
Change All Changes all occurrences of the current word when there are multiple instances of the misspelling.
Dictionaries Lets you use a different dictionary to check spelling. This option opens the Dictionaries dialog box, described in the upcoming section.

The Check Spelling feature includes types of notations that are more likely to be found in technical drawings. It also checks the spelling of text that is included in block definitions, externally referenced files, and dimensions.

Choosing a Dictionary

Clicking the Dictionaries button in the Check Spelling dialog box opens the Dictionaries dialog box (see Figure 10-22), where you can select a particular main dictionary for foreign languages or create or choose a custom dictionary. The names of main dictionary files have the .dct extension. The main dictionary for the US version of AutoCAD is Enu.dct.

Figure 10-22 Choosing a dictionary

c10f022.tif

In the Dictionaries dialog box, you can also add or delete words from a custom dictionary. Custom dictionary files are ASCII files with names that end with the .cus extension. Because they’re ASCII files, you can edit them outside of AutoCAD. Click the Current Custom Dictionary drop-down list to view a list of existing custom dictionaries.

If you prefer, you can select a main or custom dictionary by using the Dctmain system variable. Click the Help button and then, in the Autodesk® Exchange window, select the Search tab. Enter Dctmain to learn more about the Dctmain system variable.

You can also select a dictionary from the Files tab of the Options dialog box (see Figure 10-23; choose Options from the Application menu). You can find the dictionary list under Text Editor, Dictionary, And Font File Names. Click the plus sign next to this item, and then click the plus sign next to the Main Dictionary item to display the dictionary options. From here, you can double-click the dictionary you prefer.

Figure 10-23 Choosing a dictionary via the Options dialog box

c10f023.tif

Substituting Fonts

At times, you’ll want to change all the fonts in a drawing quickly. For instance, you might need to convert the font of a drawing received from another office to a font that conforms to your own office standards. The Fontmap system variable works in conjunction with a font-mapping table, enabling you to substitute fonts in a drawing easily.

The font-mapping table is an ASCII file called Acad.fmp, which is located in the C:UsersUser NameAppDataRoamingAutodeskAutoCAD 2014R19.1enuSupport folder. You can also use a file you create yourself. You can give this file any name you choose, as long as it has the .fmp extension.

This font-mapping table contains one line for each font substitution you want AutoCAD to make. A typical line in this file reads as follows:

romant; C:Program FilesAutodeskAutoCAD 2014Fonts	xt.shx

In this example, AutoCAD is directed to use the txt.shx font in place of the romant.shx font. To execute this substitution, you type FontmapFontmap_filename↵.

Fontmap_filename is the font-mapping table you created. This tells AutoCAD where to look for the font-mapping information. Then you issue the Regen command to view the font changes. To disable the font-mapping table, type Fontmap↵.

You can also specify a font-mapping file in the Files tab of the Options dialog box. Look for the Text Editor, Dictionary, And Font File Names listing. Click the plus sign next to this listing, and then click the plus sign next to the Font Mapping File listing to display the name and location of the current default font-mapping file. If you hold the cursor over the name, AutoCAD displays the full location of the file (see Figure 10-24).

You can double-click this filename to open the Select A File dialog box. From there, you can select a different font-mapping file.

Figure 10-24 AutoCAD shows the full path to the font-mapping file.

c10f024.tif

Finding and Replacing Text

One of the most time-consuming tasks in drafting is replacing text that appears repeatedly throughout a drawing. Fortunately, you have a Find And Replace tool to help simplify this task. Find And Replace in AutoCAD works like any other find-and-replace tool in a word-processing program. A few options work specifically with AutoCAD. Here’s how it works:

1. Enter the text you want to locate in the Find Text box located in the middle of the Annotate tab’s Text panel (see Figure 10-25), and then click the magnifying glass to the right. The Find And Replace dialog box opens, and the drawing area displays the part where the text has been found.

Figure 10-25 Using Find And Replace

c10f025.tif
2. Enter the replacement text in the Replace With box.
3. When you’ve made certain that this is the text you want to change, click Replace. If you want to replace all occurrences of the text in the drawing, click Replace All.
4. If you want to skip over the found text, click Find Next to locate the next instance of the text in your drawing. If the text is not found, AutoCAD returns to your original view.

You can also enter Find↵ at the Command prompt to open the Find And Replace dialog box and then enter the text you want in the Find What text box.

You can also limit your find-and-replace operation to a specific set of objects in your drawing by choosing Selected Objects from the Find Where drop-down list. Once you’ve selected this option, click the Select Objects tool in the upper-right corner of the Find And Replace dialog box (see Figure 10-26).

Figure 10-26 The Select Objects tool

c10f026.eps

Making Substitutions for Missing Fonts
When text styles are created, the associated fonts don’t become part of the drawing file. Instead, AutoCAD loads the needed font file at the same time the drawing is loaded. If a text style in a drawing requires a particular font, AutoCAD looks for the font in the AutoCAD search path; if the font is there, it’s loaded. Usually this isn’t a problem if the drawing file uses the standard fonts that come with AutoCAD or Windows. But occasionally, you’ll encounter a file that uses a custom font.
In earlier versions of AutoCAD, you saw an error message when you attempted to open such a file. This missing-font message often sent new AutoCAD users into a panic.
Fortunately, now AutoCAD automatically substitutes an existing font for the missing font in a drawing. By default, AutoCAD substitutes the simplex.shx font, but you can specify another font by using the Fontalt system variable. Type Fontalt↵ at the Command prompt, and then enter the name of the font you want to use as the substitute.
You can also select an alternate font through the Files tab of the Options dialog box. Locate the Text Editor, Dictionary, And Font File Names listing, and then click the plus sign at the left. Locate the Alternate Font File item, and click the plus sign at the left. The current alternate is listed. You can double-click the font name to select a different font through the Alternate Font dialog box.
Be aware that the text in your drawing will change in appearance, sometimes radically, when you use a substitute font. If the text in the drawing must retain its appearance, substitute a font that is as similar in appearance to the original font as possible.

When you click the Select Objects tool, the Find And Replace dialog box closes temporarily to enable you to select a set of objects or a region of your drawing. Find And Replace then limits its search to those objects or the region you select.

c10i017.tif

You can further control the types of objects that Find And Replace looks for by clicking the More Options tool in the lower-left corner of the Find And Replace dialog box. The dialog box expands to show more options (see Figure 10-27).

With this dialog box, you can refine your search by limiting it to blocks, dimension text, standard text, or hyperlink text. You can also specify whether to match the case and find whole words only.


Speeding Up AutoCAD with Qtext
If you need to edit a large drawing that contains a lot of text but you don’t need to edit the text, you can use the Qtext command to help accelerate redraws and regenerations when you’re working on the drawing. Qtext turns lines of text into rectangular boxes, saving AutoCAD from having to form every letter. This enables you to see the note locations so that you don’t accidentally draw over them. To use it, enter qtext↵ at the Command prompt and enter On or select the On option from the Dynamic Input display.

Figure 10-27 More extensive options for Find And Replace

c10f027.tif

Create Paragraph Columns
You can format Mtext into multiple columns. This can be useful for long lists or to create a newspaper column appearance for your text. Text formatted into columns will automatically flow between columns as you add or remove text.
To format text into columns, do the following:
1. Create the text using the Mtext tool as usual.
2. Click and drag the double-headed arrow at the bottom of the text upward. As you do this, a second column appears.
c10uf013.eps
3. If you want to create another column, click and drag the double-headed arrow below the second column upward.
4. To adjust the column width, click and drag the diamond icon that appears just to the right of the first column in the ruler. All the columns will adjust to the width of the first column.
Once you’ve set up your columns, click the Close Text Editor tool. You can adjust the column width and spacing by using grips that appear when you click on the text.
c10uf014.eps
To adjust the column width of existing Mtext, click and drag the arrow grip at the top and to the right of the first column. To adjust the width between columns (the column spacing), click and drag the arrow grip at the top and to the right of the last column. The grips at the bottom of each column allow you to adjust the height of the columns.
You can manually set column features through the Column Settings dialog box. To open it, double-click on the Mtext and then choose Column Settings from the Columns flyout in the Text Editor tab’s Insert panel.
c10uf015.tif
The Dynamic Columns option is the default for the Column Type group, and it allows you to adjust the column size using grips.

The Bottom Line

Prepare a drawing for text. AutoCAD offers an extensive set of features for adding text to a drawing, but you need to do a little prep work before you dive in.
Master It Name two things you need to do to prepare a drawing for text.
Set the annotation scale and add text. Before you start to add text, you should set the annotation scale for your drawing. Once this is done, you can begin to add text.
Master It In a sentence or two, briefly describe the purpose of the annotation scale feature. Name the tool you use to add text to a drawing.
Explore text formatting in AutoCAD. Because text styles contain font and text-size settings, you can usually set up a text style and then begin to add text to your drawing. For those special cases where you need to vary text height and font or other text features, you can use the Formatting panel of the Text Editor tab.
Master It What text formatting tool can you use to change text to boldface type?
Add simple single-line text objects. In many situations, you need only a single word or a short string of text. AutoCAD offers the single-line text object for these instances.
Master It Describe the methods for starting the single-line text command.
Use the Check Spelling feature. It isn’t uncommon for a drawing to contain the equivalent of several pages of text, and the likelihood of having misspelled words can be high. AutoCAD offers the Check Spelling feature to help you keep your spelling under control.
Master It What option do you select in the Check Spelling dialog box when it finds a misspelled word and you want to accept the suggestion it offers?
Find and replace text. A common activity when editing technical drawings is finding and replacing a word throughout a drawing.
Master It True or false: The Find And Replace feature in AutoCAD works very differently than the find-and-replace feature in other programs.
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.226.164.75