GstarCAD command

XREF command

Manage external DWG references, including attaching, reloading, unloading, detaching and binding referenced drawings.

Command
XREF
Alias
XR
Tool group
Insert
Level
Intermediate

What does XREF do?

XREF opens the External References panel, where you can view and manage external drawing references linked to the current DWG file. External references, commonly called Xrefs, allow another drawing to appear inside the current drawing without permanently copying all of its geometry into the host file. This is particularly useful for architectural, structural and MEP projects where several drawings need to remain coordinated.

How to use the command

  1. Type XREF or its shortcut XR, then press Enter.
  2. The External References panel opens and displays references associated with the current drawing.
  3. Use Attach to add a new external DWG reference when required.
  4. Select an existing reference to review its status, file path and other reference information.
  5. Use Reload, Unload, Detach or Bind depending on the required operation.
  6. Use -XREF when you want to manage external references directly from the command line.
Command: XR ↵
External References panel: select reference
Operation: Reload / Unload / Detach / Bind

Key XREF functions

The External References panel provides several tools for controlling how linked drawings are used in the current project.

Attach
Adds an external drawing reference to the current DWG file. Use XATTACH when attaching a DWG directly.
Reload
Reloads the selected reference so the host drawing displays the latest saved version of the referenced file.
Unload
Temporarily removes the reference from display without deleting its reference definition, allowing it to be reloaded later.
Detach
Removes the selected external reference and its definition from the current drawing.
Bind
Converts an external reference into data stored within the current drawing instead of maintaining the external file link.

Practical example: manage an architectural background

Suppose a structural drawing uses Architecture.dwg as an external background. Run XREF to open the External References panel. If the architect sends an updated version using the same file location, select the reference and choose Reload to display the latest saved geometry. If the background is temporarily unnecessary, choose Unload instead of Detach so the reference can easily be restored later.

Tip

Use Unload when a reference is only temporarily unnecessary. Use Detach when you want to remove the reference relationship from the drawing completely.

All commands Updated 30 September 2026
Continue learning
View all commands

Ready to switch to GstarCAD?

Get personalized advice on licensing, migration, and deployment for your business.

Contact us Buy now

No obligation — reply within 24h

Your Cart

Subtotal

Price does not include local taxes or duties.

Proceed to Checkout

Cookie preferences

Choose which cookies you want to allow. Essential and payment cookies cannot be disabled as they are required for the site to function.

Essential

Required

Core functionality including authentication, shopping cart, and language preferences.

Payment

Required

Required for processing payments securely through Stripe and PayPal.

Analytics

Help us understand how visitors interact with our site to improve the experience.

Marketing

Used to deliver relevant advertisements and measure campaign performance.

Functional

Order attribution and traffic source tracking to help us understand how customers find our store.