1.create a new shape file in ArcGIS 10.5 (I am using this version),
3.check coordinates will contain M, Z, click OK,
4.start editing and add line and save
5.interpolate this line with dtm.
2.add path line created in ArcGIS,
3.select select lines in path line layer,
4.go to animation and create flyby ...