2004

Table Of Contents
696 | Chapter 23 Reference Other Drawing Files (Xrefs)
If you turn on demand loading with the Enable with Copy option, AutoCAD
makes a temporary copy of the externally referenced file and demand loads
the temporary file. You can then demand load the xref while allowing the
original reference drawing to be available for modification. When you turn
off demand loading, AutoCAD reads in the entire reference drawing regard-
less of layer visibility or clip instances.
Layer and spatial indexes were added in AutoCAD Release 14 and AutoCAD
97. If you externally reference a drawing saved in an AutoCAD release
previous to this, you do not see the same performance benefit as drawings
saved with the indexes. For maximum performance, use demand loading
with referenced drawings saved with layer and spatial indexes turned on in
AutoCAD Release 14, AutoCAD 97, or more recent versions.
To turn on demand loading
1 From the Tools menu, choose Options.
2 In the Options dialog box, choose the Open and Save tab.
3 On the Open and Save tab under External References, select Disabled,
Enabled, or Enabled with Copy.
4 Choose OK.
Work with Layer and Spatial Indexes
To receive the maximum benefit of demand loading, it is recommended that
you save any drawings that are used as xrefs with layer and spatial indexes.
A layer index is a list showing which objects are on which layers. This list is
used when AutoCAD is referencing the drawing in conjunction with demand
loading to determine which objects need to be read in and displayed. Objects
on frozen layers in an external reference are not read in if the external refer-
ence has a layer index and is being demand loaded.
The spatial index organizes objects based on their location in 3D space. This
organization is used to efficiently determine which objects need to be read in
when the drawing is being demand loaded and clipped as an external refer-
ence. If demand loading is turned on, and the drawing is attached as an xref
and clipped, AutoCAD uses the spatial index in the externally referenced
drawing to determine which objects lie within the clip boundary. AutoCAD
then reads only those objects into the current session.