Calculate angle of each line in a polyline shapefile

Discussion created by robintw147 on Jan 20, 2011
Latest reply on Dec 17, 2013 by sreekumar

I'm looking for a tool that will calculate the angle of each line in a set of polylines individually. Ideally I would like to be able to add an extra field to the attribute table of the polylines and fill this field with the overall angle of the polyline (probably just calculated from the first point to the last point, ignoring the bits in the middle).

Is there a tool that will do this? I can find various tools that will work for polygons, but not for polylines.