• 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

Creating a C# application to connect to SprutCAM for managing it

Objectives

  • Create a separate application in C# to interact with SprutCAM.

Practical part

  • Open the repository in our GitVerse account and clone it.
  • Find the directory ApplicationEmptyNet - this is what you will base your new application on.
  • Open project ApplicationEmptyNet/project/main/ApplicationEmptyNet.csproj.
  • Pay attention to:
    • CamHelper singleton, which connects to any found SprutCAM instance;
  • Modify MainWindow.xaml.cs (optional). You can write your own code using the API - there are no restrictions. The example is kept as simple as possible to demonstrate the overall process of creating a separate application.
  • Run example;
  • Run SprutCAM separately;
  • Press Open project, choose any project from examples;
  • Ensure that the project you selected has opened in SprutCAM.
In this article
Back to top Generated by DocFX