Measures tab.
See macro o165 - Meas. Tab.
This program feature is scriptable. For more info regarding Scripts, please read chapters Scripts.