# Convert CAD formats In this article, you will learn how to convert CAD documents to other formats or another CAD format with GroupDocs.Conversion for Java. ## About CAD file formats 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. ## Supported CAD file conversions {{< include file="/conversion/java/_includes/supported-conversions/cad.md" type="page" >}} ## Convert from CAD formats With [GroupDocs.Conversion](https://products.groupdocs.com/conversion/java) you can easily convert your CAD document into another file format. For example, a DWG to PDF conversion code snippet looks like this: {{< tabs "convert-cad-dwg-to-pdf">}} {{< tab "Java" >}} ```java import com.groupdocs.conversion.Converter; import com.groupdocs.conversion.options.convert.PdfConvertOptions; // Load the source DWG file Converter converter = new Converter("sample.dwg"); // Set the convert options for PDF format PdfConvertOptions options = new PdfConvertOptions(); // Convert to PDF format converter.convert("converted.pdf", options); ``` {{< /tab >}} {{< /tabs >}} 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. {{< alert style="info" >}} Refer to the [API reference](https://reference.groupdocs.com/conversion/java/groupdocs.conversion.options.convert) for more conversion options and customizations. {{< /alert >}} ## 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](https://products.groupdocs.com/conversion/java). {{< tabs "convert-cad-dwg-to-stl">}} {{< tab "Java" >}} ```java import com.groupdocs.conversion.Converter; import com.groupdocs.conversion.options.convert.CadConvertOptions; import com.groupdocs.conversion.filetypes.CadFileType; // Load the source DWG file Converter converter = new Converter("sample.dwg"); // Set the convert options for STL format CadConvertOptions options = new CadConvertOptions(); options.setFormat(CadFileType.Stl); // Convert to STL format converter.convert("converted.stl", options); ``` {{< /tab >}} {{< /tabs >}}