# XATTACH Command
[GstarCAD 2020](Help%20System/GSTARCAD/2020/Index.md) → [Commands](Help%20System/GSTARCAD/2020/Commands/(Commands).md) → [X](Help%20System/GSTARCAD/2020/Commands/X/(X).md)
The XATTACH command is used to attach a DWG file as an external reference.
## Command Access:
> **Ribbon:** Insert \> Reference \>Attach **Menu:** Insert\> DWG reference
> **Command:** XATTACH
## Function Description:

When attaching the metafiles in current drawing as external reference, it could also be linked to current drawing. Open or reload the reference drawing, the current drawing will display all modifies.
Inputting "XATTACH" in command line, the "select reference file" dialog box pops up, and then select the specified DWG file, the "Attach External Reference" dialog box displays.
## Other versions with matching text
[GstarCAD 2016](../../../2016/Commands/X/XATTACH%20Command.md) · [GstarCAD 2017](../../../2017/Commands/X/XATTACH%20Command.md) · [GstarCAD 2018](Help%20System/GSTARCAD/2018/Commands/X/XATTACH%20Command.md) · [GstarCAD 2019](Help%20System/GSTARCAD/2019/Commands/X/XATTACH%20Command.md) · [GstarCAD 2021](Help%20System/GSTARCAD/2021/Commands/X/XATTACH%20Command.md)