Sampat Kumar
Ansys Employee

Hi 
If you want to export the deformation corresponding to the nodal location then you have to turn on the Nodal location option in the export.
Step1: Tool>Options>Export>Include Node Location>Yes

For the APDL code, you have to modify the below code a little bit and try to export. 
/forum/forums/topic/export-of-nodal-displacements-from-workbench-to-txt-file/

Best Regards,
Sampat

Â