Exporting DGN AutoCAD

Exporting DGN AutoCAD Format To PDF

Aspose.CAD for .NET API has introduced the functionality to load a DGN AutoCAD file and convert it to PDF format. CadImage class serves the purpose.

You need to load an existing DGN file as CadImage. Create an instance of the CadRasterizationOptions** **class and set different properties. Create an instance of PdfOptions class and pass the CadRasterizationOptions** **instance. Now call the Save method of CadImage class instance.

Following is the code demonstration to convert/export DGN to PDF format.

Exporting DGN AutoCAD Format To Raster Image Format

Aspose.CAD for .NET API has introduced the functionality to load a DGN AutoCAD file and convert it to a raster image. CadImage class serves the purpose.

You need to load an existing DGN file as CadImage. Create an instance of the CadRasterizationOptions** **class and set different properties. Create an instance of JpegOptions** **class and pass the CadRasterizationOptions** **instance. Now call the Save method of CadImage class instance.

Following is the code demonstration to convert/export DGN to JPEG image.

3D entities support for DGN v7

Aspose.CAD for .NET API has introduced the functionality to load a DGN AutoCAD file and support 3D entities for DGN v7. CadImage class serves the purpose. Each DGN image supports 9 predefined views. It’s enumerated from 1 to 9. If view not defined on export, for multi-paged output formats (like PDF) all views will be exported, each on a separate page. 3D entities supported on DGN file format, as well as 2D. For this, VectorRasterizationOptions** **is used, TypeOfEntities is not used anymore for DGN format (both 2D and 3D supported simultaneously). 

The following is the sample code to look at supported DGN elements.