• Articles
  • Api Documentation
Show / Hide Table of Contents
  • The main page
  • Preparing the environment
  • Working with the tool library
  • Working with cutting tools
    • Milling Tools
    • Turning Tools
    • Custom Axial Shaped Tools
  • Working with the tool holder

Working with the tool library

SprutCAM machining tool libraries are created in .db files, where each library is an independent repository of a specific set of tools. By default, the standard SprutCAM machining tool libraries are located in the "C:\ProgramData\SprutCAM Tech\SprutCAM X\Version 16\Libraries\Tools" directory. Custom tool libraries can be created in any location. To create a new tool library or open an existing one, use the functions of the IMTI_MachiningToolsImportLibrary instance (importer):

//C#
//create a new tool storage
var tNewStorage = importer.CreateNewToolsStorage(@"D:\teststorage.db");
//open an existing tool storage
var tExstStorage = importer.OpenExistingToolsStorage(@"D:\teststorage.db");

To add a new machining tool item to the tool library, use the following function:

//C#
//the tool must be created and formed before adding it to the tool library
bool result = storage.AddToolItem(tool);

Helpful links:

  • How to manage tool libraries in the SprutCAM interface
  • Preparing the machining tools import api environment
  • GitHub: SprutCAM API examples

Continue to read:

  • Working with cutting tools
In This Article
Back to top Generated by DocFX