How to Open a DXF in AutoCAD (Open vs Insert)

How to Open a DXF in AutoCAD (Open vs Insert)

AutoCAD created the DXF format, so it reads DXF files better than anything else. But there is more than one way to bring a DXF into AutoCAD, and the right one depends on what you want to do. Do you want to work on the file itself, or add it to another drawing? This guide covers both, plus how to clean up the file and save it back as DXF.

Open or insert: what is the difference?

Method What happens Use it when
Open The DXF opens as its own drawing. You want to view, edit or convert the DXF itself.
Insert as a block The DXF is added to your current drawing as one block. You want a supplier part, logo or detail inside another drawing.
Copy and paste Selected objects move from the DXF into your drawing. You only need part of the DXF.

Before you start: a quick check

Open the DXF in our free online DXF viewer if you are not at your AutoCAD machine yet. It runs in a browser and does not upload the file. Measure a known feature and check the layers. That way you know what to expect, and you can spot a broken file before you waste time on it.

Method 1: Open a DXF in AutoCAD

  1. Type OPEN and press Enter, or click the Open icon.
  2. In the Files of type list, choose DXF (*.dxf).
  3. Select the file and click Open.

You can also drag a DXF file onto the AutoCAD title bar or the empty area next to the drawing tabs. Dropping it inside a drawing window does something different, explained below.

The DXFIN command

Typing DXFIN also opens a DXF. In a new, empty drawing it brings the whole DXF in. It is mostly used in scripts and older workflows.

Missing font warnings

If the DXF uses fonts you do not have, AutoCAD may ask you to pick a replacement. Choose a standard SHX font, such as simplex, or ignore the warning. The text will still show with a similar font.

Method 2: Insert a DXF as a block

Inserting is great for adding standard parts, logos, title blocks or supplier outlines to your drawing.

  1. Open the drawing you want to add the DXF to.
  2. Type INSERT and press Enter. In newer versions this opens the Blocks palette.
  3. Use the browse button to find the file. Set the file type to DXF if needed.
  4. Choose the insertion point, scale and rotation.
  5. Click in the drawing to place it.

The whole DXF becomes a single block. You can move, copy and scale it as one object. To edit it, use BEDIT or explode it.

Some versions do not list DXF files in the insert browser. If yours does not, open the DXF, save it as a DWG, and insert that DWG instead. The same goes for external references. Attach a DWG copy rather than the DXF.

Drag and drop into a drawing

Dragging a DXF file into an open drawing window also inserts it as a block. AutoCAD asks for the insertion point, scale and rotation.

Method 3: Copy only what you need

  1. Open the DXF in its own tab.
  2. Select the objects you want.
  3. Press Ctrl, Shift and C to copy with a base point. Click a point you can find again, such as a corner.
  4. Switch to your drawing.
  5. Press Ctrl and V and click the matching point.

This keeps your drawing clean, because you only bring in the parts you need. Layers come along with the objects.

Check units and scale

Units are the most common source of trouble. A DXF drawn in inches pasted into a millimeter drawing will be 25.4 times too small.

  • Type UNITS in each drawing to see the insertion units.
  • Use the DIST command or the Measure tool on a known feature.
  • If the size is off, use the SCALE command with a factor of 25.4 or 1/25.4.

When inserting blocks, AutoCAD can scale them for you if both drawings have their insertion units set correctly.

Clean up the DXF

DXF files from other programs often need tidying. These commands help.

  • AUDIT finds and fixes errors in the drawing database.
  • PURGE removes unused layers, blocks, styles and line types.
  • OVERKILL deletes duplicate and overlapping lines. It is very useful before sending a file to a laser or CNC shop.
  • ZOOM, then Extents shows everything in the drawing, including stray objects far away. Delete them.
  • JOIN combines touching lines and arcs into one polyline.

If a DXF will not open at all, try the RECOVER command. It can rescue many damaged files. See DXF file not opening for other causes.

How to save a drawing as DXF in AutoCAD

  1. Type SAVEAS or use the Save As menu.
  2. In the Files of type list, choose a DXF version, such as AutoCAD 2018 DXF, 2013 DXF, 2010 DXF, 2000 DXF or R12 DXF.
  3. Click Tools, then Options in the save dialog if you want to change DXF settings.
  4. Click Save.

DXF save options

  • Format: ASCII or binary. Choose ASCII unless you are sure the receiver reads binary.
  • Decimal places of accuracy: the default of 16 is plenty. Lower values make smaller files but less precise coordinates.
  • Select objects: lets you save only some objects to the DXF.

Which version should you choose?

For laser, CNC and plasma shops, 2000 or 2004 is a safe choice. For very old machine software, use R12. For other AutoCAD users, match their version. Our guide on DXF vs DWG explains when to send each format, and our guide on how to convert DWG to DXF covers batch options.

Real example: a supplier part in an assembly drawing

A designer is drawing a control panel layout. The switch supplier provides a DXF of the panel cut out for each switch.

  1. She checks the DXF in a viewer and measures the cut out at 22.3 mm, as listed in the catalog.
  2. In AutoCAD, she opens the DXF, runs OVERKILL and PURGE, and saves it as a DWG block file.
  3. In her panel drawing, she inserts the block at each switch position with the Blocks palette.
  4. She measures one cut out with DIST. It reads 22.3 mm, so the units are right.
  5. For the laser shop, she saves the panel as AutoCAD 2000 DXF with only the cut layer turned on.
  6. She checks the final DXF in the online viewer before sending it.

Using AutoCAD LT

AutoCAD LT opens, inserts and saves DXF files the same way as full AutoCAD. The commands in this guide work in LT too. If you do not have either, free tools can open DXF files as well. See view DXF without AutoCAD.

DXF files from other programs

A DXF made in AutoCAD opens cleanly. Files from other programs often need more care. Here is what to expect.

  • From Illustrator or Inkscape: curves may arrive as many short lines or splines. Scale may be in points or pixels, not millimeters. Measure a known feature and scale to fix it.
  • From SketchUp or Revit: layers may have long category names. Blocks may be nested deeply. Use the layer manager to sort it out.
  • From laser or CNC software: files are often simple polylines on one layer. They usually open fine, but check for doubled lines with OVERKILL.
  • From survey and GIS software: coordinates may be very large real world numbers. Zoom extents to find the drawing.

Whatever the source, the same three steps help. Check the size, clean with AUDIT, PURGE and OVERKILL, then save a fresh copy.

Good habits for DXF files in AutoCAD

  • Keep incoming DXF files in a separate folder, untouched, and work on copies.
  • Run AUDIT and PURGE on every outside file before using it.
  • Set insertion units in your templates so blocks scale correctly.
  • Use clear layer names for cut, engrave and note layers when you save DXF for a shop.
  • Check every outgoing DXF in a viewer before it leaves your desk.

Open a DXF on a computer without AutoCAD

Sometimes you need to look at a DXF on a laptop that has no AutoCAD license. A browser viewer handles this in seconds. You can zoom, measure and toggle layers, then do the real work later at your CAD station.

Frequently asked questions

Can AutoCAD open any DXF file?

AutoCAD opens almost every DXF, including binary ones. Very damaged files may need RECOVER.

Why is my inserted DXF the wrong size?

The insertion units of the DXF and your drawing do not match. Set them with UNITS, or scale the block by 25.4.

Can I attach a DXF as an xref?

Save it as a DWG first, then attach the DWG.

How do I remove duplicate lines?

Use OVERKILL. It deletes duplicate and overlapping lines and arcs.

What is the difference between DXF and DWG?

DWG is the native AutoCAD format. DXF is the open exchange format. See DXF vs DWG.

Check your DXF in seconds

Away from your AutoCAD machine? Open the file in our free DXF viewer. You can measure, check layers and spot problems from any device, before you even open AutoCAD.

Similar Posts