We are pleased to announce that Aspose.CAD for Java 16.12.1 has been released. 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 Java 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 OCR Metered class
com.aspose.cad.Metered metered = new com.aspose.cad.Metered();

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

// Get consumed qantity value before accessing API
double quantityOld = com.aspose.cad.Metered.getConsumptionQuantity();
System.out.println("Consumption quantity" + quantityOld);

// DO PROCESSING
//com.aspose.cad.fileformats.cad.CadImage image = 
//        (com.aspose.cad.fileformats.cad.CadImage)com.aspose.cad.Image.load("BlockRefDgn.dwg");


// Get consumed qantity value after accessing API
double quantity = com.aspose.cad.Metered.getConsumptionQuantity();
System.out.println("Consumption quantity" + quantity); 

Enhancements

Following enhancements have been introduced in this release.

  • Process of loading DWG file has been improved.

  • 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 Java 16.12.1 page in downloads section.

Aspose.CAD for Java Resources

The resources, you may need to accomplish your tasks: