StockMaterial.createFromJson Method

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

Description

Creates a StockMaterial object from given JSON string.

Syntax

This is a static method.
returnValue = adsk.cam.StockMaterial.createFromJson(json)
This is a static method.
#include <Cam/StockMaterials/StockMaterial.h>

returnValue = adsk::cam::StockMaterial::createFromJson(json);
This is a static method.
returnValue = adsk.cam.StockMaterial.createFromJson(json);

Return Value

Type Description
StockMaterial Returns the newly created StockMaterial.

Parameters

Name Type Description
json string The JSON should fully define the StockMaterial and contain all StockMaterial parameters. If the JSON contains more than one StockMaterial, only the first StockMaterial is loaded.

Version

Introduced in version September 2024