How to Open DXF Files in SOLIDWORKS

How to Open DXF Files in SOLIDWORKS

SOLIDWORKS is one of the most widely used 3D CAD programs in engineering and manufacturing. Many SOLIDWORKS users still receive old 2D drawings, supplier outlines and flat patterns as DXF files. The good news is that SOLIDWORKS reads DXF well, and it gives you several ways to use the file.

This guide covers how to open a DXF in SOLIDWORKS, the options in the import wizard, how to turn the outline into a 3D part, and how to export clean DXF files back out for laser, waterjet and plasma cutting.

Three ways to use a DXF in SOLIDWORKS

  • As a 2D sketch in a new part. Best when you want to build a 3D part from the outline.
  • As a new SOLIDWORKS drawing. Best when you want to keep the DXF as a 2D drawing sheet, for reference or to update an old print.
  • Inserted into an existing sketch. Best when you want to add an outline to a part you are already working on.

Pick the one that fits your goal. The steps for each are below.

Check the DXF before importing

Open the DXF in our free online DXF viewer first. It does not upload the file, which matters for supplier and customer drawings.

  • Measure a known feature, such as a hole spacing or overall length.
  • Note the units shown in the status bar, if the file stores them.
  • Look at the layers. Note which ones hold the part geometry and which hold notes, borders and dimensions.
  • Press F to fit. If the part is tiny in a corner, there is a stray object far away.

Method 1: Open a DXF as a 2D sketch in a new part

  1. In SOLIDWORKS, choose File, then Open.
  2. Set the file type to DXF (*.dxf) or DWG/DXF.
  3. Select the file and click Open. The DXF/DWG Import wizard starts.
  4. Choose Import to a new part as, then 2D sketch.
  5. Click Next.
  6. On the drawing layers page, pick the layers to import. Untick layers for notes, borders and dimensions.
  7. Set the units to match the drawing. This step decides the size of your part.
  8. Check the option to merge points that are very close together. It helps close tiny gaps.
  9. Click Finish.

SOLIDWORKS creates a new part with your DXF as a sketch on a plane. Now you can extrude it.

Method 2: Open a DXF as a SOLIDWORKS drawing

  1. Choose File, then Open, and pick the DXF.
  2. In the import wizard, choose Create new SOLIDWORKS drawing.
  3. Pick whether to convert the content to SOLIDWORKS entities or embed it as a sheet. Converting lets you edit the lines. Embedding keeps it as a picture of the DXF.
  4. Follow the steps to pick layers, units and the sheet size.
  5. Click Finish.

This is useful when you need to update an old 2D print or use it as a reference sheet next to a new 3D model.

Method 3: Insert a DXF into an existing sketch

  1. Open your part and start or edit a sketch on the face or plane you want.
  2. Use the insert command for DXF/DWG, or drag the DXF file from your folder into the open sketch.
  3. The import wizard opens. Pick the layers and units.
  4. Position the geometry. You can move and rotate it before you finish.

This is handy for adding a logo outline, a hole pattern from a supplier or a cut profile onto an existing part.

Turn the sketch into a 3D part

  1. Select the imported sketch.
  2. Click Extruded Boss/Base.
  3. Pick the contours to extrude if SOLIDWORKS asks.
  4. Set the depth, such as the plate thickness.
  5. Click OK.

SOLIDWORKS needs closed contours to make a solid. If the extrude fails or gives an error about open contours, the sketch has gaps or overlaps.

Repair the sketch

SOLIDWORKS includes a Repair Sketch tool in the sketch tools menu. It finds and fixes tiny gaps, overlaps and duplicate lines. Run it on every imported sketch before you extrude. If it cannot fix everything, it highlights the problem spots so you can zoom in and fix them by hand.

Fully define if needed

Imported sketches are not dimensioned or constrained. That is fine for a simple part. If you plan to change the part later, add key dimensions and fix the sketch to the origin. This keeps it from moving when you edit.

How to export a DXF from SOLIDWORKS

Laser, waterjet and plasma shops usually want a DXF of each flat part. SOLIDWORKS makes this easy.

Export a face of a part

  1. Open the part.
  2. Right-click the flat face you want to cut.
  3. Choose Export to DXF/DWG.
  4. Pick a location and file name.
  5. In the options, choose the export type, such as the selected face, and preview the result.
  6. Remove any extra entities in the preview, then save.

Export a sheet metal flat pattern

  1. Open the sheet metal part.
  2. Right-click the flat pattern in the feature tree, or the part, and choose Export to DXF/DWG.
  3. Choose Sheet metal as the export type.
  4. Pick what to include: outer geometry, holes, bend lines, forming tools or sketches. Most shops want the geometry and maybe the bend lines on a separate layer.
  5. Save.

Pick the right DXF version and units

In the SOLIDWORKS export options, you can set the DXF version and the output units. Use millimeters or inches to match your shop. For older cutting software, pick an older version such as R12 or 2000. Read more about versions in what is a DXF file.

Check the exported DXF

Open the new DXF in our online DXF viewer. Measure the overall size and a hole spacing. Check the layers for bend lines or stray sketch lines. A quick check before sending prevents a wrong cut and a remake.

Common SOLIDWORKS DXF problems

The part is the wrong size

The import units were wrong. Delete the part and import again with the right units. Use the measurement from the viewer to confirm.

Open contours error on extrude

Run Repair Sketch. Then zoom in on any highlighted spots to close gaps or delete overlaps.

Too much clutter in the sketch

You imported every layer. Undo and import again, unticking text, dimension and border layers.

The import fails

The file may be binary, damaged or a renamed DWG. See DXF file not opening and how to convert DWG to DXF.

Splines are messy

Some DXF exports turn smooth curves into many tiny segments or rough splines. Redraw key curves with arcs if accuracy matters.

Real example: a supplier bracket

A machine builder gets a DXF of a mounting bracket from a supplier. They need a 3D model to check fit in their assembly.

  1. They open the DXF in a viewer and measure the hole spacing at 80 mm.
  2. In SOLIDWORKS, they open the DXF as a 2D sketch in a new part, import only the geometry layer, and set units to millimeters.
  3. They run Repair Sketch, which closes two tiny gaps.
  4. They extrude the sketch 5 mm, the plate thickness on the supplier’s note.
  5. They measure the holes in SOLIDWORKS. 80 mm, a match.
  6. They insert the bracket into their assembly and check for clashes.

Fifteen minutes later they know the bracket fits, without waiting for the supplier to send a 3D file.

Best practices for DXF files in a SOLIDWORKS shop

  • Keep one DXF per part, named with the part number, material and thickness.
  • Put bend lines and etch marks on their own layers with clear names.
  • Export from the flat pattern, not from a drawing view, to avoid scale mistakes.
  • Always open the exported file in a viewer before it leaves your desk.
  • Store DXF exports next to the part file, so you can regenerate them when the design changes.

These habits save time every week, especially when one change to a part means sending new cut files to a supplier.

Viewing DXF files without SOLIDWORKS

Not everyone on a team has a SOLIDWORKS seat. For quick checks, a free viewer is enough. The free eDrawings Viewer from the SOLIDWORKS team opens DXF and DWG files on Windows and Mac. Our online DXF viewer works in any browser with no install. See view DXF without AutoCAD for more free options.

Frequently asked questions

Can SOLIDWORKS open DWG files too?

Yes. The same import wizard handles DWG and DXF.

Why did my DXF import as a drawing, not a part?

You picked the drawing option in the wizard. Open it again and choose to import to a new part as a 2D sketch.

Which DXF version should I export for laser cutting?

2000 or newer works for most shops. Some older systems need R12.

Should I include bend lines in a flat pattern DXF?

Ask your shop. Many want them on a separate layer so they can turn them off for cutting.

Can I use the DXF in Fusion instead?

Yes. See our guide to import DXF into Fusion 360.

Check your DXF before you open it

Open the file in our free DXF viewer first. Measure a feature, check the layers and spot stray objects. Then import it into SOLIDWORKS with confidence.

Similar Posts