We are pleased to announce the release of Aspose.CAD for .NET 17.02. The major development in this release is the support for DWG 2007(AC1021) Format. This release supports determining the DWG external references and their file paths. The support for adjusting CAD drawing size has also been incorporated in this release.

Adjusting CAD Drawing Size

Aspose.CAD for .Net provides the UnitType enumeration to adjust the size of drawing during conversion of the CAD format. There are two ways to adjust the drawing size.

  • Automatic adjust size.

  • Adjust size using UnitType enumeration

UnitType enumeration gives the ability to adjust scaling when Width and Height properties are not set. Below provided code snippet demonstrate how to use UnitType.

// Path to source file
string sourceFilePath = "sample.dwg";
// Load a CAD drawing in an instance of Image
using (var image = Aspose.CAD.Image.Load(sourceFilePath))
    // Create an instance of BmpOptions class
    Aspose.CAD.ImageOptions.BmpOptions bmpOptions = new Aspose.CAD.ImageOptions.BmpOptions();

    // Create an instance of CadRasterizationOptions and set its various properties
    Aspose.CAD.ImageOptions.CadRasterizationOptions cadRasterizationOptions = new Aspose.CAD.ImageOptions.CadRasterizationOptions();
    bmpOptions.VectorRasterizationOptions = cadRasterizationOptions;
    cadRasterizationOptions.CenterDrawing = true;

    // Set the UnitType property
    cadRasterizationOptions.UnitType = Aspose.CAD.ImageOptions.UnitType.Centimenter;

    // Set the layouts property
    cadRasterizationOptions.Layouts = new string[] { "Model" };

    // Export layout to BMP format
    string outPath = fileName + ".bmp";
    image.Save(outPath, bmpOptions);


Following enhancements have been introduced in this release.

  • Processing of entity order for DWG format has been improved.

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

  • Process of exporting external raster images linked with DWG file has been improved.

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

Aspose.CAD for .NET Resources

The resources, you may need to accomplish your tasks: