Moment of inertia in Revit

Does anybody know how to get moment of inertia inside a Revit Family?

Please note that the shape is really complex one and cannot be done with a formula…

Thanks!

One thought would be to leverage an external library like the point cloud library, which has instructions for calculating this for quite complex shapes here: Moment of inertia and eccentricity based descriptors — Point Cloud Library 1.11.1-dev documentation (pointclouds.org)