Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
autocad_2013_for_dummies.pdf
Скачиваний:
24
Добавлен:
19.02.2016
Размер:
24.71 Mб
Скачать

Chapter 18: Everything from Arrays to Xrefs 399

separately. Simply select it and then edit it like the object that it is. When you’re finished, the path array updates to match the revised path.

And no matter how much tinkering you do, you can always revert to the original state by clicking Reset Array on the Options panel of the Array tab.

Going External

In AutoCAD, an xref (external reference) is a reference to another external drawing file — one outside the current drawing — that acts as though it’s part of your drawing. Technically, a reference is simply a pointer from one file to another. The xref is the actual pointer, but many people call the combination of the pointer and the external file the “xref.”

In both AutoCAD and AutoCAD LT, external drawing files are just one of several file types you can attach to your current drawing via the Select Reference File dialog box. You use this dialog box to attach externally referenced AutoCAD drawings (xrefs), raster image files, DWF and DWFx files, PDF files, and MicroStation DGN drawing files, among others.

Use the Attach button of the Insert tab Reference panel to open the Select Reference File dialog box. When you attach an external drawing to your current drawing, you become the host of the external file. No need to break out the cocktails and canapés, though, because it’s actually your current drawing that’s doing the hosting — and in AutoCAD, it’s called (what else?) the host drawing. You can think of the attached xrefs as guests, but most of the time they’re pretty well-behaved ones — and like the best of guests, they go away as soon as you want them to.

Xrefs have a big advantage over blocks: If a drawing is inserted as a block into another drawing, its geometry doesn’t change if the original drawing is changed in any way — it always looks the way it looks when it’s inserted. If that drawing is attached as an xref, however, AutoCAD will automatically update every host drawing to which it’s attached when the host drawing is

reopened. You can also manually reload the changed xref if you don’t want to close and reopen the host drawing.

When you open a drawing that contains xrefs, AutoCAD displays a little symbol (looks like papers with a binder clip) on the right end of the status bar. This symbol alerts you that some of the things you see in the drawing are actually parts of other, xref-ed drawings. If an xref changes while you have the host drawing open (because you or someone else opens and saves the referenced drawing), the status bar xref symbol displays an External Reference Files Have Changed balloon notification. Simply click the

www.it-ebooks.info

400 Part IV: Advancing with AutoCAD

Reload link in the balloon notification to show the updated xrefs. (If you want to change how AutoCAD checks for changes, look up XREFNOTIFY in the online help.)

Another advantage that xrefs have over blocks is that their contents aren’t stored in your drawing even once. The disk storage space taken up by the original drawing (the xref) isn’t duplicated, no matter how many host drawings reference it. This characteristic makes xrefs much more efficient than blocks for larger drawings that are reused several times.

Sure, you can always buy a larger hard drive, so the storage issue isn’t crucial. The key benefit of xrefs is that they enable you to organize your drawings so the changes you make to a single drawing file automatically ripple through all the host drawings into which it’s xref-ed. This benefit is even greater on larger projects involving multiple drafters, each of whose work may be incorporated in part or in whole in the work of others.

You can use xrefs to your advantage in almost any type of drawing. For example, several drafters might be working on the components for a large machine, while one master drawing brings them all together in the final assembly. Similarly, a set of separate architectural drawings could show electrical, plumbing, HVAV, and so on with everyone referencing the same floor plan. The host file would contain nothing but a title block and xrefs to the other files.

However, the automatic update feature of xrefs is a big advantage only if you’re organized about how you use xrefs. Suppose that an architect creates a plan drawing showing a building’s walls and other major features that are common to the architectural, structural, plumbing, and electrical plan drawings. The architect then tells the structural, plumbing, and electrical drafters to xref this background plan into their drawings so that everyone is working from a consistent and reusable set of common plan elements. If the architect decides to revise the wall locations and updates the xref-ed drawing, everyone will see the current wall configuration and be able to change their drawings. But if the architect absent-mindedly adds architecture-specific objects (toilets and furniture, for example) to the xref-ed drawing, or shifts all the objects with respect to 0,0, everyone else will have problems. If different people in your office share xrefs, create a protocol for who is allowed to modify which file when, and what communication needs to take place after a shared xref is modified.

Becoming attached to your xrefs

Attaching an external reference drawing is similar to inserting a block, and almost as easy. Just use the following steps:

www.it-ebooks.info

Chapter 18: Everything from Arrays to Xrefs 401

1. Set an appropriate layer current, as described in Chapter 6.

Insert xrefs on a separate layer from all other objects.

Note that if you freeze the layer on which an xref is inserted, the entire xref disappears. (This behavior can be a handy trick, a nasty surprise, or a fun trick.)

2.If the External References palette isn’t already open, click its icon (it looks like a sheaf of papers with a bulldog clip and a silhouetted user) on the Palettes panel of the View tab to open it.

Use the toolbar at the top of the palette to attach an external DWG file, a DWF underlay, a PDF underlay, a MicroStation DGN drawing file, a raster image file, or a point cloud. We cover attaching images and DWFs or PDFs later in this chapter. If you need to attach DGN files, visit the online help.

3.Click Attach DWG. Click the down arrow if the tooltip offers to attach something else — see Figure 18-4.

The Select Reference File dialog box appears.

4.Browse to find the file you want to attach, select it, and then click Open.

The Attach External Reference dialog box appears.

5.Specify the parameters for the xref in the dialog box.

Parameters include the insertion point, scaling factors, location based on geographic data, and rotation angle. (We describe geographic location briefly in Chapter 17.) You can set these parameters in the dialog box or specify them onscreen, just like you can do when inserting a block, as described in Chapter 17.

The Path Type drop-down list provides more flexibility in how the xref path is stored. See the “Forging an xref path” section, later in this chapter, for more information.

We recommend that you choose Relative Path instead of Full Path.

6.Click OK.

The externally referenced file appears in your drawing.

In drawings that contain many xrefs, locating the one you want can be difficult. When you select an object that’s part of an xref in the drawing area, the xref name is highlighted in the External References palette. Likewise, selecting an xref in the External References palette highlights the attached file geometry in the drawing editor.

www.it-ebooks.info

402 Part IV: Advancing with AutoCAD

 

 

List View

Attach DWG

 

Tree View

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Figure 18-4: Use the External References palette to attach an xref.

You can select either the Attachment or Overlay radio button to tell AutoCAD how to handle the xref. The choice matters only if you create a drawing that uses xrefs, and then your drawing is, in turn, used as an xref. Attachment is the default choice, and it dictates that the xref-ed file will always be included with your drawing when someone else uses your drawing as an xref. Overlay, the other choice, means that you see the xref-ed drawing, but someone who xrefs your drawing won’t see the overlaid file. By choosing Overlay, you can xref a map, for example, to your drawing of a house, but the map won’t show up when someone else xrefs your house drawing. (That person can xref the map, if needed.) We recommend that you use the default Attachment reference type unless you have a specific reason not to.

www.it-ebooks.info

Соседние файлы в предмете [НЕСОРТИРОВАННОЕ]