ToolBlock.attributes Property

Parent Object: ToolBlock

Derived from: Tool.attributes


Defined in namespace "adsk::cam" and the header file is <Cam/Tools/ToolBlock.h>

Description

Returns the collection of attributes associated with this tool. Attributes are arbitrary key-value pairs organized into groups that can be used to store custom metadata on a tool.

Syntax

"toolBlock_var" is a variable referencing a ToolBlock object.
# Get the value of the property.
propertyValue = toolBlock_var.attributes
"toolBlock_var" Is a variable referencing a ToolBlock Object.
#include <Cam/Tools/ToolBlock.h>

// Get the value of the property.
Attributes propertyValue = toolBlock_var->attributes();
"toolBlock_var" Is a variable referencing a ToolBlock Object.
// Get the value of the property.
propertyValue = toolBlock_var.attributes;

Property Value

This is a read only property whose value is an Attributes.

Version

Introduced in version July 2026