GetVolume Method


Gets the volume of this piping system.

Namespace: Autodesk.Revit.DB.Plumbing
Assembly: RevitAPI (in RevitAPI.dll) Version: 17.0.0.0 (17.0.1090.0)
Since: 2017

Syntax

C#
public double GetVolume()
Visual Basic
Public Function GetVolume As Double
Visual C++
public:
double GetVolume()

Remarks

The publicly exposed method.

Exceptions

Exception Condition
Autodesk.Revit.Exceptions InvalidOperationException The volume can not be calculated for this system.

See Also

ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →