Featured image of STL to DXF: How to Convert STL Files to DXF (AutoCAD)
Easier than It Sounds

STL to DXF: How to Convert STL Files to DXF (AutoCAD)

Picture of Darko Izgarevic
by Darko Izgarevic
Oct 5, 2019
Advertisement
Advertisement
Advertisement

Sometimes, you might find yourself in need of 2D versions of 3D designs, such as for water jet cutting. Learn more about converting STL to DXF, a popular 2D design format, in this quick guide.

Convert STL to DXF The Basics

A DXF file of a popular Thingiverse model.
A DXF file of a popular Thingiverse model. (Source: Darko Izgarevic / All3DP)

The main difference between STL and DXF files are in the dimensions used:

  • STL files contain a description of a 3D object without any representation of color, texture, or other common CAD model attributes. Coordinates for this type of file must be positive and there is no scale information. Many modeling tools are capable of exporting files in this format, which makes it a common file format for 3D designs. If you download a model from an online source, there’s a high chance it’ll be an STL file.
  • DXF (Drawing eXchange Format) files, on the other hand, store only two-dimensional coordinates. It was developed by Autodesk to allow data exchange between AutoCAD and various other programs.

Thus the conversion from STL to DXF is a conversion from 3D to 2D, which means we have to be extra careful.

Advertisement

Convert STL to DXF Option #1: Online Converters (Easy)

STL2DWG convertor allows quick conversion.
STL2DWG convertor allows quick conversion. (Source: Darko Izgarevic / All3DP)

Several online convertors exist that offer the ability to convert from STL to DXF. One such tool, despite the name, is STL2DWG Converter.

If we already have a model that is suitable for the transition to 2D, our only job is to upload a file, click “Convert”, and wait until the process is finished. The converted model will be ready to download and we can immediately use it.

Advertisement

Convert STL to DXF Option #2: Blender (Advanced)

Using Blender may be difficult for beginners, but it’s a powerful tool.
Using Blender may be difficult for beginners, but it’s a powerful tool. (Source: Darko Izgarevic / All3DP)

But sometimes, finer editing is necessary before conversion. And that’s where Blender comes in.

Blender is a free, open-source modeling tool with many applications such as animation, 3D modeling, and game design. Even if you’re familiar with Blender, this should be straightforward:

  1. Open Blender and delete the default box mesh.
  2. Go to File > Import > STL, then pick your STL file.
  3. Tap 1 on your numpad (try Fn + 7 if you don’t have one) to trigger front view. You might also need to zoom out to see the imported model.
  4. Pressing Tab will take us into Edit Mode. All vertices will be selected. We don’t need all of them, so press anywhere on the screen to deselect them.
  5. Then press Z to trigger Wireframe View.
  6. Select just the upper vertices, the ones not on the lower surface of the model.
  7. Press X and select “Vertices” to delete the selected upper vertices. Now we should have a flat model that looks like a DXF file.

Next, we need to export the file as a DXF:

  1. Go to Edit > Preferences > Add ons and find “Import-Export autocad dxf format”. Check the box next to it, and after closing the dialog box, the DXF export option will be available.
  2. To export your file, go to File > Export > AutoCAD DXF.
  3. The Save window will pop up. On the left, there will be more export options. Choose “Top View” for the projection, export the mesh as a “Polyline”, and type the name of the file.
  4. Click “Export” in the top right corner, and you’re done.

It may be intimidating at first, but after you do it the first time, it gets much easier. If you’re interested in mastering Blender, start with our in-depth guide.

(Lead image source: Darko Izgarevic / All3DP)

License: The text of "STL to DXF: How to Convert STL Files to DXF (AutoCAD)" by All3DP is licensed under a Creative Commons Attribution 4.0 International License.

Subscribe to updates from All3DP

You are subscribed to updates from All3DP

You can’t subscribe to updates from All3DP. Learn more… Subscribe

You can’t subscribe to updates from All3DP. Learn more…

Advertisement
Recommended for you
Topics
Advertisement
Advertisement
Advertisement