SketchGroups.itemByName Method

Parent Object: SketchGroups
Defined in namespace "adsk::fusion" and the header file is <Fusion/Components/SketchGroups.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

"sketchGroups_var" is a variable referencing a SketchGroups object.

returnValue = sketchGroups_var.itemByName(name)
"sketchGroups_var" is a variable referencing a SketchGroups object.

#include <Fusion/Components/SketchGroups.h>

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

returnValue = sketchGroups_var.itemByName(name);

Return Value

Type Description
SketchGroup[] 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