Dear teachers I appeal to you to request help to generate a routine, the routine would consist in generating the data of the table (texts of green, red, cyan) which are generated starting from the data that must be entered so much of the value of the station as of the elevation at the intersection of the axis (blue texts) with the polyline representing the section of the terrain (green polyline), the colored texts of the table are generated from the accumulated distances and the elevations of the vertices of the polyline that represents the section of land to the left starting from the point of intersection of the axis with the section of terrain (blue circle), in the same way the values of color cyan are the accumulated distances and the elevations of the vertices of the polyline that represents the section of the terrain to the right, the elevation of the vertices is a function of the elevation of the intersection of the axis with the polyline that represents the section of the land; The colors of the texts are only to be able to explain better what is required, it is not necessary that the routine represents colors.
https://i62.servimg.com/u/f62/19/88/13/91/captur11.jpgVery grateful for the help given.