Get All inerita properties of a part file

Requesting for help in solving a mass measurement problem:
I am trying to get all mass properties of all bodies in a part file. The NXOpen.MeasureManager.NewMassProperties () function is only returning MeasureBodies object which returns only a select few of the mass properties. At the same time, the information() function in the same MeasureBodies does print all the measurements in the Listing Window . I want to get the inertia matrix from the bodies, but the function is only returning the Radius Gyration for one direction. Please help me in extracting the full inertia matrix.

Here is my code:

using System;

namespace Gust
{
public class MyClass
{
public static void Main(String[] args)
{
//with clues from nxjournaling.com

NXOpen.Session session = NXOpen.Session.GetSession();
NXOpen.Part part = session.Parts.Display;
NXOpen.ListingWindow infoWindow = session.ListingWindow;

if (!infoWindow.IsOpen) {
infoWindow.Open();
}

if (part.PartUnits == NXOpen.BasePart.Units.Inches) {
//dont do anything if the units are inches.
return;
}

NXOpen.Unit[] unitArray = new NXOpen.Unit[5];
unitArray[0] = part.UnitCollection.GetBase("Area");
unitArray[1] = part.UnitCollection.GetBase("Volume");
unitArray[2] = part.UnitCollection.GetBase("Mass");
unitArray[3] = part.UnitCollection.GetBase("Length");
unitArray[4] = part.UnitCollection.GetBase("Force");//unit of weight

var mb = part.MeasureManager.NewMassProperties(unitArray, 0.01, part.Bodies.ToArray());
mb.InformationUnit = NXOpen.MeasureBodies.AnalysisUnit.KilogramMeter;

infoWindow.WriteLine("Area: " + mb.Area);
infoWindow.WriteLine("Volume: " + mb.Volume);
infoWindow.WriteLine("Mass: " + mb.Mass);
infoWindow.WriteLine("Weight: " + mb.Weight);
infoWindow.WriteLine("Radius of Gyration: " + mb.RadiusOfGyration);

//get advanced mass properties
infoWindow.WriteLine("Measure types in part");
foreach (var elem in part.UnitCollection.GetMeasures()) {
infoWindow.WriteLine(elem);
}

}

///
/// Gets the unload option. Function automatically called by NX
///
/// The unload option.
public static int GetUnloadOption()
{
return (int)NXOpen.Session.LibraryUnloadOption.Immediately;
}
}
}

Try using the .AskMassProps3d method instead.

Thank you very much. I tried and it worked.
I do wish NX provides a common API function to get this data, instead of going back to UF api.
Thankyou again.