AutoCAD Xrefs Explained: Attach vs Overlay, Paths, Layers and Binding
How external references (Xrefs) work in AutoCAD, explained on one civil project: attaching, attach vs overlay, relative paths that survive a folder move, the unit factor that stops a building arriving 1,000 times too big, Xref layer names, clipping, binding and fixing Not Found errors.

An Xref (external reference) in AutoCAD is another drawing file linked into your current drawing rather than copied into it. You see and snap to its geometry, but it stays in its own file. When the owner of that file saves a change, every drawing that references it shows the change the next time it reloads. Civil teams use Xrefs so the architectural plan, structural grid, services and site plan are each drawn once and shared.
This guide explains how Xrefs work in current AutoCAD (checked against Autodesk's help for AutoCAD 2027 on 18 Nov 2026). It covers how to attach one, the difference between attach and overlay, which path type to use, why an Xref arrives at the wrong size, how Xref layers are named, and how to clip, reload, detach and bind. Each topic is worked through on one small project: a hostel block with an architect's ground-floor plan referenced by the structural, electrical, plumbing and site drawings. It is written for civil engineering students and junior draughtspersons in India.
Key takeaways
- An Xref is a link, not a copy: you cannot edit its geometry in the host drawing, and changes made in the source file appear in every host after a reload.
- Attach carries the Xref along when your drawing is itself referenced; overlay does not. Autodesk's help: "Using the Overlay option excludes any nested xrefs."
- AutoCAD attaches with a relative path by default (REFPATHTYPE = 1). A host in a Structural folder stores
..\Architecture\A-101 Ground Floor.dwg, which still works after the project folder is moved.- Units set the scale. A plan drawn in millimetres attached to a site plan in metres needs a factor of 0.001, or the 18 m building arrives 1,000 times too big.
- Xref layers appear as
A-101 Ground Floor|WALL. After a Bind they becomeA-101 Ground Floor$0$WALL, and after a Bind with the Insert option, plainWALL.
What is an Xref in AutoCAD?
An Xref is a DWG file attached to another DWG (the "host") as a live reference. The host stores only the link: file name, path, insertion point, scale and rotation. The referenced geometry is read from the source file each time the host opens or reloads it, so the host stays small and always shows the latest saved version.
The closest alternative is a block. A block inserted from another file is copied into your drawing; after that it has no connection to the original, and you must redefine it by hand when the original changes. An Xref keeps the connection. That is why a structural engineer references the architect's plan instead of copying it. When the architect moves a wall, the column layout shows the new position on reload, and nobody has to remember to send an updated block.
Xrefs are not limited to DWG files. The same External References palette also manages DWF, PDF and DGN underlays, raster images and (in full AutoCAD) point clouds, though this guide focuses on DWG references, which civil drawings use most.
Why do civil engineers use Xrefs?
Civil and building projects involve several disciplines drawing on the same base: the architectural plan, the structural grid, electrical, plumbing and HVAC layouts, and the site plan. Xrefs let each discipline draw only its own work on top of a shared, read-only base. Everyone stays in step with the latest plan and nobody edits someone else's lines by mistake.
- One source of truth. Walls live in one file. If they are redrawn in four files, four versions drift apart.
- Smaller, faster files. The host stores a link, not the geometry, so a services drawing does not carry a full copy of the architectural plan.
- Parallel work. The structural and electrical teams can work at the same time as the architect, each in their own file.
- Clear responsibility. Because Xref geometry cannot be edited in the host, each line has one owner, which matters when drawings are issued for construction.
How do you attach an Xref in AutoCAD?
Open the External References palette with the EXTERNALREFERENCES command (XREF opens it too) or from the Insert tab, choose Attach DWG, and pick the file. In the Attach External Reference dialog choose Attachment or Overlay, the path type, and the insertion point, scale and rotation, then click OK. XATTACH goes straight to the file picker.
For the hostel example, the electrical draughtsperson working in E-101 Electrical Layout.dwg would:
- Type
EXTERNALREFERENCESand press Enter, or click Insert › Reference › Attach. - Pick
A-101 Ground Floor.dwgfrom the Architecture folder. - Reference type: Overlay (the electrical drawing only needs to see the plan; see the next section).
- Path type: Relative path, the default.
- Insertion point 0,0,0, scale 1 (if both drawings use the same units), rotation 0. Inserting every discipline's Xref at the origin keeps all the drawings on one shared coordinate system.
- Click OK, then draw the lights, switches and circuits on the electrical layers on top of the plan.
Check the dialog's Block Unit section before clicking OK. It shows the referenced file's units and the scale factor AutoCAD will apply, which is the most common source of trouble, covered below.
What is the difference between attach and overlay in AutoCAD?
Both show the referenced drawing in your host. The difference appears only when your drawing is itself referenced by someone else. An attached Xref travels along into their drawing as a nested reference; an overlaid Xref does not. Use overlay for "I only need to see it" references and attach for references that should always come with your drawing.
Worked example (Figure 2, checked by a script that walks the reference tree). The structural drawing S-101 attaches the architect's A-101 and overlays a setting-out GRID drawing. A-101 itself overlays a FURNITURE drawing.
- Open S-101: you see A-101 and GRID, its own direct references of either type. FURNITURE does not appear, because it was overlaid inside A-101.
- Open the site plan C-001, which attaches S-101: you see S-101 and A-101, because A-101 was attached inside S-101. GRID is left behind, because S-101 overlaid it.
The practical rule for civil teams: overlay the other disciplines' drawings you only trace over, so that circular and duplicate references do not pile up as files reference each other. You can switch an existing reference between Attach and Overlay in the palette's Type column. Autodesk notes this cannot be done for nested references.
Which Xref path type should you use: full, relative or none?
Use a relative path for project work. It stores the route from the host's folder to the Xref, so links survive when the whole project folder is copied to another drive, a server or a colleague's laptop. A full path breaks when the drive letter or folder changes. "No path" relies on AutoCAD's search paths and suits only references kept in the same folder.
Worked example. The host is D:\Projects\Hostel-Block-B\Drawings\Structural\S-101 Column Layout.dwg and the Xref is D:\Projects\Hostel-Block-B\Drawings\Architecture\A-101 Ground Floor.dwg. Going from the Structural folder up one level and down into Architecture gives the stored relative path ..\Architecture\A-101 Ground Floor.dwg.
If the project is archived to E:\Archive\2026\Hostel-Block-B\, the same relative path resolves to E:\Archive\2026\Hostel-Block-B\Drawings\Architecture\A-101 Ground Floor.dwg, and the link still works. A full path would still point at the old D: drive.
The REFPATHTYPE system variable sets the path type for new attachments: 0 no path, 1 relative, 2 full. Its initial value is 1, relative, and Autodesk introduced it with AutoCAD 2018. It does not change references that are already attached. Two limits apply. If the host has not been saved yet, the palette shows a "pending" relative path that is fixed when you first save. And a relative path cannot cross drives: if the host and the Xref are on different drives, Autodesk says the path should be absolute. Keep the whole project on one drive or share.
Why is my Xref the wrong size?
Almost always because the two drawings use different units. AutoCAD scales an attached Xref by the ratio of the INSUNITS setting in the Xref to the setting in the host. If one drawing's INSUNITS is wrong, or a building in millimetres lands in a site plan in metres with a scale of 1, the Xref comes in 1,000 times too big or too small.
Worked example. The architect drew the hostel in millimetres (INSUNITS = 4) with a footprint of 18,000 × 12,000. The site plan is drawn in metres (INSUNITS = 6).
- Factor = 1 mm ÷ 1 m = 0.001, so the footprint arrives as 18 × 12 m on the 40 × 30 m plot. That is correct.
- If the architectural drawing's INSUNITS is wrong or left "Unitless", the factor can end up as 1 with no conversion, and the footprint arrives as 18,000 × 12,000 m, 18 km long.
- The reverse case, a metre drawing attached to a millimetre host, needs a factor of 1,000.
Before attaching, type INSUNITS in both files and check that each matches how it was really drawn, then read the Factor shown in the Block Unit section of the Attach dialog. Building plans and survey or site drawings are often prepared in different units by different teams, so this check matters on most civil projects.
How do Xref layers work?
An Xref brings its layers into the host as xref-dependent layers named with the file name, a vertical bar, and the layer name, for example A-101 Ground Floor|WALL. You cannot draw on them or change the geometry, but you can turn them off, freeze them, or change their colour and linetype in the host to make your own work stand out.
The old version of this article said the prefix used an underscore ("Architectural_Door"). Autodesk's help shows the separator is a vertical bar (FLOOR1|WALL), and that difference matters when you filter layers or write layer-state names. Two system variables control what happens to your layer changes:
- VISRETAIN (saved in the drawing, initial value 1) controls the properties of xref-dependent layers. At 1, the colour, linetype, on/off and freeze changes you make to Xref layers are saved in the host and survive a reload.
- VISRETAINMODE (default 0) controls which of those properties are refreshed from the source file when the Xref reloads.
A common civil set-up is to set all Xref layers to one colour, often grey, so your own electrical or structural layers stand out on top of the architect's plan. Name your own layers with a discipline prefix (for example E-LIGHT, E-SWITCH) so they sort separately from the Xref layers in the Layer Properties Manager. Our post on advanced layer management in AutoCAD covers layer filters and states in more depth.
How do you clip an Xref to show only part of it?
Use XCLIP. Select the Xref, choose New boundary, and draw a rectangular or polygonal boundary or pick an existing polyline. AutoCAD then shows only the part inside the boundary. The rest of the referenced file is untouched. You can turn the clip on or off, delete it, or invert it to hide the inside instead.
Clipping is how a civil sheet shows one wing of a large plan, or one stretch of a road alignment, without making a separate drawing. A boundary drawn from a polyline must use straight segments and must not cross itself. The XCLIPFRAME system variable controls whether the boundary line itself is displayed and plotted. To invert a clip, set XCLIPFRAME to 1, select the boundary, and click the grip at the midpoint of its first edge.
How do you reload, unload, detach and bind Xrefs?
Right-click a reference in the External References palette. Reload reads the latest saved version, Unload hides it but keeps the link, Detach removes the link completely, and Bind turns the Xref into a block that is part of the host drawing, breaking the live link. Open opens the source file for editing in its own window.
| Action | What it does and when to use it |
|---|---|
| Reload | Re-reads the source file; use it when a colleague has saved changes |
| Unload | Hides the Xref but keeps its path; use it to speed up a heavy drawing |
| Detach | Removes the Xref and its layers from the host completely |
| Bind (Bind type) | Makes the Xref a block; layers become A-101 Ground Floor$0$WALL |
| Bind (Insert type) | Makes the Xref a block; layers merge with the host's, so WALL |
| Open | Opens the source DWG so its owner can edit it |
The two bind types follow the BINDTYPE variable (0 = Bind, the default; 1 = Insert). With Bind, if A-101 Ground Floor$0$WALL already exists, AutoCAD increments the number to $1$ instead of overwriting it. Bind only when you need a self-contained file, for example for a final submission or an archive. While design is still changing, keep the live link. Our detailed guide on binding external references in AutoCAD walks through the dialog step by step.
What do Xref status messages mean?
The Status column of the External References palette tells you whether each reference is working. "Loaded" is normal. "Not Found" means the file is not at its saved path or in the search paths. "Unresolved" means the file exists but cannot be read. "Unloaded" means someone hid it on purpose, and "Orphaned" means its parent reference has a problem.
| Status | Meaning and fix |
|---|---|
| Loaded | Attached and displayed; nothing to do |
| Not Found | File missing from its path; use the palette's Found At field to browse to it, or fix the folder structure |
| Unresolved | File found but cannot be read, for example a damaged file |
| Unloaded | Hidden on purpose; right-click › Reload to show it |
| Orphaned | A nested Xref whose parent is Unresolved, Unloaded or Not Found; fix the parent |
| Needs Reloading | The source was re-saved while your drawing was open; reload to see the change |
| Unreferenced | Every instance was erased but the definition remains; detach it to clean up |
A common cause of "Not Found" is a drawing shared by email or chat without its referenced files, or a full path pointing at someone else's D: drive. Share the whole project folder, or a zipped package, with relative paths, and the links survive.
What are the best practices for using Xrefs on a civil project?
Agree on a folder structure, a file-naming scheme and drawing units before anyone attaches anything. Insert every discipline's references at 0,0,0 so the drawings share one coordinate system. Use relative paths, overlay other disciplines' drawings, keep Xref layers grey, and bind only for final issue.
- Folder structure first: one project folder with a sub-folder per discipline, as in Figure 3.
- Consistent names: discipline letter plus sheet number (A-101, S-101, E-101), so the Xref list explains itself.
- Units agreed and set: INSUNITS correct in every file before the first attach.
- Shared origin: attach at 0,0,0 with rotation 0; move the geometry in the source file, never the Xref in the host.
- Relative paths and overlays by default; attach only what must travel with your drawing.
- Reload before issuing: check every status reads Loaded, then plot or bind.
How can you learn AutoCAD for civil engineering?
Skill-Lync's AutoCAD Essentials for Civil Engineers course has 60 video lessons. One of them, "Understanding External References and Hatching" (about 22 minutes), works through Xrefs on a building plan. The first three lessons are free on our Grow page for the course, covering AutoCAD's interface, file formats and drawing units. You can also compare options on our AutoCAD courses page or talk to a Skill-Lync counsellor about which course fits your year and goals.
Related reading: the AutoCAD Offset command for civil engineers (walls and parallel lines on top of an Xref plan) and our civil engineering interview questions.
Frequently asked questions
What is the shortcut for Xref in AutoCAD?
Type XREF (alias XR in the standard acad.pgp) and press Enter to open the External References palette, where you can attach, reload, detach and bind references. XATTACH (alias XA) goes straight to the file dialog for attaching a DWG. On the ribbon, the same tools are under Insert › Reference.
Can I edit an Xref inside the host drawing?
Not directly: Xref geometry is read-only in the host. You can open the source file from the External References palette and edit it there, or use in-place editing with the REFEDIT command, which saves the changes back to the source file. On shared projects, only the file's owner should edit it, so changes stay traceable.
What is the difference between a block and an Xref?
A block's geometry is stored inside your drawing, and it does not change when the original file changes. An Xref's geometry stays in its own file and is read each time the host opens or reloads, so it always shows the latest saved version. Use blocks for repeated symbols and Xrefs for shared base drawings.
Why does my Xref show "Not Found"?
AutoCAD cannot find the file at its saved path. The usual causes are a moved or renamed file, a full path pointing at another computer's drive, or a drawing shared without its references. Select the reference, browse to the file in the Found At field, and switch to a relative path so it does not happen again.
Should I bind Xrefs before sending drawings?
Bind when the recipient needs one self-contained file and will not receive future updates, for example for a final submission or archive. During design, send the whole project folder with relative paths instead, so the live links keep working. Binding makes the file larger and breaks the link, so later changes to the source no longer appear.
Do Xrefs make AutoCAD files smaller?
Yes, the host stores only the link and insertion data, not the referenced geometry, so a services drawing does not carry a full copy of the architectural plan. The total data still has to load when you open the drawing, though. Unloading references you do not need right now makes a heavy drawing faster to work in.
Sources and further reading
- Autodesk, AutoCAD LT 2027 Help: EXTERNALREFERENCES command (palette and status values) and To Work With Overlays. Accessed 18 Nov 2026.
- Autodesk Help: REFPATHTYPE system variable; Autodesk blog, AutoCAD 2018 xref enhancements.
- Autodesk Help: Attach External Reference dialog box (Block Unit, Factor) and INSUNITS system variable.
- Autodesk Help: BINDTYPE system variable, Bind Xrefs/DGN Underlays dialog box, VISRETAIN and VISRETAINMODE.
- Autodesk Help: About Attaching and Detaching Referenced Drawings (pending relative path, separate drives) and -REFEDIT command; acad.pgp alias list (XR, XA).
- Autodesk Help: XCLIP command and To Invert a Clipped Reference.
- Skill-Lync course data: AutoCAD Essentials for Civil Engineers lesson list (60 lessons; "Understanding External References and Hatching", 1,340 s), checked 18 Nov 2026.
- Worked examples (paths, unit factors, layer renaming, attach/overlay tree): calc.py in this article's run folder, 18 Nov 2026.


