BRepBody.volume Property

Parent Object: BRepBody
Defined in namespace "adsk::fusion" and the header file is <Fusion/BRep/BRepBody.h>

Description

Returns the volume in cm ^ 3. Returns 0 in the case the body is not solid.

Syntax

"bRepBody_var" is a variable referencing a BRepBody object.
# Get the value of the property.
propertyValue = bRepBody_var.volume
"bRepBody_var" Is a variable referencing a BRepBody Object.
#include <Fusion/BRep/BRepBody.h>

// Get the value of the property.
double propertyValue = bRepBody_var->volume();
"bRepBody_var" Is a variable referencing a BRepBody Object.
// Get the value of the property.
propertyValue = bRepBody_var.volume;

Property Value

This is a read only property whose value is a double.

Samples

Name Description
Get Volume of Active Design API Sample

Demonstrates traverses through the active design and totals the volume of every body within the design.

Before running: No open document is required; the script creates a new design (or additional documents) as it runs.

Version

Introduced in version August 2014