BRepBodies.item Method

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

Description

Function that returns the specified body using an index into the collection.

Syntax

"bRepBodies_var" is a variable referencing a BRepBodies object.
returnValue = bRepBodies_var.item(index)
"bRepBodies_var" is a variable referencing a BRepBodies object.

#include <Fusion/BRep/BRepBodies.h>

returnValue = bRepBodies_var->item(index);

Return Value

Type Description
BRepBody Returns the specified item or null if an invalid index was specified.

Parameters

Name Type Description
index uinteger The index of the item within the collection to return. The first item in the collection has an index of 0.

Samples

Name Description
Get Volume of Active Design API Sample Traverses through the active design and totals the volume of every body within the design.

Version

Introduced in version August 2014