[**This article is about 1,300 words total. Those who want to fit it into 1,000 words can eliminate some of the Tips and Tricks at the end. One figure (WordAFig14.pcx) is referenced in the article. **]

Importing Text from Microsoft Word into AutoCAD R14

by Mark Middlebrook
copyright © 1997 by Daedalus Consulting

AutoCAD R13 and R14 added many improvements for text creation and editing, but it still can be a chore to create large blocks of text, such as a sheet of general notes or a table of abbreviations. Ideally, you'd like to create and edit the text in a word processor such as Microsoft Word and then import the document into AutoCAD.

Pasting the word processing document via OLE (object linking and embedding) is one possibility in R14 (see chapter 16 of the R14 AutoCAD User's Guide for instructions), but this approach has several limitations and problems:

This article describes an alternative method for creating text in a word processor and transferring the text into AutoCAD while maintaining simple formatting such as hanging indents. The goal is to ensure that What You See in your word processor is What You Get in AutoCAD.

The instructions here are for Microsoft Word 7.0, but you can modify them for other word processors, such as WordPerfect. This method relies on using a fixed width font (a font in which every character takes up the same amount of horizontal space) in both Word and AutoCAD, because that's the only straightforward way to maintain a hanging indent (see figure). If you don't need hanging indents, you can use proportionally spaced fonts such as RomanS.Shx.

In Microsoft Word

Start by setting up a new document and creating the notes in Word.

  1. Use the Style dialog to change the fonts of the Normal style and any other styles you intend to use to Courier New (Format, Style, Modify, Format, Font). The example in the figure uses 12 point Courier New in order to make the text more legible and reduce the number of characters per line.
  2. For numbered items with numbers to the left of the text, as shown in the figure, create a style with a hanging indent and list numbering turned on. To automatically add a line space between numbered items, set Space Before to a size that's at least as large as the point size for the style. The example in the figure uses Word's default List Number style with Hanging Indent changed to 0.5", Space Before set to 12 points, and a single tab stop set at 0.5" (Format, Style, Modify, Format, Paragraph, Spacing Before and Tabs). For best results, the hanging indent should match the tab spacing.
  3. Type in the notes. You can use Word formatting that affects the spatial layout of text (e.g., tabs). You also can check spelling and hyphenate the document.
  4. When you've finished entering the text, save the document in Word's native DOC format, and then save it again as an MS-DOS text file with layout preserved. To save in this format, use Save As on the File menu and choose "MS-DOS Text with Layout" in the "Save as type" drop-down list. (If you don't see "MS-DOS Text with Layout" as a choice, you need to install the converter from your Word CD – see Tips and Tricks below for details.) When you save to this format, Word wants to add an ASC extension to the file name. To override this extension, type the file name in quotation marks: "GenNotes.Txt".

In AutoCAD

  1. Create or open the drawing in which you want to put the notes.
  2. Use LAYER to create or set current the layer on which you want to put the notes.
  3. Use STYLE or –STYLE to create a style with a fixed width font. The only fixed width SHX font that comes with AutoCAD is MonoTxt, which is pretty ugly. Try a custom font like MonoSimp.Shx instead (see Tips and Tricks below).
  4. Use the Edit MText dialog's (i.e., MTEXT command's) Import button or the R12 AscText.Lsp program to import the ASCII text file that you exported from Word. The figure shows the results with MTEXT.
  5. Use DDEDIT and other AutoCAD commands to do any fine tuning, such as changing the height or font of titles.

Tips and Tricks