StockMaterial.name Property

Parent Object: StockMaterial
Defined in namespace "adsk::cam" and the header file is <Cam/StockMaterials/StockMaterial.h>

Description

Gets and sets the name of the stock material.

Syntax

"stockMaterial_var" is a variable referencing a StockMaterial object.
# Get the value of the property.
propertyValue = stockMaterial_var.name

# Set the value of the property.
stockMaterial_var.name = propertyValue
"stockMaterial_var" Is a variable referencing a StockMaterial Object.
#include <Cam/StockMaterials/StockMaterial.h>

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

// Set the value of the property, where value_var is a string.
bool returnValue = stockMaterial_var->name(value_var);
"stockMaterial_var" Is a variable referencing a StockMaterial Object.
// Get the value of the property.
propertyValue = stockMaterial_var.name;

// Set the value of the property.
stockMaterial_var.name = propertyValue;

Property Value

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

Version

Introduced in version September 2024