Thank you for the input and the link. Each time I run the tool, it says it's 100% complete, but then it stops, does not close the progress window, and enters a "0" value into the feature class' attribute table for SLength. The line segment is entirely contained by the DEM, so I'm not sure what's wrong. Any thoughts?