# XREF Command Line
[GstarCAD 2015](../../Index.md) → [Commands](../%28Commands%29.md) → [X](%28X%29.md)
## Function Description:
> Edit and control external reference in current drawing.
**Command Entry:**
> -XREF
**Command Prompt:**
> External References: \[list(?)/Bind/Insert/Detach/Path/Reload/Unload/Overlay/Attach\]\<Attach\>:
>
> **List**
>
> List the DWG reference name, path, and type and the number of DWG references currently attached to your drawing.
>
> **Bind**
>
> Convert a specified DWG reference into a block, making it a permanent part of the drawing.
>
> **Insert**
>
> Convert external reference into block in the current drawing.
>
> **Detach**
>
> Detach one or more DWG references from your drawing, erasing all instances of a specified xref and marking the xref definition for deletion from the definition table. Only the xrefs attached or overlaid directly to the current drawing can be detached; nested xrefs cannot be detached.
>
> **Path**
>
> Display and edits the path name associated with a particular DWG reference.
>
> **Reload**
>
> Reload one or more DWG references. This option reloads and displays the most recently saved version of that drawing.
>
> **Overlay**
>
> Display the Enter Name of File to Overlay Dialog Box . Select the file you want to attach to a drawing as an external reference (xref) overlay. If you reference a drawing that contains an overlaid xref, the overlaid xref does not appear in the current drawing.
>
> If the xref you specify is not already overlaid, a new xref is crated, using the name of the referenced file. You are then prompted for an insertion point, scale, and rotation angle, as described for the INSERT Command.
>
> **Attach**
>
> Open the Dialog Box corresponding to the selected reference type.
## Other versions with matching text
[GstarCAD 8 (2013–2014)](../../../2013/Commands/X/XREF%20Command%20Line.md)