Components.itemByName Method

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

Description

Function that returns the specified component by name.

Syntax

"components_var" is a variable referencing a Components object.
returnValue = components_var.itemByName(name)
"components_var" is a variable referencing a Components object.

#include <Fusion/Components/Components.h>

returnValue = components_var->itemByName(name);

Return Value

Type Description
Component Returns the specified component or null if the name is not found.

Parameters

Name Type Description
name string The name of the component within the collection to return.

Version

Introduced in version January 2016