I'm using ArcGIS and am trying to figure out how to calculate the cumulative elevation gain (in feet or meters) for over 1,000 line segments representing separate, often unconnected trails. I have a DEM raster and the polylines, so it seems there should be a way without too much headache or expertise, but I'm getting stuck! I've seen the answer to this question if you want to create a profile graph for a line segment, but I don't want to create 1,000 graphs to calculate the amount of cumulative elevation gain for each of these trails.
In the Profile Graph in 3D analyst I can select all my line segments and put them all on one graph so that I can download them in one table for excel, but then the table doesn't identify which trail they belonged to. Stack Profile seems to do the same thing.
Any ideas or hints how to get cumulative elevation gain for each of my 1,000 line segments in an easier way?