As far as I know, there is none.
Note you could add a distance expression in your part to measure this, then use MOM_ask_ess_exp_value to get the value.
Note if the expression can't be found, instead of throwing an error, that function returns the value "No such variable defined in Expression" (check in case this gets localized in your language). So error handling is a bit obtuse.
Production: NX10.0.3.5 MP16/TC11.2
I'd rather be e-steamed than e-diseaseled
-Sample prt (NX11)
1. Extract all files
2. Copy DLL into root C:\
3. If impossible to use C:\ - create any folder in any place and edit tcl-file of postprocessor, insert your path to dll. Search and replace "C:\\BLK_FORM.dll" - use \\ for path.
4. Open my prt.
6. And postprocess my operation. See output
7. For your prt-file - set name for your SOLID BODY (not for feature!) "PART", place WCS as you need, save WCS and for saved CSYS set name "ZAO_POSTPROCESSOR"
$mom_gabarit(2) - is maximum Z in your CSYS for your solid body. Declare this var in any place as global.