BodyGroups.itemByName Method

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

Description

Returns the group with the specified name, as seen in the browser. Group names are not required to be unique, so this returns an array of all matching groups.

Syntax

"bodyGroups_var" is a variable referencing a BodyGroups object.

returnValue = bodyGroups_var.itemByName(name)
"bodyGroups_var" is a variable referencing a BodyGroups object.

#include <Fusion/Components/BodyGroups.h>

returnValue = bodyGroups_var->itemByName(name);
"bodyGroups_var" is a variable referencing a BodyGroups object.

returnValue = bodyGroups_var.itemByName(name);

Return Value

Type Description
BodyGroup[] Returns an array of the matching groups or an empty array if no group with the specified name was found.

Parameters

Name Type Description
name string The name of the group, as seen in the browser, to return.

Version

Introduced in version November 2026