You can make many changes to inserted CAD drawings without converting them. However, you cannot delete, resize, or modify the objects in a drawing unless you convert them to Visio 2007 shapes. If you have an existing library of CAD symbols that you want to use in Visio 2007 diagrams, you probably want to convert them into reusable master shapes. Because a typical CAD drawing can include hundreds or thousands of objects, it’s best to convert selectively. Visio lets you convert objects in a CAD drawing that you’ve already imported on the basis of their layers or levels, which in many image manipulation and CAD programs are similar to Visio 2007 layers, in the original CAD drawing. You can also convert several CAD drawings and all their layers at once.
Converting a CAD drawing brings to light the very different natures of the DWG/DXF file formats and the Visio 2007 file format. As one Visio product planner put it, “CAD is just a bag of vectors.” When you convert a CAD drawing, each vector is converted to a shape, as Figure 17-11 shows. For example, the four lines that make up a rectangular room in a CAD drawing might become four Visio 2007 shapes—one for each wall. By contrast, a room shape from the Walls, Doors And Windows stencil is just one shape, no matter how many lines it contains. In addition, the speed with which Visio 2007 can redraw the display is based on the number of shapes in a drawing, so more shapes means slower performance.
After you import a display-only CAD drawing, you can quickly convert it to Visio 2007 shapes with the Convert dialog box. In the dialog box, you choose the CAD layer or level that contains the objects you want to convert. The conversion process can take a few minutes, depending on the complexity of the CAD drawing, the number of layers or levels you’re converting, and the speed of your machine. After conversion, the objects in the CAD drawing will appear as an outline. You can then group, edit, or add them to a stencil. In short, you can do anything with them that you can do with any other Visio 2007 shape.
Inside Out: Changes in the CAD convertersVisio products have included CAD converters for several versions. If you’re used to using earlier versions of the converter, you might notice that the streamlined version (introduced with Visio 2000) provides fewer options in the interface. However, many of the options that are no longer in the converter interface itself are still available through the CAD Drawing Properties dialog box and the converter template, as discussed in the section titled “Customizing the CAD Conversion Process” later in this chapter. |
Follow these steps to convert CAD objects to Visio 2007 format:
1. | Import a CAD drawing as described earlier. |
2. | Right-click the CAD drawing, and then select <File Type> Object, Convert to open the Convert dialog box, as Figure 17-12 shows. Figure 17-12. The Convert dialog box offers options when converting an imported CAD drawing to Visio 2007 shapes.
|
3. | Click Unselect All, and then select the layers or levels containing the CAD objects you want to convert. |
4. | When you’ve selected all the layers, you can click OK to convert the layers or, for additional options, click Advanced and go on to Step 2 and Step 3 below. |
Inside Out: Converting selectivelyFor performance reasons, it’s in your best interest to convert only the layers of a CAD drawing that contain objects you really want to edit. Visio 2007 not only displays unconverted (that is, display-only) CAD drawings faster, but also displays them more clearly. |
For this step, click Advanced in the Convert dialog box. The options presented determine how much of the original imported CAD drawing to retain (see Figure 17-13). The language in the dialog box is a little counterintuitive, but these are your options:
Delete Selected DWG Layers Visio 2007 converts the objects on the selected layers to shapes but removes the original layers from the imported CAD drawing. That way, you’ll still see the unconverted layers as a display-only object. (This option isn’t available for DGN files.)
Hide Selected DWG Layers Visio 2007 converts the objects on the selected layers to shapes and retains the original layers, but hides them. That way, the converted shapes won’t duplicate portions of the CAD drawing, but the original display-only drawing remains intact.
Delete All DWG Layers Visio 2007 converts the objects on the selected layers to shapes, but removes the imported, display-only CAD drawing.
You can also choose how to convert dimensions, as Figure 17-13 shows. You have the following options:
Convert Into Visio 2007’s Dimension Shapes Displays dimensions that are automatically updated when you resize the shapes they’re associated with. The converted dimension lines lose the font and line style they had in the CAD drawing.
Convert Into Lines And Text Preserves the CAD formatting of dimension lines, which will appear as static annotations that are not automatically updated.
Finally, you can choose how to convert hatch patterns, also shown in Figure 17-13. Here are your options:
Do Not Convert Hatch Patterns Into Visio Shapes Preserves the CAD formatting of hatch patterns, which you can’t edit in Visio.
Convert Every Hatch Line In The Pattern Into Visio Shapes Converts each vector in a hatch pattern into a separate Visio line shape that you can edit.
You can convert more than one CAD drawing at a time with the Convert CAD Drawings add-in, as Figure 17-14 shows. Although this method is efficient when you have several drawings to convert, you don’t have as much control as you do when you convert drawings individually. Each CAD drawing is converted into a separate Visio 2007 file, and every layer or level in each CAD drawing is converted. To start this add-in, choose Tools, Add-Ons, Visio Extras, Convert CAD Drawings. Select the drawing you want (hold down Shift and click to select multiple drawings), and then click Open. The conversion might take a few minutes. When the process is finished, the converted files are opened in Visio 2007.
Note
Before you start, make sure all of the CAD files you want to convert are located in the same folder. Bulk conversion works only for files in one folder.
Troubleshooting: Converted CAD objects become ungroupedThe Visio CAD converter might not recognize every object or block as you expect it to. That is, you might find that some objects that appear obvious to you have been converted into smaller components, such as separate line segments. To group the components into a single shape, select all of the component’s objects, and then select Shape, Grouping, Group. (Hold down Shift and click to select multiple shapes.) |
Hidden away in the Solutions folder, Visio 2007 provides two templates specifically for the purpose of converting CAD files. You can control the way CAD drawings are converted into Visio 2007 drawings by editing the converter template that Visio 2007 uses when it performs the conversion. The converter template is a Visio 2007 file that contains default settings for converted CAD drawings. You can edit the converter template to control the following:
Line and font conversion CAD line styles and fonts are converted to Visio 2007 line styles and fonts that have the same name. So, to preserve your font styles, you could create a Visio 2007 text style that uses the blueprint font you use in your CAD drawings.
Drawing scale conversion The default drawing scale in the template also determines the drawing scale Visio 2007 uses for CAD drawings when you use File, Open.
Measurement unit conversion Visio 2007 interprets one CAD drawing unit as one Visio 2007 measurement unit. By default, the measurement unit is set to either inches or millimeters. The measurement units you use determine how big the converted CAD drawing is. The measurement unit also applies to CAD drawings you open by choosing File, Open.
Symbol-to-shape conversion If symbols you use in your CAD drawings have already been converted and added to a stencil, the converter can create instances of these masters instead of converting each block. This can save you considerable time during the conversion process. These stencils are available to the converter even when you don’t have the template open.
To edit the CAD converter template, follow these steps:
1. | In Visio, choose File, Open to display the Open dialog box. |
2. | In the Files Of Type box, select Template (*.vst, *.vtx). |
3. | Locate and select the template for DWG or DWX files, at Program FilesMicrosoft OfficeOffice121033DWGCNV_U.VTX (for U.S. units) or Program FilesMicrosoft OfficeOffice121033DWGCNV_M.VTX (for metric units). Click the drop-down arrow on the Open button, and then select Open As Copy. |
4. | In the opened conversion template, you can make changes as follows:
|
5. | To save your changes, press Ctrl+S or choose File, Save, and then close the template. |
Inside Out: Using template filesWhy are the converters part of an obscure template tucked away in an obscure folder? The purpose of the templates is simply to load the add-in program that does the conversion. In the same way, the Organization Chart template loads the add-in that converts data from Microsoft Exchange files into organization charts. A lot of task-specific behavior in Visio 2007 is stored in template files, which is why you’re usually better off starting from a template when you’re creating a specific type of diagram in Visio 2007 rather than starting from a blank diagram. |
If you use symbol libraries in your DWG or DGN drawings, you can convert them into Visio 2007 stencils for use in your Visio 2007 drawings. You can also add the converted stencils to the converter template, so that the converter can create instances of the stencil shapes in drawings you convert, rather than having to convert each block in the drawing separately. A symbol library comprises DWG or DGN files that contain blocks or cells—collections of objects grouped together to form one object, such as a piece of furniture. When you convert a symbol library, Visio 2007 converts each block or cell into a Visio master, and it places all the masters on the same stencil. Each master is named for the block or cell from which it originated.
When you convert blocks or cells that include multiple visible attributes, Visio 2007 creates shapes with multiple text fields to display the text as well as attribute values. For example, when an AutoCAD block is converted to create a Visio 2007 master shape, all text in block attributes is converted to the shape data of the master shape. When you drag a block master shape onto the page, Visio 2007 displays the value of the shape data as text shapes.
Follow these steps to convert a symbol library into a Visio 2007 stencil:
1. | Choose Tools, Add-Ons, Visio Extras, Convert CAD Library. |
2. | In the Convert CAD Library dialog box, select the file or files you want to convert. |
3. | Click Open. Each block or cell in the original file is converted to a master, and all the masters are placed on the document stencil. |
4. | To save the stencil, select File, Save. In the Files Of Type box, select Stencil (*.vss). Specify a file name and location, and then click Save. |
5. | Close the Visio stencil file. When you want to use the converted block or cell master shapes, open the stencil you created. |
When you convert CAD objects to Visio 2007 shapes, a stacking order is applied to them. This means that shapes can appear to be on top of other shapes. If the top shape is transparent, the bottom shape shows through. To adjust which shape appears where in Visio, you can change the shapes’ stacking order using the commands on the Shape, Order menu (choose Bring To Front, Send To Back, Bring Forward, or Send Backward).
For details about stacking order, see the section titled “Using Stacking Order” in Chapter 2.
Troubleshooting: Converted CAD objects are no longer solidIf a converted CAD object appears transparent in Visio 2007 and you want it to look solid, try selecting the object, and then applying a fill color, such as white. If that doesn’t work, you can edit the object’s ShapeSheet so that the shape can be filled, but it’s a weird process. |