StockMaterial.toJson Method

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

Description

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

Syntax

"stockMaterial_var" is a variable referencing a StockMaterial object.

returnValue = stockMaterial_var.toJson()
"stockMaterial_var" is a variable referencing a StockMaterial object.

#include <Cam/StockMaterials/StockMaterial.h>

returnValue = stockMaterial_var->toJson();
"stockMaterial_var" is a variable referencing a StockMaterial object.

returnValue = stockMaterial_var.toJson();

Return Value

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

Version

Introduced in version September 2024