CAD stands for Computer-Aided Design. The term CADD (for Computer-Aided Design and Drafting) is also used. It is used for a 3D graphics file format and may contain 2D or 3D designs. A CAD file is a digital file format of an object generated and used by CAD software. A CAD file contains a technical drawing, blueprint, schematic, or 3D rendering of an object. There may be other CAD tools that can be used to create, open, edit, and export these .cad files to more widely used CAD drawing file formats. Below, we are going to describe how to convert the most popular CAD file formats.
With GroupDocs.Conversion you can easily convert your CAD document into another file format. For example, a DWG to PDF conversion code snippet looks like this:
importcom.groupdocs.conversion.Converter;importcom.groupdocs.conversion.options.convert.PdfConvertOptions;...// Load the source DWG file
Converterconverter=newConverter("sample.dwg");// Set the convert options for PDF format
PdfConvertOptionsoptions=newCadConvertOptions();// Convert to PDF format
converter.convert("converted.pdf",options);
Put it simply - you just load a CAD file into the Converter class, select the desired output format and GroupDocs.Conversion does all the rest.
Note
Refer to the API reference for more conversion options and customizations.
Convert to another CAD format
On the other hand, converting your CAD files to another CAD format is also quite simple and natural.
The following code snippet shows how to convert a DWG document to STL in Java using GroupDocs.Conversion.
importcom.groupdocs.conversion.Converter;importcom.groupdocs.conversion.options.convert.CadConvertOptions;importcom.groupdocs.conversion.filetypes.CadFileType;...// Load the source DWG file
Converterconverter=newConverter("sample.dwg");// Set the convert options for STL format
CadConvertOptionsoptions=newCadConvertOptions();options.setFormat(CadFileType.Stl);// Convert to STL format
converter.convert("converted.stl",options);
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.