Select line segment of Polyline Sample
This sample shows how to use the Spatil Math module to calculate which part of a polyline was selected.