# XDATA Command
[GstarCAD 2022](Help%20System/GSTARCAD/2022/Index.md) → [Commands](Help%20System/GSTARCAD/2022/Commands/(Commands).md) → [X](Help%20System/GSTARCAD/2022/Commands/X/(X).md)
## Function Description:
This command is used to attach extended object data (xdata) to
a selected object. You can view the xdata attached to objects with the XDLIST
command.
## Command Access:
> **Icon:**
> /
> **Menu:** /
> **Ribbon:** /
> **Toolbar:** /
> **Command:** XDATA
> **Alias:**
> /
## Command Prompts:
Select object: