FavoriteMaterials.add Method

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

Description

Adds an existing material to the Favorites list

Syntax

"favoriteMaterials_var" is a variable referencing a FavoriteMaterials object.
returnValue = favoriteMaterials_var.add(material)
"favoriteMaterials_var" is a variable referencing a FavoriteMaterials object.

#include <Core/Materials/FavoriteMaterials.h>

returnValue = favoriteMaterials_var->add(material);

Return Value

Type Description
Material Returns the Material added to the favorites list or null if the operation failed.

Parameters

Name Type Description
material Material The material to be added to the favorites list. This can come from a Library or from a Design.

Version

Introduced in version January 2016