DXF/DWG Files (*.dxf, *.dwg Files)

You can import and export DXF/DWG files.

The DXF/DWG Import Wizard appears during most import operations. You can also insert DXF/DWG files into part documents.

You can copy and paste entities from an AutoCAD® DXF or DWG file into SOLIDWORKS part, assembly, and drawing documents.

Bitmaps stored in DXF/DWG files in AutoCAD's native bitmap format are not supported.

You can also copy entities and blocks from SOLIDWORKS drawings and paste them into 2D editors such as DraftSight by means of the clipboard.

The DXF/DWG translator supports the import and export of hole tables.


The DXF/DWG translator imports DXF or DWG files, including Mechanical Desktop files, as SOLIDWORKS part or drawing documents, according to the option settings in the DXF/DWG Import Wizard. This translator also imports DXF 3D files without the wizard. In a drawing document, you can import the geometry to the drawing sheet or the drawing sheet format. Entities in either paper space or model space are imported.

Imported entities can become SOLIDWORKS blocks.

When you import drawings, the most popular AutoCAD SHX or True Type fonts are supported, even though you may not have the fonts installed.

If you import a DXF or DWG file that contains a large number of blocks (more than 200), you are prompted to enable the Explode Blocks option. Explode the blocks to improve import performance.

The DXF/DWG translator imports:

  • AutoCAD Mechanical annotations, known as proxy entities, (such as surface finish symbols or GTOL frames) and automatically drawn objects (such as cams and springs) when you import DXF or DWG files as SOLIDWORKS drawing documents. The translator converts these imported items to equivalent SOLIDWORKS objects, or creates them as blocks of primitive geometry, as appropriate.
  • Associative and non-associative crosshatches as area hatches.
  • XREFs in AutoCAD DWG files.
  • DWG files with multiple sheets.
  • A file to a new part as a 2D sketch or as curves in 3D.
  • 3D solids.

When you import DWG files, there is a thumbnail image of the file in the Preview panel of the Open dialog box. Previews appear for DWG files created in SOLIDWORKS and AutoCAD. In AutoCAD, you must specify the bitmap preview option when you save the file. The Open dialog box saves the Preview state when you last opened a DWG file.

Data that does not belong to a viewport is imported to the drawing sheet. When you activate the drawing sheet, drawing sheet data becomes selectable. If any drawing views are active, you must lock sheet focus to select data in the drawing sheet.

The DXF/DWG translator alerts you to problems encountered when importing a DXF or DWG file.

You can import entire DWG file sheets in native format in SOLIDWORKS drawing sheets, which allows the direct display of the original DWG file entities inside SOLIDWORKS drawing documents. You can view, pan, zoom, and print these sheets. Select Embed as a sheet in native DXF/DWG format in the DXF/DWG Import Wizard.

You can import 2D DXF or DWG files as reference sketches.

You can import DXF and DWG files from AutoCAD 2004 and later that are password protected. The SOLIDWORKS translator detects the encrypted password and prompts you for the password. If you export the file back to DXF/DWG format, it is saved without encryption.


Exporting to DXF/DWG files is not supported for SpeedPak drawings.

The DXF/DWG translator exports only drawing documents as .dxf or .dwg files. When you export a drawing as a .dxf or .dwg file, the drawing's sheet scale is used for the new file. All entities (such as edges, annotations, and assembly components) on layers are exported to the assigned layer.

SOLIDWORKS crosshatch patterns are translated into AutoCAD hatch patterns when you export SOLIDWORKS documents as DXF or DWG files. The SOLIDWORKS software translates the SOLIDWORKS crosshatch patterns as non-associative hatch definitions, and preserves the layer and color of the original crosshatch. The SOLIDWORKS application also supports crosshatch export when you map layers with a mapping file.

You have the option to map only those items whose layers are not otherwise defined when you export SOLIDWORKS drawing documents as DXF or DWG files. All entity types that you can assign to AutoCAD layers through the mapping file support layering in the SOLIDWORKS drawing format.

The DXF/DWG translator supports line thickness, hidden sketches, and auto-centerlines. You can export custom line styles. However, on import, custom line styles in AutoCAD files are not recognized.

You can export colors to DXF/DWG files by layer and by block. Colors are mapped with True Colors for both import and export.

Sheet metal flat patterns. You can create .dxf files of sheet metal flat patterns directly from sheet metal part documents without flattening the model. The words Flat pattern are prepended to the file name.

  • Click File > Save As. 3DEXPERIENCE Users: If the Save As New dialog box appears, click Save to This PC. Select DXF (*.dxf) for File of type.
  • Right-click Flat-Pattern in the FeatureManager design tree and select Export Flat Pattern to DXF/DWG.

You can also export sheet metal entities.

Colors in exported sketches. When you save a part or drawing as a DWG or DXF file, sketch entities appear in the assigned sketch color in the exported file. The colors are also supported for sketches in flat patterns of sheet metal parts if you specify Flat pattern colors in Tools > Options > Document Properties > Sheet Metal MBD.