Xrefs for Building Drafting

Version 15.10

by Mark Middlebrook


External references, or "xrefs", constitute one of the keys to efficient drafting, especially of building plans. Xrefs help you minimize duplication of geometry, thereby making editing more efficient and helping to keep drawings in synch. Xrefs also can help keep file sizes down when you use the same large components (e.g., elaborate title blocks) in multiple drawings.

This paper describes xref concepts, commands, applications, and tips.

I originally wrote this paper for AutoCAD R12’s implementation of xrefs, and have updated it to include some information about the xref enhancements in R13, R14, and 2000.

AutoCAD R13 added:

AutoCAD R14 added:

AutoCAD 2000 added:

These changes are described at the end of this paper.

Concepts

An xref is superficially similar to a block that you create by inserting another DWG file into the current drawing. The most important difference is that AutoCAD maintains a live link to the externally referenced drawing.

The term for creating a live link to an external drawing is attaching an xref. (AutoCAD R13 added overlaying as an alternative to attaching an xref. I’ll describe the at the end of this document.)

When we talk about xrefs, it’s convenient to refer to the drawing that references another drawing as the "parent" drawing and the drawing being referenced as the "child" drawing. In other words, the drawing in which you attach is the parent, and the drawing that gets attached is the child.

AutoCAD keeps track of several kinds of organizational objects in addition to the ordinary geometrical entities that you draw. The objects that are important for our present purposes are layers, blocks, text styles, dimension styles, and linetypes. AutoCAD refers to these as "named objects" (or, in certain contexts, "dependent symbols"). As you’ll see, AutoCAD handles named objects symbols differently when you attach an xref versus when you insert a block.

Because AutoCAD maintains a live link to xrefs, it needs to find them on the disk. As a result, you can encounter problems if you don’t organize your DWG files properly.

Occasionally it turns out to be useful to incorporate an xref permanently in the parent drawing, thus cutting the live link to the external DWG file. AutoCAD calls this procedure "binding" the xref.

These are the major differences between xrefs and blocks:

 

Blocks

Xrefs

Child’s geometry:

Copied into parent DWG and stored there.

Not copied into parent DWG; loaded temporarily each time you load parent DWG.

Updating parent when child changes:

Must redefine block (with INSERT blkname= or BLOCK).

Happens automatically.

Named objects:

Parent definitions override child definitions.

Parent and child definitions are maintained separately.

Named object names:

Normal.

Prefixed with xrefname|.

Attribute definitions:

Supported.

Ignored.

Commands

The primary command for manipulating xrefs is XREF. You can launch it in any of the following ways:

External Reference dialog box:
Type: XREF or XR
Pull-down menu: Insert, Xref Manager
Draw toolbar: External Reference (in the Insert Block fly-out toolbar)

Command line version:
Type –XREF

The External Reference dialog box includes these options:

Xref dialog box option

Purpose

Notes

Attach

Create an external reference attachment or overlay.

Analogous to INSERT for blocks.

You can go directly to this option with the XATTACH command (XA or Insert, External Reference)

Detach

Delete all instances of a previously attached xref.

Analogous to ERASE and then PURGE for blocks.

Reload

Refresh xref definitions from external DWG files.

Useful on networks when someone else is editing your children as you work on the parent.

Unload

Remove an xref from the screen (and from memory), but leave the attachment for later Reloading.

 

Bind

Convert an xref into a block.

Useful for archiving or sending a drawing to a recipient who’s not xref-savvy.

Options to bind as block or as xref.

Xref Found At

Display (and optionally change) the path where AutoCAD looks for an xref.

Useful for re-specifying or removing xref paths.

List View / Tree View

Change between showing a list of xrefs with all details and showing a hierarchical tree ox ref names.

Use Tree View to inspect the hierarchical relationship of a complicated set of xrefs.

The –XREF command line version includes a similar set of options.

-XREF command line options

Purpose

Notes

?

List currently attached xrefs.

 

Bind

Convert an xref into a block.

Doesn’t include the "bind as block" option, so you’ll always end up with lots of weird named object names.

Detach

Delete all instances of a previously attached xref.

 

Path

Change the path where AutoCAD looks for an xref (or strip the path entirely).

Useful for stripping hard-coded xref paths.

Unload

Remove an xref from the screen (and from memory), but leave the attachment for later Reloading.

 

Reload

Refresh xref definitions from external DWG files.

 

Overlay

Create an external reference overlay.

 

Attach

Create an external reference attachment.

 

AutoCAD includes these additional xref-related commands:

Command

Purpose

Notes

REFEDIT

Edit an xref (or block insert) in place.

New in AutoCAD 2000.

VISRETAIN

(a system variable, actually)

Control whether parent’s or child’s settings of child’s layers govern at load time.

0 = child’s layer settings control.
1 = parent’s layer settings control.

XATTACH (XA)

Create an external reference attachment.

Same as clicking Attach in the Xref Manager dialog box.

XBIND (XB)

Permanently add a named object from an xref to the current drawing.

Seldom used.

XCLIP (XC)

Clip an xref using a rectangle or polygon.

Handy for building plans that require multiple sheets and match lines.

When to use xrefs

There are many applications for xrefs, including:

On the other hand, blocks remain useful in simpler circumstances. Remember that every xref requires keeping track of a separate file. Some situations in which you might stick with a block are:

Also, it’s important that everyone in the office be reasonably consistent about when to use and when not to use xrefs.

Xref guidelines

Following are some guidelines for working with xrefs.

Tips and tricks

Following are some tips that will make working with xrefs easier and more efficient.

Command line tips and tricks

If you choose to use the old command line version of the XREF command (type –XREF in AutoCAD 2000 or R14), here are some additional tips.

Xref features added in AutoCAD R13, R14, and 2000

The following xref features were new in AutoCAD R13, R14 or 2000.

Return to the markcad.com series of AutoCAD tutorials on xrefs.


Last updated 14-Sep-2000 by
mark@markcad.com