BodyGroup.add Method

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

Description

Adds the specified item into this group. The item can be a BRepBody, MeshBody, or another BodyGroup. If the item is already a member of another group it is moved out of that group and into this one.

Syntax

"bodyGroup_var" is a variable referencing a BodyGroup object.

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

#include <Fusion/Components/BodyGroup.h>

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

returnValue = bodyGroup_var.add(item);

Return Value

Type Description
boolean Returns true if the item was successfully added into the group.

Parameters

Name Type Description
item Base The BRepBody, MeshBody, or BodyGroup to add into this group.

Version

Introduced in version November 2026