BodyGroup.item Method

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

Description

Function that returns the specified item within this group using an index into the collection. The returned item can be a BRepBody, MeshBody, or a nested BodyGroup.

Syntax

"bodyGroup_var" is a variable referencing a BodyGroup object.

returnValue = bodyGroup_var.item(index)
"bodyGroup_var" is a variable referencing a BodyGroup object.

#include <Fusion/Components/BodyGroup.h>

returnValue = bodyGroup_var->item(index);
"bodyGroup_var" is a variable referencing a BodyGroup object.

returnValue = bodyGroup_var.item(index);

Return Value

Type Description
Base 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 group to return. The first item in the group has an index of 0.

Version

Introduced in version November 2026