FavoriteAppearances.itemByName Method

Parent Object: FavoriteAppearances
Defined in namespace "adsk::core" and the header file is <Core/Materials/FavoriteAppearances.h>

Description

Returns the specified appearance using the name as seen in the user interface. This often isn't a reliable way of accessing a specific appearance because appearances are not required to be unique.

Syntax

"favoriteAppearances_var" is a variable referencing a FavoriteAppearances object.
returnValue = favoriteAppearances_var.itemByName(name)
"favoriteAppearances_var" is a variable referencing a FavoriteAppearances object.

#include <Core/Materials/FavoriteAppearances.h>

returnValue = favoriteAppearances_var->itemByName(name);

Return Value

Type Description
Appearance Returns the specified appearance or null if there isn't a matching name.

Parameters

Name Type Description
name string The name of the appearance to return,.

Version

Introduced in version August 2014