StockMaterial.hardness Property

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

Description

Get and sets the hardness of the stock materials. NOTE: the hardness can be NaN if not set. and user can set the hardness to NaN.

Syntax

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

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

// Get the value of the property.
double propertyValue = stockMaterial_var->hardness();

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

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

Property Value

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

Version

Introduced in version November 2024