# Attach Xdata
[GstarCAD 2026](Help%20System/GSTARCAD/2026/Index.md) → [User Guide](Help%20System/GSTARCAD/2026/User%20Guide/(User%20Guide).md) → [Express Tools](Help%20System/GSTARCAD/2026/User%20Guide/Express%20Tools/(Express%20Tools).md) → [Custom Tools](Help%20System/GSTARCAD/2026/User%20Guide/Express%20Tools/Custom%20Tools/(Custom%20Tools).md)
The XDATA command is used to attach extended object data (xdata) to a selected object.
Select object: Use an object selection method
Input application name: Specify application name
Enter an option [3Real/DIR/DISP/DIST/Hand/Int/LAyer/LOng/Pos/Real/SCale/STr/eXit] <eXit>:
**Options**:
**Application name:** An ASCII string up to 255 bytes long (group code 1000).
**3Real:** 3 real numbers (group code 1010).
**Dir:** A 3D World space direction (group code 1013).
**Disp:** A 3D World space displacement (group code 1012).
**Dist:** A distance (group code 1041).
**Hand:** An object handle (group code 1005).
**Int:** A 16-bit integer (group code 1070).
**Layer:** A layer name (group code 1003).
**Long:** A 32-bit signed long integer (group code 1071).
**Pos:** A 3D World space position (group code 1011).
**Real:** A real number (group code 1040).
**Scale:** A scale factor (group code 1042).
---
[Original help](https://www.gstarcad.net/help/GstarCAD_2026_en-US/detail/GUG_ET_CustomTools/Attach%20Xdata.html) · © Gstarsoft Co., Ltd.