I would like to make a loop over each line (A,B,C,D,...).
This is the python code for only first line named "A"
profileLine = WORK_DIRECTORY + r'\CrossSections_onlyA.shp'
profileTargets = WORK_DIRECTORY + r'\DTM.tif'
OutTable = WORK_DIRECTORY + r'\OutTableA.dbf'
arcpy.StackProfile_3d(profileLine, profileTargets, OutTable)
I don't know how to do it over all of them with a loop. Also I would like to save the table with the name of each Line. for example: OutTableA.dbf, OutTableB.dbf, OutTableC.dbf and so on.