01 / 21

Snapping to
Xrefs

Master the art of snapping to objects inside external references and underlays: precision drafting across multiple drawings.

AutoCAD

What Is an External Reference?

An External Reference (Xref) is a separate drawing file that is linked into your current drawing rather than being copied. Think of it like a live window into another file: when the source file updates, your drawing updates too.

DWG Xref
Another AutoCAD drawing attached as a reference overlay or attachment.
Underlay
A PDF, DGN, or raster image linked for visual reference and tracing.

Why Snap to Xref Objects?

Without object snapping, you are forced to guess where Xref geometry lands. Object Snaps (OSNAP) let you precisely lock onto endpoints, midpoints, and intersections inside an Xref, just as if those objects lived in your current drawing.

XREF: Floor Plan Midpoint Your line CURRENT DRAWING

OSNAP Basics Refresher

Object Snaps are precision tools that let your cursor lock onto specific geometric points. They work identically on objects in the current drawing and in Xrefs, as long as the correct system variable is enabled.

Endpoint
Snaps to the closest end of a line, arc, or polyline segment.
Midpoint
Snaps to the exact center of a line or arc.
Intersection
Snaps where two objects cross, even across Xref boundaries.
Center
Snaps to the center of a circle, arc, or ellipse.

The Key: XREFOVERRIDE

AutoCAD controls whether you can snap to Xref objects with the system variable XREFOVERRIDE. When set to 1, all Xref layers behave as if they are unlocked for snapping purposes, regardless of their actual lock status.

; Enable snapping to locked Xref layers
Command: XREFOVERRIDE
Enter new value <0>: 1
Value = 0
Cannot snap to objects on locked Xref layers. Default behavior.
Value = 1
Can snap to all Xref objects, even on locked layers. Recommended for precision work.

Configuring OSNAP for Xrefs

Snapping to Xref objects requires two conditions to be true simultaneously. If either one is off, your cursor will pass right through Xref geometry.

1
OSNAP must be active. Press F3 or click the OSNAP button on the status bar. Verify the desired snap modes (Endpoint, Midpoint, etc.) are checked.
2
Xref layers must be visible and unlocked (or XREFOVERRIDE = 1). Frozen or OFF layers cannot be snapped to regardless of any setting.

Xref vs Underlay Snapping

DWG Xref PDF / DGN Underlay
Full OSNAP Support ✓ All snap modes Partial
Snap to Endpoints ✓ ✓ (if vector)
Snap to Centers ✓ ✕ Not reliable
Layer Control ✓ Full ✕ Limited
Control Variable XREFOVERRIDE UOSNAP
Editable In-Place ✓ REFEDIT ✕ No

Step-by-Step: Snapping to Xrefs

1
Attach the Xref. Use XREF command (or ATTACH) to link the external drawing. Choose Overlay or Attachment type.
2
Verify layer visibility. Open the Layer Properties Manager and confirm the Xref layers are thawed, on, and ideally unlocked.
3
Enable OSNAP. Press F3 and select the desired snap modes in the Drafting Settings dialog (DSETTINGS).
4
Set XREFOVERRIDE = 1 (if Xref layers are locked). Type XREFOVERRIDE at the command line and enter 1.
5
Draw and snap. Start a line or other command. Hover over Xref geometry and watch for the OSNAP marker (green diamond, triangle, etc.).

Example 1: Snap to an Xref Endpoint

XREF: Site Plan Endpoint YOUR DRAWING New line from Xref endpoint Perfectly aligned

Example 2: Snap to an Intersection

XREF: Grid + Utilities Grid Line A Utility Pipe Intersection Manhole placed at intersection

Example 3: Snapping to a PDF Underlay

PDF underlays can be snapped to if the PDF contains vector geometry (not a scanned image). You must enable the underlay-specific snap variable.

; Enable underlay object snap
Command: UOSNAP
Enter new value <0>: 1

; Also accessible from the status bar:
; Right-click OSNAP → Settings → check "Allow Underlay Osnap"
Vector PDF
Created from CAD or illustration software. Contains actual line/arc data. Can be snapped to.
Raster PDF
Scanned document or photo. Contains only pixels. Cannot be snapped to.

Overlay vs Attachment

When attaching a DWG Xref, you choose between Overlay and Attachment. This choice affects nesting behavior but does not affect your ability to snap.

Overlay Attachment
Nesting Not seen in nested Xrefs Visible in nested Xrefs
Snap Support ✓ Full ✓ Full
Use Case Coordination views Assembly drawings
Circular Refs ✓ Prevented ✕ Possible

OSNAP Override Shortcuts

Sometimes you want a one-time snap to a specific point type without changing your running OSNAP. Hold Shift + Right-click during a command, or type the override keyword directly.

END
One-time Endpoint snap override.
MID
One-time Midpoint snap override.
INT
One-time Intersection snap override.
CEN
One-time Center snap override.

Troubleshooting: Snap Not Working?

1
Check OSNAP is ON. Press F3 or look at the status bar. A greyed-out icon means OSNAP is disabled.
2
Check layer state. The Xref layer may be frozen, off, or locked. Open Layer Properties Manager to verify.
3
Set XREFOVERRIDE = 1. If Xref layers are locked by the project standard, this variable overrides the lock for snap purposes only.
4
Check UOSNAP for underlays. DWG Xrefs use XREFOVERRIDE; PDF/DGN underlays use UOSNAP. They are separate settings.
5
Verify the PDF is vector. Scanned/raster PDFs contain no snap-able geometry. Try zooming in: if it pixelates, it is raster.

Common Mistakes

✕ Ignoring XREFOVERRIDE
Leaving it at 0 when Xref layers are locked, then wondering why snaps skip over the reference geometry.
✕ Too Many Snap Modes
Enabling every snap mode at once causes AutoCAD to pick the wrong point. Enable only the 2-3 modes you need.
✕ Snapping to Raster PDF
Expecting OSNAP markers on a scanned PDF underlay. Raster images have no vector data to snap to.

Quick Reference Summary

Action Command / Variable Value
Toggle OSNAP F3 On / Off
Snap to locked Xref layers XREFOVERRIDE 1
Snap to PDF/DGN underlay UOSNAP 1
One-time snap override Shift + Right-click Select mode
Configure snap modes DSETTINGS Dialog
Attach Xref XREF / ATTACH Overlay or Attach

Question 1 of 5

Which system variable allows you to snap to objects on locked Xref layers?

Question 2 of 5

You attach a scanned PDF as an underlay and enable UOSNAP = 1, but OSNAP markers do not appear. What is the most likely reason?

Question 3 of 5

What is the keyboard shortcut to toggle Object Snap on and off in AutoCAD?

Question 4 of 5

When you choose Overlay instead of Attachment for an Xref, what is the primary difference?

Question 5 of 5

You need to snap to the midpoint of a line in an Xref, but your running OSNAP is set to Endpoint only. What is the fastest method?