Professional Documents
Culture Documents
Student Guide
Concepts
External references (XREFs) are useful in an environment where a team of drafters is
working on a project, with each person constructing individual components of the
project. Each team member can view drawings belonging to others, so that changes
are handled and drawings stay synchronized.
To create an XREF, you attach a referenced drawing to a parent drawing. An attached
XREF appears as a single entity on the current layer in the parent drawing, similar to
an inserted block.
Referencing a drawing is different from inserting a drawing. Inserting a drawing takes
a snapshot of a drawing in its current state. The snapshot is not updated if the inserted
drawing changes.
On the other hand, when you open a drawing that contains an XREF, you see the
most recently saved version of the referenced drawing.
A drawing can contain multiple XREFs (see Figure 2).
A drawing can reference another drawing, which may reference yet other drawings,
which may result in nested XREFs. A nested XREF is one that is attached to a parent
drawing through another drawing (see Figure 2).
A drawing can be both a parent and an XREF (see Figure 2).
Two drawings can reference each other, resulting in a circular reference (see Figure 3).
To follow along with the discussion in this lecture, copy the folder named Xref Files
from the Unit 2 folder in the Shared directory to your own User directory.
97
Student Guide
A drawing can be
both a parent and
an XREF.
A nested XREF is
one that is not
directly attached to
a drawing.
Nesting depends
on a setting called
Reference type.
Drawings C and D
may be nested in
drawing A.
Drawing D may be
nested in drawing B.
Circular
reference
XREF
configurations
can become
complex.
98
Student Guide
Xattach
Xref
Xbind
Xclip
Xclipframe
Inserting an XREF
The XATTACH command provides one way to specify a drawing file to be referenced
into the current drawing as an XREF.
Command line:
XATTACH
Ribbon:
Reference toolbar:
Pulldown:
(see Figure 4)
Insert DWG Reference
99
(see Figure 5)
Student Guide
100
Student Guide
The Squares drawing appears in the Circles drawing (see Figure 8).
Circles is the
parent;
Squares is the
XREF.
Squares.dwg
is attached to
Circles.dwg.
Selecting any
square
selects the
entire XREF.
Reference Type
The reference type determines whether XREFs are nested.
The reference type can be attachment or overlay.
A referenced drawing that is an attachment is visible in the parent of its parent
drawing. It is called a nested XREF (see Figure 9).
A referenced drawing that is an overlay is not visible in the parent of its parent
drawing (see Figure 9).
101
Student Guide
Dependent Objects
A dependent object is a named non-graphical entity that is defined within a referenced
drawing.
Dependent objects are block definitions, dimension styles, layers, linetypes, and text
styles.
An XREFs dependent objects are visible within the parent drawing.
To avoid name conflicts, dependent objects assume a different name in a parent
drawing.
When an XREF is attached, its dependent objects are denoted by the XREF drawing
name followed by a vertical bar (|) and then by the object name. For example, in a
parent drawings layer table, you might see a layer named Foundation Details|Beams.
You cannot access, rename, or delete dependent objects from the parent drawing.
You can, however, bind an entire referenced drawing, including its named dependent
objects, or you can bind individual dependent objects.
XREF Layers
When you attach an XREF to a parent drawing, the parent drawing receives a copy of
the layer table from the XREF drawing.
The special naming for dependent objects separates XREF layers from layers in the
parent drawing (see Figure 10).
Attaching an external reference can introduce unreconciled layers (see Reconciling
Layers below).
Parent layers
XREF layers
Figure 10. XREF layers are kept separate from parent layers
102
Student Guide
When you re-open the parent drawing, should those 100 layers
still be frozen?
Reconciling Layers
AutoCAD 2008 introduced the concept of reconciling layers. An unreconciled layer is a
layer that has been added to the drawing but that you have not manually marked as
reconciled. Reconciling layers forces you to review the layer list so that you can avoid
potential errors before you plot your drawing or when you restore a layer state.
A baseline layer list is created the first time a drawing is saved or plotted. All layers
on the baseline layer list are considered reconciled (not new).
If you create a new layer after the baseline layer list is created, it is unreconciled until
you manually mark it as reconciled.
During an operation such as plotting, publishing, or attaching an external reference,
the current layer list is checked against the baseline layer list. If the two lists do not
match, a warning box appears (see Figure 11).
103
Student Guide
XREF or EXTERNALREFERENCES
Ribbon panel:
Reference Toolbar:
Pulldown:
(see Figure 4)
Insert External References
104
(see Figure 5)
Student Guide
The External
References
palette
XREFs
Status
Reference
type
Details for a
selected
XREF
Right-click on
an XREF to
display a menu
of options.
Open
Attach
Opens the XREF drawing for editing in your current AutoCAD session.
Displays the External Reference dialog box.
105
Student Guide
Maintains the link to the referenced drawing, but removes it from the
display to reduce clutter and regeneration time. Reload the drawing to
make it re-appear.
Re-reads a referenced drawing file.
Breaks the link between the parent drawing and the referenced
drawing. The detached drawing immediately disappears from the
display.
Equivalent to Insert followed by Detach. Only for XREFs that are not
nested. Bind breaks the link between the referenced drawing and the parent
drawing, and converts the referenced drawing to a block in the parent
drawing, on the layer that was current when the drawing was referenced.
You would bind an XREF only when the XREF drawing is completely
finished (and maybe not even then). Displays the Bind Xrefs dialog box (see
Figure 16), where you specify handling for dependent objects.
Unload
Reload
Detach
Bind
Separates named
dependent objects
Combines named
dependent objects
Figure 16. Bind Xrefs dialog box
The Insert option merges dependent objects that have the same
name. It drops the prefix. Dependent objects with the same name
in both drawings assume the characteristics of the parent drawing.
The name assigned to the XREF when it was attached. This is usually the
filename without the extension.
Status
106
Student Guide
Type
Found At
Displays the pathname where a selected XREF was last loaded from.
Saved Path
List view
Nested
XREF
107
Tree view
Student Guide
In List View, the Status column in the External References palette displays the current
status of each XREF in the current drawing. Possible values for the status are shown in
Table 1 below.
Table 1. Xref Status Meanings
Status
Meaning
Loaded
Not Found
Unloaded
Unresolved
Unreferenced
Orphaned
Opened
Needs reloading
Click on the XREF name in the notification window. AutoCAD reloads the XREF.
LOCATING UNRESOLVED XREFs
If AutoCAD cannot locate an XREF drawing when you open the parent drawing, the
XREF does not appear in the parent drawing.
Instead, AutoCAD does two things:
1. It displays a message in the command window (press F2 to see it):
Resolve Xref "desks1": \\edg\files\VIPHome\sgideon\desks1.dwg
"desks1.dwg" cannot be found.
108
Student Guide
Status is
Not Found
External References
Click here
to locate
the XREF.
In the Details panel, click in the box labeled Found At. Click on the button (see Figure
21) to invoke the Select new path dialog box.
When you have located and
opened the XREF, the new
pathname appears in the
External References palette.
The referenced drawing
appears in your display, and
its status is changed to
Loaded (see Figure 22).
Xref is
automatically
loaded.
Location is
updated.
XBIND
The XBIND command converts any named dependent object in an XREF drawing to
a permanent part of the parent drawing.
Essentially, XBIND makes a copy of the named object in the parent drawing.
Command line:
Reference toolbar:
Pulldown:
XBIND
(See Figure 4)
Modify Object External Reference Bind
109
Student Guide
110
Student Guide
then click on
the Add button.
Bound objects
appear here.
Click on Remove
to unbind.
Click OK when
you are finished.
When you close the dialog box, bound objects are renamed as discussed earlier: the
vertical bar (|) is replaced by the $n$ notation, where n is a number from 0-9.
You can also open DesignCenter to import named objects from another drawing.
XCLIP
The XCLIP command lets you visually crop a selected XREF or a block to display only the
portion inside a boundary that you define (see Figure 27). The portion of the XREF or block
outside the boundary does not appear. Clipping saves system resources and improves
performance.
111
Student Guide
After clipping, only the part of the XREF within the boundary is visible (see Figure 28).
Command line:
XCLIP
Ribbon panel:
(see Figure 5)
Reference toolbar:
(see Figure 4)
Pulldown:
When XCLIP prompts you to select an object, select an XREF. You can specify the
following options in the XCLIP command:
New boundary
Displays additional prompts from which you determine the shape
of the clipping boundary: an existing polyline, a polygon, or a
rectangle.
On
Displays only the geometry inside the clipping boundary.
112
DFTG 2419
2
Intermediatee CAD
Off
Delette
Clipd
depth
Gene
erate Polyline
e
Student Guide
Figu
ure 29. A clipped XREF with the frame
f
turned on
113