Getting info in python from Hydrostatics

Hello everyone,

I’m quite new to python and I have a project I would like to work on. I am trying to get the information from Hydrostatic command in Rhino and I found this thread Hydrostatics with python, but I need to do it for a couple of water line elevations.

Do you have anything in mind to do it?

I think a “brute force” approach could be done by creating surfaces at the water lines, and using them as cutters in rs.BooleanIntersection(brep,cutter) ,and then I would have to calculate everything (volume, centroids, water plane area, and so on), but this would be really time consuming, I think.

Thank you