This chapter discusses ways to import existing drawings into the AutoCAD® 2019 software through tracing, scaling, and scanning. At times, you'll want to turn an existing drawing into an AutoCAD drawing file. The original drawing may be hand drawn, or it might be a PDF from another source. You may be modifying a design that someone else created or converting your library of older, hand‐drafted drawings for AutoCAD use. Perhaps you want to convert a hand‐drawn sketch into a formal drawing. In addition to importing drawings, you'll learn how to incorporate drawings in Portable Document Format (PDF) into your AutoCAD work.
Tracing with a special piece of hardware known as a digitizing tablet used to be the only way to enter a hand‐drafted drawing into AutoCAD. However, a traced drawing usually requires some cleanup and reorganization.
Scaling a drawing is the method of taking measurements directly from a paper drawing using an architect's or engineer's scale. It is the most flexible method because you don't need special peripherals to do it and, generally, you're faced with fewer cleanups afterward. Scaling also facilitates the most accurate input of orthogonal lines because you can read dimensions directly from the drawing and enter them into AutoCAD. The main drawback with scaling is that if the hand‐drafted drawing does not contain written dimensions, it will be difficult to produce an accurate copy. In addition, you must constantly look at the hand‐drafted drawing and measure distances with a scale, and irregular curves are difficult to scale accurately.
Programs are available that automatically convert an image file into an AutoCAD drawing file consisting of lines and arcs. These programs may offer some help, but they require some editing and checking for errors.
Scanning, much like tracing, is best used for drawings that are difficult to scale, such as complex topographical maps containing a large number of contours or nontechnical line art, such as letterhead and logos.
The simplest method for converting paper drawings, and the method we show you in this chapter, is to scan your drawings as image files to be used as a background in AutoCAD. You can import your image files into AutoCAD and then trace directly over them. This technique allows you to see the original drawing in the AutoCAD window, removing the need to refer constantly to documents in other programs.
If you have a scanner and you'd like to use it to import drawings and other images into AutoCAD, you can take advantage of the program's ability to import raster images. There are many reasons you may want to import a scanned image. In architectural plans, a vicinity map is frequently used to show the location of a project. With the permission of its creator, you can scan a map into AutoCAD and incorporate it into a cover sheet. That cover sheet can also contain other images, such as photographs of the site, computer renderings and elevations of the project, and company logos. In architectural projects, scans of older drawings can be used as backgrounds for renovation work. This can be especially useful for historical buildings where the building's owner wishes to keep the original architectural detail.
Another reason for importing a scanned image is to use the image as a reference over which to trace. You can trace a drawing with a good deal of accuracy by using a scanned image. A scanner can be a cost‐effective tool for tracing a wide variety of graphic material, or you can use your smartphone camera to photograph a drawing. In this section, you'll learn how you can import an image as a background for tracing:
acad.dwt
(acadiso.dwt
) template, create a new file called Rastertrace.dwg
and switch off the background grid.You can also type XR↵. This palette should look familiar from Chapter 7, “Mastering Viewing Tools, Hatches, and External References.” It's the same palette that you used to manage external references. Just like external references (Xrefs), raster images are loaded when the current file is open but they aren't stored as part of the current file when it is saved. This helps keep file sizes down, but it also means that you need to keep track of inserted raster files. You must make sure that they're kept together with the AutoCAD files in which they're inserted. For example, you might want to keep image files in the same folder as the drawing file to which they're attached.
AutoCAD has a utility called eTransmit that collects AutoCAD files and their related support files, such as raster images, external references, and fonts, into any folder or drive that you specify. See Chapter 25, “Managing and Sharing Your Drawings,” for details.
Another similarity between Xrefs and imported raster images is that you can clip a raster image so that only a portion of the image is displayed in your drawing. Portions of a raster file that are clipped aren't stored in memory, so your system won't get bogged down even if the raster file is huge.
The following exercises gives you step‐by‐step instructions for importing a raster file. It also lets you see how scanned resolution translates into an image in AutoCAD. This is important if you're interested in scanning drawings for the purpose of tracing over them.
First, you need to set up your drawing for scale and size. If you are using Imperial units, set up the Rastertrace.dwg
file as an architectural drawing with a 1/4″ = 1′ scale on an 8‐1/2″ × 11″ sheet of paper. Metric users should set up their drawing at a 1:50 scale on an A4 Size sheet. Here are the steps:
Now you're ready to import the raster file. Do the following:
In the Select Reference File dialog box, locate and select the raster1.jpg
project file. You can see a preview of the file on the right side of the dialog box.
Specify scale factor <1>:
prompt, use the cursor to scale the image so that it fills about half of the screen, as shown in Figure 13.3. The raster1.jpg
filename appears in the External References palette.Once you've imported a raster image, you can begin to work with it in a variety of ways. You can resize the image to suit your needs and even adjust its size to a particular scale. Raster images can be made to overlap AutoCAD objects, or you can have raster images appear in the background. There are also rudimentary controls for brightness, contrast, and transparency. In the following sections, you'll continue to use the image that you attached to your drawing to explore some of these options.
The raster1.jpg
file was scanned as a grayscale image at 100 dpi. This shows that you can get a reasonable amount of detail at a fairly low scan resolution.
Now suppose that you want to trace over this image to start an AutoCAD drawing. The first thing that you should do is scale the image to the appropriate size. You can scale an image file to full size. Try the following steps to see how you can begin the process:
Specify base point:
prompt, click the X in the lower‐left corner of the image.Specify scale factor or [Copy/Reference]:
prompt, enter R↵ to use the Reference option.Specify reference length <0′ ‐1″>:
prompt, type @↵. This tells AutoCAD that you want to use the last point selected as one end of the reference length. After you enter the @ symbol, you'll see a rubber‐banding line emanating from the X.Specify second point:
prompt, click the X at the lower‐right corner of the image.Specify new length or [Points] <0
′ ‐1
″ >:
prompt, enter 44′↵. Metric users should enter 1341↵. The image enlarges. Remember that this reference line is 44′, or 1341 cm, in length.The image is now scaled properly for the plan it portrays. You can proceed to trace over the image. You can also place the image on its own layer and turn it off from time to time to check your trace work. Even if you don't trace the scanned floor plan line for line, you can read the dimensions of the plan from your computer monitor instead of having to go back and forth between measuring the paper image and drawing the plan on the computer.
With the introduction of raster image support, AutoCAD inherited a problem that's fairly common to programs that use such images: Raster images obscure other objects that were placed previously. The image you imported in the previous exercise, for example, obscures the line you drew when you first opened the file. In most cases, this overlap isn't a problem. However, in some situations, you'll want AutoCAD vector objects to overlap an imported raster image. An example is a civil‐engineering drawing showing an AutoCAD drawing of a new road superimposed over an aerial view of the location for the road.
Paint and page‐layout programs usually offer a “to front/to back” tool to control the overlap of objects and images. AutoCAD offers the Draworder command. Here's how it works:
Select objects:
prompt, select the horizontal line that you drew when you first opened the file.Select reference objects:
prompt, click the edge of the raster image of the utility room and then press ↵.The drawing regenerates, and the entire line appears, no longer obscured by the raster image.
The Draworder tool that you just used has nine options in the Draworder flyout on the Home tab's Modify panel:
You can also use the DR keyboard shortcut to issue the Draworder command. If you do this, you see these prompts:
Select objects:
Enter object ordering option [Above objects/Under objects/Front/Back]<Back>:
After selecting an object or set of objects at the Select Objects
: prompt, press ↵. You must then select the option by typing the capitalized letter of the option.
Although this section discussed the Draworder tools in relation to raster images, they can also be invaluable in controlling visibility of line work in conjunction with hatch patterns and solid fills. See Chapter 7 for a detailed discussion of the Draworder tools and hatch patterns.
AutoCAD offers a tool that enables you to adjust the brightness, contrast, and fade of a raster image. Try making some adjustments to the raster image of the utility room in the following exercise:
Rasterimport.dwg
.You can adjust the brightness and contrast by using the other two sliders in the Adjust panel of the Image tab.
By using the Image tab in conjunction with image clipping, you can create special effects. Figure 13.5 shows an aerial view of downtown San Francisco with labels. This view consists of two copies of the same raster image. One copy serves as a background, which was lightened using the method demonstrated in the previous exercise. The second copy is the darker area of the image with a roughly triangular clip boundary applied. You might use this technique to bring focus to a particular area of a drawing that you're preparing for a presentation.
If the draw order of objects is incorrect after you open a file or perform a Pan or Zoom, issue a Regen to recover the correct draw‐order view.
In addition to the tools in the Adjust panel, there are several tools in the Image tab that can be used to modify raster images. Table 13.1 gives you a rundown of their function.
TABLE 13.1: The tools on the Image tab
Tool | Function |
Brightness | Adjusts the brightness of an image. |
Contrast | Adjusts the contrast of an image. |
Fade | Adjusts the fade value of an image. |
Create Clipping Boundary | Allows you to create a clipping boundary. This tools works just like the Clip tool. |
Remove Clipping | Removes a clipping boundary. |
Show Image | Toggles an image on and off. |
Background Transparency | Toggles the transparency of an image on and off. |
External References | Opens the External References palette. |
In Chapter 7, you saw how you could clip an external reference object so that only a portion of it appears in the drawing. You can clip imported raster images in the same way. Just as with Xrefs, you can create a closed outline of the area that you want to clip, or you can specify a simple rectangular area.
In the following exercise, you'll try the Clip command to control the display of the raster image:
Select object to clip:
prompt, click the edge of the raster image.Enter image clipping option [ON/OFF/Delete/New boundary]<New>:
prompt, press ↵ to create a new boundary.[Select polyline/Polygonal/Rectangular/Invert clip] <Rectangular>:
prompt, enter P↵ or click Polygonal in the command‐line interface to draw a polygonal boundary.As the prompt in step 3 indicates, you can turn the clipping off or on, or you can delete an existing clipping boundary through the Clip Image option.
After you clip a raster image, you can adjust the clipping boundary by using its grips:
Rasterimport.dwg
file for future reference and exit the file.In addition to hiding portions of a raster image that are unimportant to you, clipping an image file reduces the amount of RAM the raster image uses during your editing session. AutoCAD loads only the visible portion of the image into RAM and ignores the rest. A triangular options grip enables you to flip the display between what is shown inside the border and what is shown outside.
You can make three other adjustments to your raster image: frame visibility, image quality, and image transparency.
By default, a raster image displays an outline, or a frame. In many instances, this frame can detract from your drawing. You can turn off image frames globally by typing Imageframe↵0↵. This sets the Imageframe setting to 0, which turns off the frame visibility. If it's set to 1, the frame is made visible. You can also set it to 2, which leaves the frame visible but doesn't plot it (see Figure 13.7).
Frames can also be controlled through the Frame flyout on the Insert tab's Reference panel. If you turn off a raster image's frame, you can't click the image to select it for editing, although you can still select an image using the All, Previous, or Last selection option (see Chapter 2, “Creating Your First Drawing,” for more on selection options). To make a raster image selectable with your mouse, turn on the image frame using the Display And Plot Frames or the Display But Don't Plot Frames option.
If your drawing doesn't require the highest‐quality image, you can set the image quality to Draft mode. You may use Draft mode when you're tracing an image or when the image is already of a high quality. To set the image quality, enter Imagequality↵ and then enter H for High mode (high quality) or D for Draft mode. In Draft mode, your drawing will regenerate faster.
High mode softens the pixels of the raster image, giving the image a smoother appearance. Draft mode displays the image in a raw, pixelated state. If you look carefully at the regions between the motorcycle and the background in the second image in Figure 13.8, you'll see that the edges of the motorcycle appear a bit jagged. The top image in Figure 13.8 uses the High setting to soften the edges of the motorcycle. You may need to look closely to see the difference.
Finally, you can control the transparency of raster image files that allow transparent pixels. Some file formats, such as GIF (Global Interchange Format), allow you to set a color in the image to be transparent (usually the background color). Most image‐editing programs support this format because it's a popular one used on web pages.
When you turn on the Transparency setting, objects normally obscured by the background of a raster image may show through. Select the raster image and then, in the Image tab's Options panel, select Background Transparency. You can also right‐click and select Image ➢ Transparency and then select On or Off from the Dynamic Input menu. In addition, you can enter Transparency↵ and then select the raster image that you want to make transparent. Press ↵, and then enter On or Off, depending on whether you want the image to be transparent. Unlike the Frame and Quality options, Transparency works on individual objects rather than operating globally.
The Properties palette offers many of the same adjustments described in this section. You can use it for quick access to the Transparency setting and other raster image settings.
If you're using a computer as part of your daily work activity, you will encounter a PDF document. PDFs have become a part of everyday life, so it's no surprise that AutoCAD offers a fair amount of support for PDFs.
In the following sections, you'll learn how to import a PDF document into AutoCAD and how you can control various properties of the document, such as fading and the ability to snap to objects in the PDF.
To import a PDF, you use a method similar to the one you used earlier to import an image file. In fact, you could perform all of the steps in the exercise in the section “Importing a Raster Image” earlier in this chapter using a PDF file instead of the raster1.jpg
file. You just need to know how to set up the Select Reference File dialog box to allow you to locate PDFs.
Try the following to see how to import a PDF:
acad.dwt
file as a template.SampleImport.pdf
file.Specify insertion point:
prompt, place the outline of the drawing so that it is roughly centered in the drawing area and click.Specify scale factor or [Unit] <1.0000>:
prompt, use the cursor to scale the image so that it fills the screen (see Figure 13.10). Page 2 of the SampleImport.pdf
file appears in the drawing.In an earlier exercise, you were able to scale an image file, though you had to use a reference line that was already in the image file to scale the drawing roughly to its proper size in AutoCAD. If you have a PDF that was created from an AutoCAD file or from another vector‐based program, you can use osnaps to select exact locations in the PDF.
Try the following exercise to see how you can use osnaps to select geometry in the PDF. You'll scale the drawing so that the width of the stairs conforms to the known distance for that area.
First make sure the Snap To Underlays feature is turned on:
Now you are ready to scale the PDF drawing:
Specify base point:
prompt, turn on the osnaps and select the left endpoint of the horizontal line near the top of the drawing, as shown in Figure 13.11.
Specify scale factor or [Copy/Reference]:
prompt, type R↵ to use the Reference option.Specify Reference length <1.0000>:
prompt, click the same endpoint again or type @↵.Specify second point:
prompt, click the endpoint of the line shown in Figure 13.12.
Specify new length or [Points] <1.0000>:
prompt, enter 196↵, which is the inch equivalent of 16′‐4″.In this exercise, you were able to use object snaps directly on the imported PDF drawing. You may have noticed that a tool tip appeared with the message “PDF (approximate): Endpoint.” The PDF drawing is not an exact representation of the original drawing, so the tool tip reminds you that even though you are using an osnap to select a location in the drawing, it is not an exact location as it would be in an AutoCAD file.
You can take advantage of a number of other features of a PDF file. Just as with a typical Xref or image file, you can fade the PDF so that it appears as a background image. You can also use the Clip feature that you saw earlier in this chapter to clip the PDF to a specific area.
You can gain access to these and other PDF display features through the PDF Underlay Ribbon tab. This tab appears automatically whenever you select an attached PDF drawing. Click the PDF drawing of the lobby, and you'll see the PDF Underlay tab appear in the Ribbon (see Figure 13.13).
Table 13.2 describes the tools in the PDF Underlay Ribbon tab. The tools are fairly self‐explanatory. For example, the tools in the Adjust panel let you control the fade and contrast of the PDF drawing. The Display In Monochrome option displays a color PDF in monochrome.
TABLE 13.2: The PDF Underlay tab tools
Option | Use |
Contrast | Adjusts the contrast setting for the PDF |
Fade | Adjusts the amount of fade applied to the PDF |
Display In Monochrome | Displays the PDF in monochrome |
Create Clipping Boundary | Adds a clipping boundary to the PDF |
Remove Clipping | Removes a clipping boundary |
Show Underlay | Shows or hides the PDF |
Enable Snap | Enables or disables the PDF snap feature |
External References | Opens the External References palette |
Edit Layers | Opens the Underlay Layers dialog box, allowing you to control layer visibility |
Import As Objects | Converts an attached vector PDF into AutoCAD drawing objects |
One option that you'll want to take a closer look at is the Edit Layers tool in the PDF Layers panel. If the source PDF is a drawing that contains layers, you can control the visibility of those layers using this tool. With an imported PDF selected, click the Edit Layers tool to open the Underlay Layers dialog box (see Figure 13.14).
You can turn the visibility of a layer on or off by clicking the light bulb icon to the left of it in the list. For example, if you turn off the WALL layer in the Underlay Layers dialog box for the SampleImport example, the PDF drawing will change so that the walls will not be shown (see Figure 13.15).
PDFs can contain both raster and vector data. If you have a PDF that is a line drawing or 3D model, there is a good chance that it is stored in a vector format. PDFs containing vector information and text can be imported into AutoCAD as an AutoCAD drawing. For example, a PDF floor plan produced from AutoCAD can be imported back into AutoCAD and then edited as a normal AutoCAD drawing, as the following exercise will show:
PDFimport.dwg
file from the samples
folder. This is just a blank file with the units set to Architectural.Select PDF underlay or [File] <File>:
prompt, press ↵.PDFvector.pdf
file. The Import PDF dialog box appears (see Figure 13.16). Here you have a number of options that give you control over how the file is imported. For this exercise, you'll use the default settings.
This exercise demonstrates a few features of the Import PDF feature. In step 6, you discovered that the room label was imported as lines. For drawings that contain TrueType fonts, you have the option to import text in the original font. This will enable you to edit the text using the AutoCAD text editing tools. In step 4, you saw that the drawings imported to scale. The distance between grid lines C and D measured the same as the dimensioned distance.
The PDFvector.dwg
file was created using the AutoCAD PDF (High Quality Print).pc3 printer option. In addition, it was plotted from model space. Had it been printed from a layout, measurements taken in the drawing would reflect the print size and not a full, 1‐to‐1 scale drawing. For example, measuring the distance between grid lines C and D would have returned a distance in inches as if measured from a scale paper drawing.
Be aware that PDF plots created from model space will lose some accuracy, even though they will import to a 1‐to‐1 scale. In addition, PDF drawings from other vector programs may not import to scale, in which case you can use the Scale option in the Import PDF dialog box to adjust the scale of the imported drawing. Or you can just scale the drawing after it is imported using the methods described earlier in this chapter.
Let's take a look at the options in the Import PDF dialog box shown in Figure 13.16. These options enable you to control how the PDF is imported. You can set whether raster data is imported into the drawing or, if the PDF contains layers, how the layers are translated. You can also control how types of geometry are converted. For example, in the Import Options section, you can set the PDF to be imported as a block or convert solid fills in the PDF to hatches. The options are fairly self‐explanatory, but a few may need a bit more explanation.
If the PDF file that you want to import contains multiple pages, you can select a page using the Page option just above and to the left of the preview image. You can also get a matrix view of the pages by selecting the thumbnail toggle above and to the right of the preview. The Options button in the lower‐left of the dialog box opens the Options dialog box to the File tab, where you can set the location for the storage of any raster images that are imported. (See Appendix B for more on the Files tab of the Options dialog box.)
The PDF file format does not support AutoCAD's SHX fonts such as Simplex and Txt. When you export an AutoCAD file to a PDF, TrueType fonts are maintained as fonts but AutoCAD SHX fonts are converted to drawing geometry such as lines and polylines, so when you import a PDF that was created from an AutoCAD drawing, SHX fonts will be imported as lines and polylines.
Fortunately, AutoCAD offers the Recognize SHX Text tool that can recognize imported SHX fonts and convert them back to AutoCAD text (see Figure 13.17). To use this tool, go to the Import panel in the Insert tab and select Recognize SHX Text. You can also enter PDFSHXTEXT↵. Next, select the geometry you want to convert back to AutoCAD text. Try to avoid including non‐text geometry in your selection. Once you've selected the geometry to convert, press ↵. When AutoCAD is finished with the conversion, you see a dialog box telling you how many text objects were created and how many fonts were used.
AutoCAD also offers the PDF Text Recognition Settings dialog box, which enables you to determine the font that AutoCAD uses for the conversion (see Figure 13.18). This dialog box can be opened by using the Recognition Settings tool in the Insert tab's Import panel (see Figure 13.17) or by selecting the Settings command option in the Recognize SHX Text tool.
The PDF Text Recognition Settings dialog box contains a list that is populated with the most commonly used AutoCAD fonts. You can use the Add button to add other SHX fonts to the list, including custom and third‐party fonts.
Architects and engineers use geolocation and mapping tools to help place their projects on their chosen sites. Usually, a program like Google Earth or another mapping program is used to get an idea of the site conditions. Street views from Google Maps can help designers get a better idea of how their buildings will appear from a street level.
Geolocation tools can help the designer coordinate information between the different disciplines involved in a project. Designers can place their projects over an aerial view of a site and coordinate the orientation and location of key features of their design.
The Geographic Location feature in AutoCAD allows you to place an accurately scaled map or aerial view in your drawing. You can then draw your designs directly on the map or import an existing AutoCAD design. Unlike an imported image, the Geographic Location map will always remain in the background so you don't have to be concerned about an overlapping image. You can also easily switch between a map view and an aerial view as the need arises.
Let's take a look at how the Geographic Location feature works:
Select a point for the location <0.0000,0.0000.0.0000>::
Specify the north direction angle or [First point] <90>:
You may notice that the Geolocation Ribbon tab appears with a set of options (see Figure 13.22). These options allow you to modify your geolocation view. For example, the Map Aerial flyout lets you switch to a map view and back again.
Try it in the following exercise:
As you can see from the previous steps, you can easily switch between an aerial view and a map view. You also have the option to show a combined aerial and map view using the Map Hybrid option or to turn the geolocation background off entirely using the Map Off option.
Besides controlling the geolocation background image, the Geolocation Ribbon tab lets you make other adjustments to your background. Here is a rundown of the tools and features that you'll find in the Location panel:
The Tools panel in the Geolocation tab offers tools that let you mark locations in the geolocation background. You've already seen what the Map Aerial and Map Road options do. The following list describes the other tools in this panel:
The Online Map panel in the Geolocation tab gives you control over the map's appearance. It also lets you capture a portion of the map:
The captured map area is stored with the drawing and is not dependent on an Internet connection. It can also be moved, rotated, or resized in a manner similar to an imported raster image. The captured area will also appear in the Layout viewports.
In the first Geolocation exercise, you may have noticed the Drawing Unit option in the Geographic Location dialog box. By default, this option is set to inches, but you can set it to feet, meters, miles, or some other unit of measure. By accepting the default inches for the Drawing Unit option, any measurements you take on the map will return distances using inches as the drawing unit. If the unit style of your drawing is set to Architectural, distances will be displayed in feet and inches—inches are the base drawing unit. Try the following exercise to see how distances are displayed:
In this exercise, the distance reported by the Measure tool is in feet. Had you not changed drawing unit in steps 1 and 2, the distance reported by the Measure tool would have been 29,043 units, which is the distance in inches.
You can use other methods to find measurements in your map. For example, you could get a rough estimate of the size of an existing building by drawing a closed polyline around the building outline (see Figure 13.24). Select the polyline and hover over a grip to view the dimensions of the outline closest to the grip.
3.131.83.253