ToolBlock.geometry Property

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

Description

Get or set the geometry and attachment points for this tool block.

A Null Object represents a tool without any 3D data associated.

Syntax

"toolBlock_var" is a variable referencing a ToolBlock object.
# Get the value of the property.
propertyValue = toolBlock_var.geometry

# Set the value of the property.
toolBlock_var.geometry = propertyValue
"toolBlock_var" Is a variable referencing a ToolBlock Object.
#include <Cam/Tools/ToolBlock.h>

// Get the value of the property.
Ptr<AssemblyComponentGeometry> propertyValue = toolBlock_var->geometry();

// Set the value of the property, where value_var is an AssemblyComponentGeometry.
bool returnValue = toolBlock_var->geometry(value_var);
"toolBlock_var" Is a variable referencing a ToolBlock Object.
// Get the value of the property.
propertyValue = toolBlock_var.geometry;

// Set the value of the property.
toolBlock_var.geometry = propertyValue;

Property Value

This is a read/write property whose value is an AssemblyComponentGeometry.

Version

Introduced in version April 2026