TypeError when using python to get solid's volume

Hi, I used Autodesk.DesignScript.Geometry.Solid.Volume(solid) to get the solid’s volume but it failed with the error shown in the picture below. May I know what are the correct python scripts to get the solid’s volume? (I know there is a Solid.Volume node but I need to use it in python to get some specific solids’ volumes) Thanks!

Sorry I got it… v = solid.Volume worked…


Hi, I made a script like yours but it’s not worked. Could you help me? Thank you!

@SonLamHoang I think it should be

v = Autodesk.DesignScript.Geometry.Solid.Volume(solid)

Error still occurred, did your script work?