Importing .DXF or .DWG Files
You can import .dxf and .dwg files to the SOLIDWORKS software by creating a new SOLIDWORKS drawing, or by importing the file as a sketch in a new part. You can also import a file in native format or import 2D DXF/DWG files as reference sketches.
- In SOLIDWORKS, click Open (Standard toolbar) or .
- In the Open dialog box, set Files of type to Dxf or Dwg, browse to select a file, and click Open.
- In the DXF/DWG Import Wizard, select an import method, and then click Next to access Drawing Layer Mapping and Document Settings.
- Click Finish on any of the three screens to import the file.
Importing Layers from .DWG or .DXF Files
When importing a .dwg or .dxf file as a 2D sketch for a part, you can create a new sketch for each layer in the file.
- Open a .dwg files with layers.
- In the DXF/DWG Import wizard, select Import to a new part as and 2D sketch.
- Click Next.
- Select Import each layer to a new sketch.
- Select other options and click Next or Finish.
Defining the Sketch Origin and Orientation on .DWG or .DXF Import
When importing a .dwg or .dxf file as a 2D sketch for a part, you can define the model origin and orientation.
- Open a .dwg file.
- In the DXF/DWG Import wizard, select Import to a new part as and 2D sketch.
- Click Next.
- Select part document options and click Next.
- Click Define Sketch Origin and click a point in the sketch preview to define the origin.
- Adjust the origin values and click Apply.
- To change the model orientation about the origin, select Rotate about the origin and enter the angle of rotation.
- Select other options and click Finish.
Filtering Sketch Entities on .DWG or .DXF Import
Repairing Sketches After .DWG or .DXF Import
When importing a .dwg or .dxf file as a 2D sketch for a part, you can launch the SOLIDWORKS Repair Sketch tool from the DXF/DWG Import Wizard to fix gap or overlap errors after import.
- Open a .dwg file.
- In the DXF/DWG Import wizard, select Import to a new part as and 2D sketch.
- Click Next.
- Select part document options and click Next.
- Select Run Repair Sketch.
- Select other options and click Finish.