ToolBlock.toJson Method

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

Description

Generates and returns a JSON string that contains a description of this tool.

Syntax

"toolBlock_var" is a variable referencing a ToolBlock object.

returnValue = toolBlock_var.toJson()
"toolBlock_var" is a variable referencing a ToolBlock object.

#include <Cam/Tools/ToolBlock.h>

returnValue = toolBlock_var->toJson();
"toolBlock_var" is a variable referencing a ToolBlock object.

returnValue = toolBlock_var.toJson();

Return Value

Type Description
string Returns a JSON string that contains a description of this tool.

Version

Introduced in version April 2026