# XATTACH Command
[GstarCAD 2022](Help%20System/GSTARCAD/2022/Index.md) → [Commands](Help%20System/GSTARCAD/2022/Commands/(Commands).md) → [X](Help%20System/GSTARCAD/2022/Commands/X/(X).md)
## Function Description:
This command is used to attach a DWG file as an external reference.
When attaching the metafiles in the current drawing as an external reference,
it can also be linked to the current drawing. Opens or reloads the referenced drawing, the current drawing displays all
changes.
If you enter XATTACH in the command line, the Select Reference File dialog box
is displayed, and then select the specified DWG file, the Attach External Reference dialog box
is displayed.
## Command Access:
> **Icon:**
> 
> **Menu:** Insert \> DWG
> Reference...
> **Ribbon:** Insert \> Reference \> DWG Reference
> **Toolbar:**
> Reference \> Attach Xref
> **Command:** XATTACH
> **Alias:**
> XA
**Command Prompts: /**
