Hello Robert
Thank you for your reply.
I did draw lines using Python coding before.
This time I wanted to using the ArcGIS standard functions for purpose of training.
Actually I found my problem.
It was silly but very important however it didn't mention in Esri document.
In the step of XY to line, we have to select the projection system.
In the dialog box said optional but it is not optional it is very critical.
I think this part has to be fixed in the next version of ArcGIS.
Kind regards
Amir Homainejad
GIS Manager
3 Dimensional Information Modelling
Email: homain@hotmail.com
Mobile: 0435 180 300