The following CAD (Computer-Aided Design) formats are recognized:
Format
Extension
Description
DWG
.dwg
AutoCAD Drawing Database (binary format)
DXF
.dxf
Drawing Exchange Format (ASCII/binary)
DWF
.dwf
Design Web Format (compressed 2D/3D)
DWFX
.dwfx
Design Web Format XPS
DWT
.dwt
AutoCAD Drawing Template
DGN
.dgn
MicroStation Design File
IFC
.ifc
Industry Foundation Classes (BIM)
STL
.stl
Stereolithography (3D printing)
PLT
.plt
HPGL Plot File
IGS
.igs
IGES Drawing File
CF2
.cf2
Common File Format (3D package designs)
Properties
Format - Specifies the desired CAD file format. Available options are: Dwg, Dxf, Dwf, Dwfx, Dwt, Dgn, Ifc, Stl, Plt, Igs, Cf2.
PageSize - Sets the page size (A3, A4, Letter, etc.) for the output document.
PageWidth - Sets custom page width in points. When set, PageSize automatically changes to Custom.
PageHeight - Sets custom page height in points. When set, PageSize automatically changes to Custom.
PageNumber - Specifies the starting page number for conversion.
PagesCount - Specifies the number of pages to convert.
API Structure
The following example shows the API structure for CadConvertOptions:
usingGroupDocs.Conversion.Options.Convert;usingGroupDocs.Conversion.FileTypes;// Create options objectCadConvertOptionsoptions=newCadConvertOptions{Format=CadFileType.Dwg,PageSize=GroupDocs.Conversion.Options.Convert.PageSize.A4,PageNumber=1,// Starting pagePagesCount=10// Number of pages to process};
Conversion Examples
CadConvertOptions supports conversion between CAD formats. The following examples demonstrate common conversions.
DWG to DXF
Convert an AutoCAD DWG file to DXF (Drawing Exchange Format):
usingGroupDocs.Conversion;usingGroupDocs.Conversion.Options.Convert;usingGroupDocs.Conversion.FileTypes;stringsourceFile="floor-plan.dwg";stringoutputFile="floor-plan-custom.dxf";using(varconverter=newConverter(sourceFile)){varoptions=newCadConvertOptions{Format=CadFileType.Dxf,PageWidth=800,// Width in pointsPageHeight=600// Height in points};converter.Convert(outputFile,options);}
Format Support Notes
CAD to CAD conversions are supported for select format combinations:
DWG → DXF, DWF
DGN → DXF, DWF
DWT → DXF, DWF
STL → DXF, DWF (limited support)
Other CAD formats → DXF, DWF (varies by format)
Conversions from non-CAD formats (PDF, Word, Excel) to CAD formats are not supported.