Skip to end of metadata
Go to start of metadata

Using Aspose.CAD for Java, developers can adjust the size of drawing during conversion of the CAD format. This topic explains the approach to auto adjust or adjust the size using UnitType enum of the com.aspose.cad.imageoptions class.

Adjusting CAD drawing size

Aspose.CAD for Java 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.

  1. Automatic adjust size
  2. Adjust size by using UnitType enumeration of the com.aspose.cad.imageoptions class

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

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.

Labels
  • No labels