Material.name Property

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

Description

Returns the name of this Material. This is the name of the material as seen in the user interface. The name can only be edited if the material is in a Design or the favorites list.

Syntax

"material_var" is a variable referencing a Material object.

# Get the value of the property.
propertyValue = material_var.name

# Set the value of the property.
material_var.name = propertyValue
"material_var" is a variable referencing a Material object.
#include <Core/Materials/Material.h>

// Get the value of the property.
string propertyValue = material_var->name();

// Set the value of the property, where value_var is a string.
bool returnValue = material_var->name(value_var);

Property Value

This is a read/write property whose value is a string.

Version

Introduced in version August 2014