Ikram ul Haq January 16, 20170 Comments

Metered licensing support in Aspose.CAD for .Net 16.12.1

Metered licensing support in Aspose.CAD for .Net 16.12.1

January 16, 2017
Share on FacebookTweet about this on TwitterShare on LinkedIn

We are pleased to announce the release of Aspose.CAD for .NET 16.12.1. The major development in this release is support for metered license mechanism. The new licensing mechanism will be used along with existing licensing method. Those customers who want to be billed based on the usage of the API features can use the metered licensing.

Metered Licensing

Aspose.CAD for .Net provides the functionality to use metered licensing mechanism. We have introduced Metered class in API to accomplish this job. The following sample code will demonstrate, how to calculate the consumed CAD API requests.



// Create an instance of CAD Metered class
Aspose.CAD.Metered metered = new Aspose.CAD.Metered();

// Access the setMeteredKey property and pass public and private keys as parameters
metered.SetMeteredKey("*****", "*****");

// Get metered data amount before calling API
decimal amountbefore = Aspose.CAD.Metered.GetConsumptionQuantity();

// Display information
Console.WriteLine("Amount Consumed Before: " + amountbefore.ToString());


// Do processing
//Aspose.CAD.FileFormats.Cad.CadImage image = (Aspose.CAD.FileFormats.Cad.CadImage)Aspose.CAD.Image.load("BlockRefDgn.dwg");


// Get metered data amount After calling API
decimal amountafter = Aspose.CAD.Metered.GetConsumptionQuantity();

// Display information
Console.WriteLine("Amount Consumed After: " + amountafter.ToString());

Enhancements

Following enhancements have been introduced in this release.

  • Process of converting DWG to PDF format has been improved.

  • Process of converting DWG to PNG format in multithreading has been improved.

To view a complete list of new features and to download the latest release, please visit Aspose.CAD for .NET 16.12.1 page in downloads section.

Aspose.CAD for .NET Resources

The resources, you may need to accomplish your tasks:

Leave a comment

Posted inAspose.CAD Product Family
 

Related Articles