• CAMAPI
  • API Documentation
Show / Hide Table of Contents
  • CAMAPI
  • Machining Tools Import
    • 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
  • API Documentation

Working with the tool library

SprutCAM X 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 X machining tool libraries are located in the "C:\ProgramData\SprutCAM Tech\SprutCAM X\Version 17\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