ToolLibraries.toolLibraryAtURL Method

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

Description

Get a specific ToolLibrary by given URL. Returns null, if the URL does not exist.

Syntax

"toolLibraries_var" is a variable referencing a ToolLibraries object.
returnValue = toolLibraries_var.toolLibraryAtURL(url)
"toolLibraries_var" is a variable referencing a ToolLibraries object.

#include <Cam/Tools/ToolLibraries.h>

returnValue = toolLibraries_var->toolLibraryAtURL(url);

Return Value

Type Description
ToolLibrary Returns the ToolLibrary for a valid URL, returns null otherwise.

Parameters

Name Type Description
url URL The URL to the ToolLibrary to be loaded.

Samples

Name Description
Basic Milling Workflow Sample Demonstrates the creation of a basic milling workflow from script

Demonstrates creating a setup, searching tool library to retrieve a tool, create a couple of machining operations and a NC program, ready for post processing.

Use the 2D Strategies model from the Fusion CAM Samples folder as your CAD model.

Hole and Pocket Recognition API Sample

This sample script demonstrates three different methods for feature recognition: one for holes and two for pockets.

The script starts by creating a simple component which is then used to demonstrate the three methods. After the features are recognised they are coloured and milling and drilling operations are created for each feature.

RecognizedHoleGroup returns a list of BRepFaces that can be used as selections for the drilling operation. RecognizedPocket and PocketRecognitionSelection do not return BRepFaces, and their output needs additional processing before the output can be used for creating machining operations.

The sample script demonstrates a couple of different methods, including finding the pocket BRepFaces and creating sketches from the recognized pockets.

This script works only if the Manufacturing Extension is active.

Manufacturing Workflow API Sample Manufacturing Workflow API Sample

This sample script starts by creating a simple component which is then used to describe a milling workflow. It creates a setup, a few operations, pick some tools from a Fusion sample tool library using loops and queries and ends up post-processing the operations out using an NC Program.

Wood Routing Workflow Sample This script demonstrates routing wood panels.

When running the sample, it assumes you have an open design containing one or more "panels" oriented flat in the X-Y plane. The script creates a setup and a 2D contour operation with tabs to route the panels from a standard sheet.

Version

Introduced in version April 2023