Aspose.CAD  for Python

Python Conversion APIs for CAD and BIM files

Convert DXF, DWG, DWT, DGN, IFC, DWF, DWFX, STL, IGES, CF2, Collada(DAE), PLT, OBJ, SVG, DXB, FBX, U3D, 3DS, STP documents to raster and vector image formats including PDF without any CAD software.

  Download Free Trial

Aspose.CAD for Python is an advanced CAD and BIM drawings conversion API without any software dependencies. It allows developers the mpdification, conversion and export of DXF, DWG, DWT, DGN, IFC, DWF, DWFX, STL, IGES, CF2, Collada(DAE), PLT, OBJ, SVG, DXB, FBX, U3D, 3DS, STP files to vector and raster image formats. During the conversion process, developers can choose and convert specific layers and layouts as well as keep track of the file conversion process.

Advanced Python CAD Library Features

Current versions of DXF and DWG documents supported

AutoCAD documents conversion to PDF

AutoCAD files rendering to Raster images

Choose and convert specific layouts

Choose and convert specific layers

Track the document conversion process

DXF/DWG to PDF Format Conversion

Aspose.CAD for Python API supports converting CAD drawings to PDF. Developers can easily adjust drawing options like draw color, background color, page size, scale mode and so on before conversion.

Save CAD in PDF format - Python

// load CAD for conversion

Image image = Image.load(dir + "template.dwg");

// create instance & set resultant page size

CadRasterizationOptions rasterizationOptions = new CadRasterizationOptions();

rasterizationOptions.setPageSize(new SizeF(1200, 1200));

// save PDF

PdfOptions pdfOptions = new PdfOptions();

pdfOptions.setVectorRasterizationOptions(rasterizationOptions); + "output.pdf", pdfOptions);

Render CAD Drawings in Raster Image Formats

Having a high fidelity rendering engine at its core, API can convert CAD and BIM drawings to various raster images including BMP, GIF, TIFF, PNG & JPEG without the need for any other software or library.


Support and Learning Resources


Aspose.CAD offers individual native APIs for other popular development environments as listed below: