Skip to content

Import DXF

Imports a DXF file's geometry into the sketch, locked in place so it needs no dimensions.

Sketch tab > Import DXF (in the Sketch Picture group), or Import DXF… in the Imported Geometry section of the sketch's property panel. You can also drag a DXF file from Explorer onto the graphics area while a sketch is open. A sketch must be open.

Importing a DXF File

  1. Open a sketch.
  2. Click Import DXF and select a DXF file, or drop one on the graphics area.
  3. The file's geometry is added to the sketch, locked, and the view zooms to it. Its page opens.
  4. Check the units and layers, place it, and scale it if needed.
  5. Click OK or press Enter.

Everything done on the page is one undo step. Cancel or Esc removes the geometry just imported.

What Is Imported

DXF entity In the sketch
LINE Line
ARC, CIRCLE Arc, circle
LWPOLYLINE, POLYLINE Lines and arcs (bulges become arcs)
ELLIPSE Ellipse or partial ellipse
SPLINE Spline through points on the curve, within 0.001 mm. A spline given only by fit points goes through them
POINT Point
INSERT The block's contents, placed, rotated, scaled and mirrored as inserted. Arrays of blocks are expanded

Dimensions, text, hatches and other entities are not imported; the page lists how many were left out. Only model space is read. Geometry outside the drawing's XY plane is flattened onto it, and the page says so. ASCII DXF of any version can be read; binary DXF can't.

Ends closer than 0.001 mm are joined into one point, so closed outlines make profiles. The same geometry drawn twice is imported once.

Locked Geometry

Imported geometry is locked by default: its points are fixed and its circles' radii held, so it is fully defined without dimensions and can be extruded as it is. Geometry you draw can snap to it and is held where it meets it.

To edit it, unlock it:

  • The checkbox beside the import on the sketch page locks or unlocks all of it. Lock imported geometry on its page does the same.
  • To unlock only some of it, select those entities, then click the delete button beside Locked under Existing Relations. They leave the import and can be dragged and dimensioned; the rest stays locked.

Unlocked geometry is ordinary sketch geometry, under defined until you add relations and dimensions. Locking it again fixes it where it is now.

File

Shows the file's name, how many entities were imported, which entity types were left out, and how many were flattened. Shown while importing.

Units

File units
The unit one drawing unit stands for: millimeters, centimeters, meters, inches or feet. Read from the file ($INSUNITS) when it says. A file that doesn't is taken as millimeters, or inches when it is an imperial drawing. Shown while importing.

Layers

A checkbox for each layer that has geometry, with how many entities are on it. Clear a layer to leave out its geometry, such as a title block or centerlines. Layers that are off or frozen in the file start cleared. Shown while importing, for files with more than one layer.

Position

Origin X, Origin Y
Where the file's origin is in the sketch, in the part's units. By default it is on the sketch's origin, so the file's coordinates are kept.
Center on Sketch Origin
Moves the geometry so the middle of its extent is on the sketch's origin.
Move Point to Origin…
Click a point of the geometry, such as a hole's center or a corner; the geometry moves so that point is on the sketch's origin. Clicks snap to sketch points.

Scale From Two Points

  1. Click Place Points.
  2. Click two points whose distance apart you know, such as the ends of a dimensioned edge or two hole centers. Clicks snap to sketch points.
  3. Enter the Distance between them.
  4. Click Apply Scale.

The geometry scales about the first point, which stays where it is. Press Esc while placing the points to stop. The section also shows the current scale, in the part's units per file unit.

Lock

Lock imported geometry
Locks or unlocks all of the import's geometry.
Delete Imported Geometry
Removes the import's geometry from the sketch and closes the page. Shown when editing an import already in the sketch.

Imports on the Sketch Page

The sketch's property panel lists its imports under Imported Geometry:

  • The checkbox locks or unlocks the import.
  • Select selects all of its entities.
  • Edit opens its page, to move it or scale it from two points.
  • The delete button removes its geometry.

See Also