How to get the length of a vector in imperial units?

I can get the length of a vector this way:

my_vector.length

But I want to get the value in imperial units. How to do?

I found out :slight_smile:

from space_view3d_panel_measure import getUnitsInfo, convertDistance

length = my_vector.length
uinfo = getUnitsInfo()
length = convertDistance(length, uinfo)

print(length)

thanks for the creators of the addon “space_view3d_panel_measure” :slight_smile: