I want to create a line, but the end point of the line is not what I have entered in the command window. Could anyone please tell me why? Attached is the image showing the line end points and the entered xyz value.
The coordinates you enter when creating a line are in cplane coordinates.
The coordinates given in object details are world coordinates. The two coordinates systems are the same only when the cplane is set to World Top.
If you use the _EvaluatePt command it will give you the end points in both coordinate systems.
To elaborate further on @jim 's point: you have Auto CPlane (Object) so your CPlane is most likely not the mentioned World Top.
addendum: If you intended the coordinates to be world coordinates prefix with w to ensure the coordinate is that: w120,116,4.5. Then it shouldn’t matter what CPlane you have active, it will be World Top.