Skip to content

hypertherm/xpr-true-hole-client-net

Repository files navigation

XPR True Hole Conversion API

Use this XPR True Hole client for .NET in your CNC application to allow operators to quickly convert eligible holes in XPR parts into bolt-ready holes.

This client library uses the XPR True Hole Conversion API at https://developer.hypertherm.com


Before you can use this API, you need a Hypertherm Developer Portal account and a key.

Using NuGet Package Manager Console:

PM> Install-Package XprTrueHoleHttpClient

OR using the .NET Core tools:

> dotnet add package XprTrueHoleHttpClient

OR search for XprTrueHoleHttpClient in your IDE's NuGet package manager.

Basic use

The following examples use C#.

Pass file content

using Hypertherm.XprTrueHoleHttpClient;

// Create an instance of XprTrueHoleClient
XprTrueHoleClient client = new XprTrueHoleClient("<My Subscription Key>");

// Convert a non-True Hole XPR part into a True Hole XPR part
String trueHolePart = client.Convert("<My Settings String>", "<My XPR Part String>");

OR

Pass file path

using Hypertherm.XprTrueHoleHttpClient;

// Create an instance of XprTrueHoleClient
XprTrueHoleClient client = new XprTrueHoleClient("<My Subscription Key>");

// Convert a non-True Hole XPR part into a True Hole XPR by passing part file paths
String trueHolePart = client.Convert(File.ReadAllText("<My Settings File Path>"), File.ReadAllText("<My XPR Part File Path>"));

See the Hypertherm Developer Portal for more details.

About

Http client for accessing the XPR True Hole conversion API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages