Hello World Project Files

These are all Visual Studio 2012 projects. Right-click to save

STEP-NC Hello World

To help you get started quickly, we have provided sample projects in several different languages, each of which uses the APT class to create a trivial STEP-NC file with a simple toolpath. You can take these samples and extend them as needed to serve your own needs.

There are versions in C#, Visual Basic, and C++. The console project is a command line version and the GUI project creates a form with a single button. The projects are configured to build 32bit and 64bit versions. We also have instructions for creating and configuring a project from scratch

The Visual Basic version of the sample program is shown below.

Sub Main()
    '' Create a trivial STEP-NC file
    Dim apt As STEPNCLib.AptStepMaker = New STEPNCLib.AptStepMaker
    apt.PartNo(test part)
    apt.DefineTool(0.25, 5.0, 1.0, 2.0, 3.0, 4.0, 5.0)
    apt.GoToXYZ(point001, 1.0, 12.0, 0.0)
    apt.GoToXYZ(point002, 1.0, 14.0, 0.0)
End Sub