ToolLibrary.createFromJson Method

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

Description

Creates a ToolLibrary by given JSON-string. Raises an error if the given JSON is invalid.

Syntax

This is a static method.

returnValue = adsk.cam.ToolLibrary.createFromJson(json)
This is a static method.

#include <Cam/Tools/ToolLibrary.h>

returnValue = adsk::cam::ToolLibrary::createFromJson(json);

Return Value

Type Description
ToolLibrary Returns the newly created ToolLibrary.

Parameters

Name Type Description
json string The JSON contains all tools that should be added to the new ToolLibrary

Version

Introduced in version April 2023