This may be an easy question but looking through the pro sdk samples and guides I didn't see the optimal way of getting a geodatabase feature class length in feet or miles like the python below. How do you get a feature classes full length or selection records length from the @SHAPE fields while supplying the unit of measurement you want?
<code>
with arcpy.da.SearchCursor(lyr, ['SHAPE@']) as cursor:
for row in cursor:
length += row[0].getLength("PLANAR", "FEET")
print("Total length: {0}".format(length))
</code>
similar to the code below but needing to specify the return unit of measurment