# XATTACH Command [GstarCAD 2027](Help%20System/GSTARCAD/2027/Index.md) → [Commands](Help%20System/GSTARCAD/2027/Commands/(Commands).md) → [X](Help%20System/GSTARCAD/2027/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:** ![](Help%20System/GSTARCAD/2027/assets/fb3cb9f651b426f8f599ec9f6977a9cc2c6e2178d7b6c619957e3d529ff3bd54.png) > **Menu:** Insert > DWG Reference... > **Ribbon:** Insert > Reference > DWG Reference > **Toolbar:** Reference > Attach Xref > **Command:** XATTACH > **Alias:** XA **Command Prompts: /** ![](Help%20System/GSTARCAD/2027/assets/2e54310510ce5a7b355cc87423de057c8dfb11bd4f1e99aa20913d8d518e0a55.jpg) --- **Related References:** - [Commands about Starting Drawings (GstarCAD 2026)](../../../2026/Commands/00%20Command%20Groups/Commands%20about%20Starting%20Drawings.md) **Related Tasks:** - [To Attach and Detach External Reference (GstarCAD 2026)](../../../2026/Commands/01%20Procedures/To%20Attach%20and%20Detach%20External%20References.md) --- [Original help](https://www.gstarcad.net/help/GstarCAD_2027_en-US/detail/commandReferences_X/XATTACH.html) · © Gstarsoft Co., Ltd.