extract programable filter/python annotation values to csv file

Either of them would be good, my goal to extract the area, volume, and dimension into the csv file. I’ve already successfully extracted the dimension using Python Shell (refer to this Bounding Ruler filter: adding an option to show X, Y, Z delta - #8 by NinhGhoster). Hopefully, I can extract these the area and volume into the same csv file by using code since I don’t know a way how to integrate GUI and code together.

Each time step is a unique object. I intend to run the code automated to get these data from all steps. Please let me know if this is not a good idea.