• CAMAPI
  • API Documentation
Show / Hide Table of Contents
  • Supported programming languages
    • C#
    • Delphi
    • C++
  • Tutorial lessons
    • Lesson 1 - general introduction to the extension ideology using the example of a C# project
    • Lesson 2 - connecting the SDK to a Delphi project using the build system
    • Lesson 3 - connecting the SDK to a C++ project using the build system
    • Lesson 4 - demonstration of methods for unloading an extension during main application is running
    • Lesson 5 - Creating a custom operation
    • Lesson 6 - Creating a C# application to interact with geometry in main application
    • Lesson 7 - Creating a C# application to connect to main application for managing it
  • System extensions
    • Extension.Util.Common.Dll
    • Extension.Util.Common.Exe
  • Debugging of extensions
    • Debugging a .NET extension using Visual Studio Code
    • Debugging a Delphi extension using RAD Studio
    • Debugging a C++ extension using Visual Studio
  • Entry points
    • Utilitiy in main form
    • Executor for utility in main form
    • New item to the operation's context menu
  • 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
  • External applications
    • Connecting in a C# application
    • Connecting in a Delphi application
    • Connecting in a C++ application

Working with the tool library

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 machining tool libraries are located in the "C:\ProgramData[CAM_Path]\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 CAM interface
  • Preparing the machining tools import api environment
  • GitVerse: Machining tool import API examples

Continue to read:

  • Working with cutting tools
In this article
Back to top Generated by DocFX