nicholaswissler

Measure Straight line distance

Discussion created by nicholaswissler on Jan 3, 2012
Latest reply on Jan 4, 2012 by hzhu
I have a polyline in ArcMap and I'd like to be able to do two different length (Or distance) measurements utilizing Python.  The first measurement needs to be length from endpoint to endpoint within the polyline.  I accomplished this part. 

The polyline is wavy and bent.  I want measure straight line distance from endpoint to endpoint.  This is easy using the measure tool within Arc, but I want to add the measurement to part of a script I'm working on. I know that the distance measurement is: X^0.5((x1-x2)^2 + (y1-y2)^2) but short of writing down the coordinates and fat fingering them into the script how can I get Python and Arc to access the endpoint information to utilize this distance measurement?

Thanks,

Nick

Outcomes