DocumentToolLibrary.toolsBySetupOrFolder Method

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

Description

Returns all tools used in a given setup or folder. Given setup or folder must belong to the document of the DocumentToolLibrary. Raises an error if given operation is not in the document.

Syntax

"documentToolLibrary_var" is a variable referencing a DocumentToolLibrary object.
returnValue = documentToolLibrary_var.toolsBySetupOrFolder(setupOrFolder)
"documentToolLibrary_var" is a variable referencing a DocumentToolLibrary object.

#include <Cam/Tools/DocumentToolLibrary.h>

returnValue = documentToolLibrary_var->toolsBySetupOrFolder(setupOrFolder);

Return Value

Type Description
Tool[] Returns tools used by a specific setup or folder.

Parameters

Name Type Description
setupOrFolder OperationBase The setup or folder to get tools from. Must belong to the document.

Version

Introduced in version July 2023