I faced the problem with a vba program like this. es

in autocad, I have the plant of a rectangular room, I draw along the inner perimeter a polyline in this closed case. with a code in visual basic I extract the values of polylinea, in this case: length, area, height, etc.
I create an object "set fs = createobject("scripting.filesystemobject""
set f = fs.getfile("c:\users\user\documents\progettocad\projectdata\da_autocad_a_excel.csv")
set ts = f.openastextstream(forreading, tristateusedefault)
transit file name "da_autocad_a_excel.csv" where register the data extracted
at this point from excel amount the file data: "from_autocad_a_excel.csv"
now you have the data you can manipulate to calculate perimeter volume vertical areas. manipulate as you want
I hope I helped you... .
a greeting