DocumentToolLibrary.createFromJson Method

Parent Object: DocumentToolLibrary
Defined in namespace "adsk::cam" and the header file is <Cam/Tools/DocumentToolLibrary.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.DocumentToolLibrary.createFromJson(json)
This is a static method.

#include <Cam/Tools/DocumentToolLibrary.h>

returnValue = adsk::cam::DocumentToolLibrary::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