Beruflich Dokumente
Kultur Dokumente
PD rm PD rm
Y Y
Y
Y
er
er
ABB
ABB
y
y
bu
bu
2.0
2.0
to
to
re
re
he
he
k
k
lic
lic
C
C
w om w om
w
w
w. w.
A B B Y Y.c A B B Y Y.c
AutoCAD Self-paced Learning Modules
®
AutoCAD 2D
Module 33
Reference Files
Learning Outcomes:
When you have completed this module, you will be able to:
Reference Files
An external reference file is a drawing file linked to the current drawing. It acts as one object
similar to a block and appears to be part of the active drawing. Usually called a reference file
or a xref, it is quite different from a block. A reference file updates itself whenever the drawing
it is linked to is opened. It can also be updated manually by the CAD operator. If the drawing
that is attached as an xref is changed, the changes will appear when the drawing it is attached
to is opened or reloaded. Since it is only linked to the drawing, it does not add a significant
amount to the drawings database.
The XREF command is used to manage the reference file(s) that are linked to the current
drawing. You can attach more than one reference file at the same time. All objects in the
reference file must be in model space. Reference files can be scaled or rotated when they are
attached with the XREF command or after they are attached with the SCALE and/or ROTATE
commands. You can snap to the object snap modes of objects in the reference files. A
reference file can be edited in the current drawing with the changes going back to the original
drawing file. This is done with the REFEDIT command. AutoCAD LT does not have the
REFEDIT command.
Xref Dependant Named Objects
Xref dependent named objects are the layers, linetypes, dimension styles, blocks and text
styles of the reference file. They are added to the drawing they are attached to as non-
graphical object information. The names are changed so that no two names are the same.
Table 33-1 shows how the non-graphical names are dealt with by AutoCAD.
This table demonstrates how AutoCAD names the xref dependent named objects for layers,
linetypes, dimension styles, blocks, and text styles. In this table, the name of the attached xref
file drawing is House Plan and a layer in that drawing is First Floor and a block named Coffee
Table. For a reference file, the name of the non-graphical object is changed to the name
drawing name|object. If it is bound to the drawing, it is renamed name$n$objectname. The n
starts with zero and increases by one if the same name is encountered.
Binding a Reference File
A reference file can be bound to the drawing it is attached to with the XREF command. When
a reference drawing is bound to the drawing, the XREF command converts it into a block. The
xref dependent named objects are renamed according to Table 33-1. You can explode the
block to convert the objects into single objects and they become part of the drawing.
Reference Files The CAD Guys Ltd. Copyright © 1993 - 2007 Module 33
F T ra n sf o F T ra n sf o
PD rm PD rm
Y Y
Y
Y
er
er
ABB
ABB
y
y
bu
bu
2.0
2.0
to
to
re
re
he
he
k
k
lic
lic
C
C
w om 33 - 2 AutoCAD Self-paced Learning Modules - AutoCAD 2D - Revised 2007-04-14 w om
w
w
w. w.
A B B Y Y.c A B B Y Y.c
When you bind a reference file, you have the option of either binding it or inserting it. Inserting
a reference file converts it into a block but it strips the named non-graphical objects back to
their original names. See Table 33-1.
Name of the layer House Plan|First Floor House Plan$0$First Floor First Floor
2004-2008
2000-2002
2004-2008
2000-2002
Reference Files The CAD Guys Ltd. Copyright © 1993 - 2007 Module 33
F T ra n sf o F T ra n sf o
PD rm PD rm
Y Y
Y
Y
er
er
ABB
ABB
y
y
bu
bu
2.0
2.0
to
to
re
re
he
he
k
k
lic
lic
C
C
w om AutoCAD Self-paced Learning Modules - AutoCAD 2D - Revised 2007-04-14 33 - 3 w om
w
w
w. w.
A B B Y Y.c A B B Y Y.c
Figure Step 7
Step 8 Enter the XREF command. It
will open the External References window as shown in Figure Step 8.
Figure Step 8
...continued on page 33-4
Reference Files The CAD Guys Ltd. Copyright © 1993 - 2007 Module 33
F T ra n sf o F T ra n sf o
PD rm PD rm
Y Y
Y
Y
er
er
ABB
ABB
y
y
bu
bu
2.0
2.0
to
to
re
re
he
he
k
k
lic
lic
C
C
w om 33 - 4 AutoCAD Self-paced Learning Modules - AutoCAD 2D - Revised 2007-04-14 w om
w
w
w. w.
A B B Y Y.c A B B Y Y.c
Figure Step 9A
Figure Step 9B
Reference Files The CAD Guys Ltd. Copyright © 1993 - 2007 Module 33
F T ra n sf o F T ra n sf o
PD rm PD rm
Y Y
Y
Y
er
er
ABB
ABB
y
y
bu
bu
2.0
2.0
to
to
re
re
he
he
k
k
lic
lic
C
C
w om AutoCAD Self-paced Learning Modules - AutoCAD 2D - Revised 2007-04-14 33 - 5 w om
w
w
w. w.
A B B Y Y.c A B B Y Y.c
Reference Files The CAD Guys Ltd. Copyright © 1993 - 2007 Module 33
F T ra n sf o F T ra n sf o
PD rm PD rm
Y Y
Y
Y
er
er
ABB
ABB
y
y
bu
bu
2.0
2.0
to
to
re
re
he
he
k
k
lic
lic
C
C
w om 33 - 6 AutoCAD Self-paced Learning Modules - AutoCAD 2D - Revised 2007-04-14 w om
w
w
w. w.
A B B Y Y.c A B B Y Y.c
Author's Comments:
The reason 0.03937 was
used as a scale factor in
this drawing is that it was
drawn in millimeters. Since
there are 25.4 millimeters in
an inch, 1 divided by 25.4
equals 0.03937.
Figure Step 13
Figure Step 14
...continued on page 33-7
Reference Files The CAD Guys Ltd. Copyright © 1993 - 2007 Module 33
F T ra n sf o F T ra n sf o
PD rm PD rm
Y Y
Y
Y
er
er
ABB
ABB
y
y
bu
bu
2.0
2.0
to
to
re
re
he
he
k
k
lic
lic
C
C
w om AutoCAD Self-paced Learning Modules - AutoCAD 2D - Revised 2007-04-14 33 - 7 w om
w
w
w. w.
A B B Y Y.c A B B Y Y.c
Author's
Comments:
The layers list in Figure Step 15A
your drawing may
not match exactly as shown. It
depends on the layers you created
in the original drawing. Do your
best to freeze the layers so your
drawing matches Figure Step 15B.
Figure Step 16
Reference Files The CAD Guys Ltd. Copyright © 1993 - 2007 Module 33
F T ra n sf o F T ra n sf o
PD rm PD rm
Y Y
Y
Y
er
er
ABB
ABB
y
y
bu
bu
2.0
2.0
to
to
re
re
he
he
k
k
lic
lic
C
C
w om 33 - 8 AutoCAD Self-paced Learning Modules - AutoCAD 2D - Revised 2007-04-14 w om
w
w
w. w.
A B B Y Y.c A B B Y Y.c
Author's
Comments:
The layers list in
your drawing may
not match exactly
as shown. It Figure Step 18A
depends on the
layers you created in the original drawing. Do your best
to freeze the layers so your drawing matches Figure
Step 18B.
Figure Step 19
Reference Files The CAD Guys Ltd. Copyright © 1993 - 2007 Module 33
F T ra n sf o F T ra n sf o
PD rm PD rm
Y Y
Y
Y
er
er
ABB
ABB
y
y
bu
bu
2.0
2.0
to
to
re
re
he
he
k
k
lic
lic
C
C
w om AutoCAD Self-paced Learning Modules - AutoCAD 2D - Revised 2007-04-14 33 - 9 w om
w
w
w. w.
A B B Y Y.c A B B Y Y.c
Step 21 Right-click the drawing again and click the Reload button as shown in Figure
Step 21A. The drawing will reload itself as shown in Figure Step 21B.
Reference Files The CAD Guys Ltd. Copyright © 1993 - 2007 Module 33
F T ra n sf o F T ra n sf o
PD rm PD rm
Y Y
Y
Y
er
er
ABB
ABB
y
y
bu
bu
2.0
2.0
to
to
re
re
he
he
k
k
lic
lic
C
C
w om 33 - 10 AutoCAD Self-paced Learning Modules - AutoCAD 2D - Revised 2007-04-14 w om
w
w
w. w.
A B B Y Y.c A B B Y Y.c
Author's Comments:
When a reference drawing is
unloaded, it still remains as an
attached file but will not display on
the current drawing. When a Figure Step 22A
reference drawing is detached, it is
totally removed from the current drawing.
Figure Step 24
...continued on page 33-11
Reference Files The CAD Guys Ltd. Copyright © 1993 - 2007 Module 33
F T ra n sf o F T ra n sf o
PD rm PD rm
Y Y
Y
Y
er
er
ABB
ABB
y
y
bu
bu
2.0
2.0
to
to
re
re
he
he
k
k
lic
lic
C
C
w om AutoCAD Self-paced Learning Modules - AutoCAD 2D - Revised 2007-04-14 33 - 11 w om
w
w
w. w.
A B B Y Y.c A B B Y Y.c
Step 25A If you are using AutoCAD LT, open the drawing
AutoCAD 2D Workalong 33-1A.dwg in its own AutoCAD window
using the OPEN command. Make the changes to the drawing as
shown in Step 25 and save and close the drawing. In the Figure Step 26
External References window, reload it.
Step 26 Your
drawing should now
appear as Figure Step
26.
Step 27 Enter the
XREF command. In
the External
Reference window,
right click the drawing
AutoCAD 2D
Workalong 33-1B. In
the right-click menu,
select bind. See Figure Step 27
Figure Step 27A. In
the Binds Xref dialogue box, select Bind
and then click OK. See Figure Step 27B.
Reference Files The CAD Guys Ltd. Copyright © 1993 - 2007 Module 33
F T ra n sf o F T ra n sf o
PD rm PD rm
Y Y
Y
Y
er
er
ABB
ABB
y
y
bu
bu
2.0
2.0
to
to
re
re
he
he
k
k
lic
lic
C
C
w om 33 - 12 AutoCAD Self-paced Learning Modules - AutoCAD 2D - Revised 2007-04-14 w om
w
w
w. w.
A B B Y Y.c A B B Y Y.c
Figure Step 28
Figure Step 29
Reference Files The CAD Guys Ltd. Copyright © 1993 - 2007 Module 33
F T ra n sf o F T ra n sf o
PD rm PD rm
Y Y
Y
Y
er
er
ABB
ABB
y
y
bu
bu
2.0
2.0
to
to
re
re
he
he
k
k
lic
lic
C
C
w om AutoCAD Self-paced Learning Modules - AutoCAD 2D - Revised 2007-04-14 33 - 13 w om
w
w
w. w.
A B B Y Y.c A B B Y Y.c
Figure Step 8
...continued on page 33-14
Reference Files The CAD Guys Ltd. Copyright © 1993 - 2007 Module 33
F T ra n sf o F T ra n sf o
PD rm PD rm
Y Y
Y
Y
er
er
ABB
ABB
y
y
bu
bu
2.0
2.0
to
to
re
re
he
he
k
k
lic
lic
C
C
w om 33 - 14 AutoCAD Self-paced Learning Modules - AutoCAD 2D - Revised 2007-04-14 w om
w
w
w. w.
A B B Y Y.c A B B Y Y.c
Figure Step 9B
Reference Files The CAD Guys Ltd. Copyright © 1993 - 2007 Module 33
F T ra n sf o F T ra n sf o
PD rm PD rm
Y Y
Y
Y
er
er
ABB
ABB
y
y
bu
bu
2.0
2.0
to
to
re
re
he
he
k
k
lic
lic
C
C
w om AutoCAD Self-paced Learning Modules - AutoCAD 2D - Revised 2007-04-14 33 - 15 w om
w
w
w. w.
A B B Y Y.c A B B Y Y.c
Reference Files The CAD Guys Ltd. Copyright © 1993 - 2007 Module 33
F T ra n sf o F T ra n sf o
PD rm PD rm
Y Y
Y
Y
er
er
ABB
ABB
y
y
bu
bu
2.0
2.0
to
to
re
re
he
he
k
k
lic
lic
C
C
w om 33 - 16 AutoCAD Self-paced Learning Modules - AutoCAD 2D - Revised 2007-04-14 w om
w
w
w. w.
A B B Y Y.c A B B Y Y.c
Author's Comments:
The reason 0.03937 was
used as a scale factor in
this drawing is that it was
drawn in millimeters. Since
there are 25.4 millimeters in
an inch, 1 divided by 25.4
equals 0.03937.
Figure Step 13
Figure Step 14
...continued on page 33-17
Reference Files The CAD Guys Ltd. Copyright © 1993 - 2007 Module 33
F T ra n sf o F T ra n sf o
PD rm PD rm
Y Y
Y
Y
er
er
ABB
ABB
y
y
bu
bu
2.0
2.0
to
to
re
re
he
he
k
k
lic
lic
C
C
w om AutoCAD Self-paced Learning Modules - AutoCAD 2D - Revised 2007-04-14 33 - 17 w om
w
w
w. w.
A B B Y Y.c A B B Y Y.c
Author's
Comments:
The layers list in Figure Step 15A
your drawing may
not match exactly as shown. It
depends on the layers you created
in the original drawing. Do your
best to freeze the layers so your
drawing matches Figure Step 15B.
Figure Step 16
Reference Files The CAD Guys Ltd. Copyright © 1993 - 2007 Module 33
F T ra n sf o F T ra n sf o
PD rm PD rm
Y Y
Y
Y
er
er
ABB
ABB
y
y
bu
bu
2.0
2.0
to
to
re
re
he
he
k
k
lic
lic
C
C
w om 33 - 18 AutoCAD Self-paced Learning Modules - AutoCAD 2D - Revised 2007-04-14 w om
w
w
w. w.
A B B Y Y.c A B B Y Y.c
Author's
Comments:
The layers list in
your drawing may
not match exactly
as shown. It Figure Step 18A
depends on the
layers you created in the original drawing. Do your best
to freeze the layers so your drawing match Figure Step
18B.
Figure Step 19
...continued on page 33-19
Reference Files The CAD Guys Ltd. Copyright © 1993 - 2007 Module 33
F T ra n sf o F T ra n sf o
PD rm PD rm
Y Y
Y
Y
er
er
ABB
ABB
y
y
bu
bu
2.0
2.0
to
to
re
re
he
he
k
k
lic
lic
C
C
w om AutoCAD Self-paced Learning Modules - AutoCAD 2D - Revised 2007-04-14 33 - 19 w om
w
w
w. w.
A B B Y Y.c A B B Y Y.c
Reference Files The CAD Guys Ltd. Copyright © 1993 - 2007 Module 33
F T ra n sf o F T ra n sf o
PD rm PD rm
Y Y
Y
Y
er
er
ABB
ABB
y
y
bu
bu
2.0
2.0
to
to
re
re
he
he
k
k
lic
lic
C
C
w om 33 - 20 AutoCAD Self-paced Learning Modules - AutoCAD 2D - Revised 2007-04-14 w om
w
w
w. w.
A B B Y Y.c A B B Y Y.c
Author's Comments:
When a reference file is unloaded, it still remains as a
attached file but will not display on the current drawing.
When a reference file is detached, it is totally removed
from the current drawing.
Figure Step 23
Note:
AutoCAD LT does not have a
REFEDIT command. If you are
using AutoCAD LT skip to Step
25A.
Reference Files The CAD Guys Ltd. Copyright © 1993 - 2007 Module 33
F T ra n sf o F T ra n sf o
PD rm PD rm
Y Y
Y
Y
er
er
ABB
ABB
y
y
bu
bu
2.0
2.0
to
to
re
re
he
he
k
k
lic
lic
C
C
w om AutoCAD Self-paced Learning Modules - AutoCAD 2D - Revised 2007-04-14 33 - 21 w om
w
w
w. w.
A B B Y Y.c A B B Y Y.c
Step 25A If you are using AutoCAD LT, open the drawing
AutoCAD 2D Workalong 33-1A.dwg in its own AutoCAD window
using the OPEN command. Make the changes to the drawing as Figure Step 26
shown in Step 25 and save and close the drawing. Enter the
XREF command and reload it..
Step 26 Your drawing should now appear as Figure Step 26.
Reference Files The CAD Guys Ltd. Copyright © 1993 - 2007 Module 33
F T ra n sf o F T ra n sf o
PD rm PD rm
Y Y
Y
Y
er
er
ABB
ABB
y
y
bu
bu
2.0
2.0
to
to
re
re
he
he
k
k
lic
lic
C
C
w om 33 - 22 AutoCAD Self-paced Learning Modules - AutoCAD 2D - Revised 2007-04-14 w om
w
w
w. w.
A B B Y Y.c A B B Y Y.c
Figure Step 28
Figure Step 29
Figure Step 30
Step 30 Enter the XREF command and take note that there is
only one drawing left attached as a reference file. See Figure
Step 30A. Your drawing should appear as shown in Figure Step
30B.
Reference Files The CAD Guys Ltd. Copyright © 1993 - 2007 Module 33
F T ra n sf o F T ra n sf o
PD rm PD rm
Y Y
Y
Y
er
er
ABB
ABB
y
y
bu
bu
2.0
2.0
to
to
re
re
he
he
k
k
lic
lic
C
C
w om AutoCAD Self-paced Learning Modules - AutoCAD 2D - Revised 2007-04-14 33 - 23 w om
w
w
w. w.
A B B Y Y.c A B B Y Y.c
To completely remove a reference file from the current drawing, you must
detach it using the XREF command. Erasing a reference file does not
remove it completely from the drawing. All the named objects definitions
associated with an erased xref remain. Using the Detach option removes
the selected xref and all associated information.
Reference Files The CAD Guys Ltd. Copyright © 1993 - 2007 Module 33
F T ra n sf o F T ra n sf o
PD rm PD rm
Y Y
Y
Y
er
er
ABB
ABB
y
y
bu
bu
2.0
2.0
to
to
re
re
he
he
k
k
lic
lic
C
C
w om 33 - 24 AutoCAD Self-paced Learning Modules - AutoCAD 2D - Revised 2007-04-14 w om
w
w
w. w.
A B B Y Y.c A B B Y Y.c
Completed Drawing
Reference Files The CAD Guys Ltd. Copyright © 1993 - 2007 Module 33
F T ra n sf o F T ra n sf o
PD rm PD rm
Y Y
Y
Y
er
er
ABB
ABB
y
y
bu
bu
2.0
2.0
to
to
re
re
he
he
k
k
lic
lic
C
C
w om AutoCAD Self-paced Learning Modules - AutoCAD 2D - Revised 2007-04-14 33 - 25 w om
w
w
w. w.
A B B Y Y.c A B B Y Y.c
3. Bind the reference file in quadrant B. Do not use the Insert option. After it is bound, edit all of the
names of the layers that were part of the drawing AutoCAD 2D Lab 33-1B. For example:
Completed Drawing
Reference Files The CAD Guys Ltd. Copyright © 1993 - 2007 Module 33