Skip to end of metadata
Go to start of metadata

Using Aspose.CAD for .NET, developers can adjust the size of drawing during the conversion of the CAD format. This topic explains the approach to adjust the size automatically or manually using the UnitType enum of the Aspose.CAD.ImageOptions class.

Adjusting CAD drawing size

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

  1. Automatic size adjustment.
  2. Adjust size by using the UnitType enumeration of the Aspose.CAD.ImageOptions class

For automatically adjusting the size, developers do not need to provide the Width and Height properties of the CadRasterizationOptions class. Below provided code snippet is an example of automatic sizing.

The 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.

  • No labels