# XATTACH Command [GstarCAD 2018](Help%20System/GSTARCAD/2018/Index.md) → [Commands](Help%20System/GSTARCAD/2018/Commands/(Commands).md) → [X](Help%20System/GSTARCAD/2018/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: ![](Help%20System/GSTARCAD/2018/assets/GCAD_GCR/images/XATTACH-1.png) 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--56aa48a5eaa2.md) · [GstarCAD 2017](../../../2017/Commands/X/XATTACH%20Command--56aa48a5eaa2.md) · [GstarCAD 2019](../../../2019/Commands/X/XATTACH%20Command--56aa48a5eaa2.md) · [GstarCAD 2020](Help%20System/GSTARCAD/2020/Commands/X/XATTACH%20Command--56aa48a5eaa2.md) · [GstarCAD 2021](../../../2021/Commands/X/XATTACH%20Command--56aa48a5eaa2.md)