# REFCLOSE Command
[GstarCAD 2012](../../Index.md) → [Commands](../%28Commands%29.md) → [R](%28R%29.md)
Function Description:
> Save back or discard changes made during in-place editing of a reference (an xref or a block)
**Menu:**
> Tools\>Xref and Block In-Place Editing\>Close Reference
**Command Entry:**
> REFCLOSE
**Command Prompt:**
> Enter option \[[Save(S)](../../Source%20Issues.md#issue-2ee545d16d3c9ff2)/[Discard reference changes(D)](../../Source%20Issues.md#issue-8ec82b0f39003d4b)\]\<Current\>:
> Enter an option or press ENTER
>
> **Save**
>
> Save back to the xref source drawing or to the block definition in the current drawing all changes made to objects in the working set. If you remove an object from the working set and save changes, the object is deleted from the reference and added to the current drawing. The Save Back Changes to Reference button on the Refedit toolbar automatically saves reference editing changes.
>
> **Discard Reference Changes**
>
> Discard the working set; the source drawing or block definition is returned to its original state. Any changes you make to objects in the current drawing (not in the xref or block) are not discarded. If you delete any object that is not in the working set, the object is not restored even if you choose to discard changes. The Discard Changes to Reference button on the Refedit toolbar automatically discards reference editing changes without using REFCLOSE.
## Other versions with matching text
[GstarCAD 2011](../../../2011/Commands/R/REFCLOSE%20Command--88a442be55df.md)