Quick Access Search All Tools 🔗 Xrefs Help & Tool Guide

What Is a DGN File?

A .DGN file (Design file) is the native drawing format for MicroStation, made by Bentley Systems. Think of it as MicroStation's equivalent of AutoCAD's .DWG file — it stores all the geometry, annotations, levels (layers), and settings for a drawing.

The name comes from "Design" — Intergraph Corporation (later Bentley) created the format in the 1980s, and it has been the standard for MicroStation ever since.

The one-sentence version: A DGN file is to MicroStation what a DWG file is to AutoCAD. Same idea — different software, different format. If someone sends you a DGN file, it came from MicroStation or Bentley software.

You don't need MicroStation to work with DGN files. AutoCAD has had built-in DGN support since AutoCAD 2007, so you can attach, import, and even export DGN files without ever opening MicroStation.

Who Uses DGN Files — and Why Will You Encounter Them?

DGN files are most common in industries where government agencies set the CAD standard. If you work with any of the following, you will encounter DGN:

🏛 Government & DOT

  • State Departments of Transportation (CalTrans, TxDOT, FDOT, etc.)
  • Federal Highway Administration (FHWA)
  • US Army Corps of Engineers
  • Federal Transit Administration
  • Airport Authorities (FAA-related projects)
  • Port Authorities and waterway projects
  • Many municipalities and counties

🏗 Industries

  • Civil / transportation engineering firms with DOT clients
  • Bridge and highway design
  • Rail and transit (light rail, subway, commuter rail)
  • Utility companies (some use MicroStation for GIS/mapping)
  • Petrochemical and process plant design
  • Offshore oil & gas platforms
  • Mining and industrial facilities
For utility/electrical drafters: If your company does work for a state DOT or submits drawings to any state agency, there is a high chance you will receive DGN files as background/reference drawings for road crossings, permits, and right-of-way work.

DGN vs DWG — The Plain English Comparison

Both formats do the same job — store CAD drawings. The key difference is which software created them. Here's what that means in practice:

FeatureDGN (MicroStation)DWG (AutoCAD)
Made byBentley Systems (formerly Intergraph)Autodesk
SoftwareMicroStation, OpenRoads, OpenBridge, InRoadsAutoCAD, Civil 3D, Map 3D, Revit
File extension.dgn.dwg
Layers calledLevels (V7: 0–63 numbered · V8: named)Layers (always named)
Blocks calledCells (stored in cell libraries)Blocks (stored in the drawing)
Xrefs calledReference Files (attached models)Xrefs (external references)
Selecting objectsElement Selection, FenceSelection Window, Crossing Window
Polyline equivalentSmartLine, Complex ChainPolyline (PLINE)
Hatch equivalentPattern (area fill)Hatch (BHATCH)
CoordinatesUses Global Origin + Master/Sub-UnitsWorld Coordinate System (WCS)
Colors255-color table (similar to ACI but different)AutoCAD Color Index (ACI) 1–255 + True Color
3D supportYes — full 3D modelingYes — full 3D modeling
Market shareStrong in government, DOT, infrastructureDominant in AEC, utilities, commercial
Learning curveSteep — very different interface from AutoCADFamiliar (if you're already here)
Bottom line: You do NOT need to learn MicroStation to work with DGN files in AutoCAD. AutoCAD's built-in tools handle the most common scenarios — attaching a DGN as a background, importing geometry, and exporting to DGN. You only need MicroStation if you're actively editing a DGN file natively.

DGN Terminology Translator — MicroStation → AutoCAD

The biggest confusion when first encountering DGN files is the different names for the same concepts. Here's the complete translator:

MicroStation TermAutoCAD EquivalentNotes
LevelLayerV7 DGN: numbered 0–63 only. V8: unlimited named levels — much closer to AutoCAD layers
CellBlockCells are stored in separate Cell Library files (.cel) rather than embedded in the drawing
Cell Library (.cel)Block library / WBLOCK collectionA separate file containing reusable cell definitions
Reference FileXref (external reference)DGN files can reference other DGN files as background geometry
ModelLayout tab / ModelspaceA DGN file can contain multiple models (design models + sheet models)
Design ModelModel SpaceWhere the actual geometry lives, at real-world scale
Sheet ModelPaper Space / LayoutThe plotted sheet, with saved views (like viewports) placed on it
Saved ViewNamed ViewSaved camera position; in Sheet Model used like a viewport
FenceSelection Window / Crossing WindowA temporary boundary for selecting or cutting elements
AccuDrawDynamic Input (F12)Coordinate entry assistant — MicroStation's version of Dynamic Input
SmartLinePLINE (Polyline)Creates connected line/arc segments
Complex ChainOpen PolylineA connected open series of elements
Complex ShapeClosed Polyline / RegionA closed connected series of elements
B-spline CurveSpline (SPLINE)Free-form curve through control points
PatternHatch (BHATCH)Area fill with repeating patterns
Text NodeMtext or DtextMulti-line text with alignment origin
DimensionDimensionSame concept — different style settings
Line StyleLinetypeDGN has 8 built-in line styles + custom
Line WeightLineweightDGN uses weights 0–31 mapped to mm values
Active ColorCurrent Color (CECOLOR)The color used for new elements
Seed FileDrawing Template (.dwt)A blank DGN with predefined units, levels, and settings — used to start new drawings
DGN LibraryBlock Library / Tool PaletteA DGN file used to store shared resources
Raster ReferenceImage Attach (IMAGEATTACH)An attached image file as a background
Working UnitsDrawing Units (UNITS)Master Units + Sub-Units define the measurement system
ElementObject / EntityMicroStation calls everything an "element"
TagAttribute (ATTDEF)Text data attached to a cell
Project WorkspaceNetwork Template / ProfileCentralized standards settings for a project or firm

Opening a DGN File in AutoCAD — Your First Steps

When someone sends you a DGN file, you have two main options in AutoCAD: attach it as an underlay (best for using it as a background reference) or import it (converts geometry to native AutoCAD objects). Here's how to decide:

✓ Use DGNATTACH when:

  • You just need to trace over or reference the DGN geometry
  • You don't need to edit the DGN content
  • The DGN file will be updated by others and you want live changes
  • File size is a concern (underlay is just a reference, not geometry)
  • You're doing a quick background check

✓ Use DGNIMPORT when:

  • You need to edit specific elements from the DGN
  • You're building a permanent DWG from DGN data
  • You need to plot DGN geometry in a specific CTB/STB style
  • The DGN file is a one-time transfer (final as-built, etc.)
  • You need AutoCAD commands to work on those elements

DGNATTACH — Attaching a DGN File as an Underlay

Just like XATTACH attaches a DWG file, DGNATTACH attaches a DGN file as a non-editable underlay. The geometry displays in your drawing but stays in the original DGN file.

Step-by-Step: Attaching a DGN Underlay

1
Open the Insert tab or type the commandType DGNATTACH at the command line and press Enter. The Select DGN File dialog opens.
2
Browse to and select the DGN fileNavigate to the .dgn file. Click Open. The Attach DGN Underlay dialog appears.
3
Select the model to attachDGN files can contain multiple models. Select the Design Model (the main geometry model, not a sheet model) from the dropdown. If unsure, try "Default" or the first model listed.
4
Set conversion unitsThis is critical. Set the DGN master unit to match the AutoCAD drawing unit. Example: if the DGN is in feet and your DWG is in inches, set "1 Master Unit = 12 Drawing Units." If units match, leave at 1:1.
5
Specify insertion point, scale, and rotationUsually 0,0,0 for insertion point and 1 for scale unless you know the file needs adjustment. Click OK.
6
Control visibility with DGNLAYERSType DGNLAYERS to open the DGN Levels panel. You can turn individual DGN levels on/off without editing the original file — exactly like freezing layers.
; Attach a DGN file as underlay Command: DGNATTACH ; → Select DGN file dialog opens → pick your .dgn file ; → Attach DGN Underlay dialog → select model → set units → OK ; → Specify insertion point: 0,0 ; → Scale factor: 1 ; → Rotation angle: 0 ; Adjust display of attached DGN Command: DGNADJUST ; → Select underlay → set Fade, Contrast, Monochrome ; Control DGN level visibility Command: DGNLAYERS ; → DGN Levels panel opens → click bulb to toggle levels on/off ; Clip the DGN to a specific area Command: DGNCLIP ; → Select underlay → define rectangular or polygon boundary
Object snapping to DGN: By default, you can snap to DGN underlay geometry. If snapping slows down the drawing, type DGNSNAP and set to 0 to disable. Turn it back on with DGNSNAP 1.

DGNIMPORT — Converting DGN Geometry to AutoCAD Objects

DGNIMPORT reads a DGN file and creates native AutoCAD objects from the DGN elements. Lines become Lines, text becomes MText, levels become Layers. This is a one-time translation — the DGN file is not linked afterward.

Step-by-Step: Importing a DGN File

1
Type DGNIMPORTAt the command line, type DGNIMPORT and press Enter. The Import DGN File dialog opens.
2
Select the DGN fileBrowse to the .dgn file. Click Open. The Import DGN Settings dialog appears.
3
Choose the model to importSelect the Design Model (main geometry). You can import only one model at a time.
4
Set the conversion unitsSame as DGNATTACH — match DGN master units to your DWG units. This is the #1 source of scaling errors.
5
Choose what to importYou can import into the Current Space (Model or Paper) or into a new DWG. Check "External DGN references" to also pull in any reference files attached to the DGN.
6
Click OK and review resultsAutoCAD imports the geometry. Levels become Layers. Cells become Blocks. Check the command line for any warnings. Run ZOOM EXTENTS to see the imported content.
; Import DGN file content as AutoCAD objects Command: DGNIMPORT ; → Browse and select .dgn file → OK ; → Select model → set units → choose import options → OK ; AutoCAD creates layers from DGN levels and places geometry ; After import — check what came in Command: ZOOM E ; Zoom to extents Command: LAYER ; Check new layers created from DGN levels Command: PURGE ; Clean up unused blocks from cell translations
After import — always inspect: DGN import is rarely 100% clean. Check for exploded elements that should be blocks, text encoding issues (special characters), missing linestyles, and geometry that landed at incorrect scale. Run AUDIT and PURGE after any DGN import.

What Translates — and What Doesn't

DGN ElementAutoCAD ResultNotes
Line, Arc, Circle, EllipseLine, Arc, Circle, EllipseTranslates cleanly
SmartLine / Complex ChainPolyline or LinesMay explode into individual segments
Complex ShapeClosed Polyline or RegionUsually translates as polyline
B-spline CurveSplineTranslates cleanly
TextMText or TextFont may substitute; special characters may drop
DimensionDimensionStyle settings may need adjustment
Cell (instance)Block InsertCell definition becomes a Block
Pattern (hatch)HatchStandard patterns translate; custom may not
LevelLayerLevel name/number → Layer name
Line Style (custom)Continuous or approximate LinetypeCustom DGN line styles often become continuous
Reference FilesXrefs or embedded geometryOptionally included in import — may need separate import
Raster ReferenceNot importedAttached images are not transferred
Sheet ModelNot imported by defaultOnly the selected model is imported at a time

DGNEXPORT — Sending AutoCAD Drawings to DGN Format

When a client or agency requires you to deliver drawings in DGN format, use DGNEXPORT. AutoCAD translates the DWG content into a DGN V8 file.

; Export current DWG to DGN format Command: DGNEXPORT ; → Select DGN version: V7 or V8 (V8 is default and recommended) ; → Select seed file (optional — use DOT/agency seed if provided) ; → Set master units and sub-units to match the target system ; → Choose output file location → OK ; Or use the Application Menu: File → Export → MicroStation DGN
Seed files: Most agencies provide a standard DGN seed file that contains their required levels, fonts, and settings. Always use the client's seed file when exporting — it's the equivalent of starting from their .dwt template. The seed file URL or location will be specified in the project standards document.

Level Mapping — Controlling How DGN Levels Become AutoCAD Layers

By default, AutoCAD translates DGN level names directly to AutoCAD layer names. But in practice — especially with V7 DGN files where levels are numbers (1, 2, 3...) — you often need to map DGN levels to specific AutoCAD layer names, colors, and linetypes. This is done with a .dgnmapping file.

The .dgnmapping File

A DGN mapping file is an XML file that tells AutoCAD how to translate between DGN and DWG properties during DGNIMPORT and DGNEXPORT. You create and manage mapping files with the DGNMAPPING command.

; Open the DGN Mapping Setup dialog Command: DGNMAPPING ; → Create new mapping set → name it (e.g., "CALTRANS_V7") ; → For each DGN level number, specify: ; · AutoCAD layer name ; · Color (ACI number) ; · Linetype ; · Lineweight ; → Save the .dgnmapping file ; → Set as active mapping before running DGNIMPORT or DGNEXPORT

Example Level Mapping Table (V7 DOT Standard)

DGN LevelDOT Use→ AutoCAD LayerColorLinetype
1Right of Way LineROW-LINE1 (Red)PHANTOM
2Existing CenterlineCL-EXIST3 (Green)CENTER
3Proposed CenterlineCL-PROP2 (Yellow)CENTER
5Existing Edge of PavementEP-EXIST7 (White)Continuous
10Existing Contours (Major)CONTOUR-MAJ4 (Cyan)Continuous
11Existing Contours (Minor)CONTOUR-MIN4 (Cyan)Continuous
20Survey PointsSURVEY-PT6 (Magenta)Continuous
63Annotation / NotesANNO-TEXT7 (White)Continuous

Note: Actual DOT level standards vary by state and project. Always check the project's CAD standards manual for the official level-to-layer mapping.

DGN Units — Master Units and Sub-Units

DGN files use a two-tier unit system that is different from AutoCAD's single drawing-unit system. Getting this right is critical for correct scaling when importing or attaching DGN files.

How DGN Units Work

Master Units (MU) are the primary measurement unit — like feet or meters. Sub-Units (SU) are the subdivision of the master unit — like inches within feet, or millimeters within meters. Positional Units (PU) are the internal precision units that MicroStation uses for calculations.

Common DGN SetupMaster UnitSub-UnitPU per SUEquivalent AutoCAD INSUNITS
US Survey (Imperial)Feet (1 MU = 1 ft)Inches (12 SU = 1 MU)8000INSUNITS = 2 (feet) or 1 (inches)
Metric (Civil/DOT)Meters (1 MU = 1 m)Millimeters (1000 SU = 1 MU)1000INSUNITS = 6 (meters) or 4 (mm)
Decimal (Survey)FeetFeet (no subdivision)10000INSUNITS = 2 (feet)
Architectural (US)InchesFractional inches8000INSUNITS = 1 (inches)
The most common DGN import error is a scale factor of 12 (everything is 12× too big or too small). This happens when the DGN is in feet and AutoCAD expects inches — or vice versa. If your imported DGN geometry is dramatically wrong in size, check the units conversion setting in DGNIMPORT and set "1 Master Unit = 12 Drawing Units" (feet to inches) or "1 Master Unit = 0.0833 Drawing Units" (inches to feet).

DGN File Versions — V7 vs V8 vs V8i

There are two distinct DGN file formats. Knowing which version you have determines what features are available and how well AutoCAD can translate the content.

VersionMicroStation ReleaseMax LevelsLevel NamesAutoCAD Support
V7 (Pre-V8)MicroStation 95, SE, J (before 2004)63 numbered levelsNumbers only (1–63)Good — all basic geometry imports
V8MicroStation V8 (2004+)UnlimitedNamed levels (like AutoCAD layers)Excellent — closest to DWG format
V8iMicroStation V8i SS1–SS10UnlimitedNamed + level librariesVery good — same as V8 for basic use
CONNECTMicroStation CONNECT (2016+)UnlimitedNamed + model managementGood — use V8 export target in AutoCAD
How to tell which version you have: Right-click the DGN file in Windows Explorer → Properties. Or in AutoCAD, when you run DGNATTACH or DGNIMPORT, the dialog shows the file version. V8 and newer files will have named levels. V7 files will show numbered levels (1 through 63).

Key V7 Limitations You'll Hit

Multi-Model DGN Files

Unlike DWG files which have one Model Space and multiple Layout tabs, a single V8 DGN file can contain multiple completely separate models. A typical DOT project DGN might contain:

Model TypeContentsAutoCAD Equivalent
Design Model (3D)Real-world geometry at 1:1 scale, full 3DModel Space
Design Model (2D)2D plan geometry at 1:1 scaleModel Space
Sheet ModelThe plotted sheet at paper size, with saved views placed as viewportsPaper Space Layout
Drawing ModelDetail or callout views separate from the main designSeparate Layout or Detail Xref

When you DGNATTACH or DGNIMPORT, you select which model to bring in. You can only process one model at a time. For a DOT bridge project, you might need to separately import the Plan model, the Profile model, and the Cross-Section model — each stored as a separate model in the same DGN file.

Government / DOT Workflow — Working with DGN on Real Projects

State DOTs typically require that all roadway design drawings be prepared or delivered in MicroStation DGN format to their specific standards. Here's how that workflow typically intersects with AutoCAD:

Scenario 1: You Receive DOT Background DGN Files

The DOT provides you with base map DGN files (survey, existing road geometry, right-of-way) and you need to overlay your utility/structural design on them.

1
Get the project's CAD standards documentEvery DOT project has a CADD Procedures Manual or Standards document. Download or request it — it tells you the DGN level standards, seed files, and file naming conventions.
2
Identify the base DGN files and their coordinate systemDOT drawings are usually in State Plane Coordinates. Your utility drawings need to match. Confirm the coordinate system and datum with the project engineer.
3
Attach the DGN as underlay (DGNATTACH)Use DGNATTACH with unit conversion to match coordinate systems. Turn off irrelevant DGN levels with DGNLAYERS. Use as a reference for your design work.
4
Draw your work on top in AutoCADCreate your utility/structure design in the DWG on properly named layers. The DGN underlay is display-only — your work is all in the DWG.
5
Export to DGN for DOT submission (if required)If the DOT requires DGN submission: use DGNEXPORT with their seed file. Use DGNMAPPING to map your DWG layers to DOT-required DGN levels. Review the output in DWG (re-import) to verify before submitting.

Scenario 2: You Receive a DGN That Needs to Become a DWG

The project was done in MicroStation and you're taking it over in AutoCAD, or a subcontractor delivered DGN files and you need them as DWG for your drawing set.

1
Identify all DGN files and their modelsList all DGN files. For each, note how many models it contains (run DGNIMPORT and check the model dropdown to see all available models).
2
Set up a .dgnmapping fileIf the DGN uses V7 numbered levels, create a mapping file (DGNMAPPING) that maps levels to properly named AutoCAD layers per your drawing standards.
3
Import the DGN (DGNIMPORT)Import the Design Model into a new DWG. Set correct units. Apply your mapping file. Run ZOOM EXTENTS after import to confirm scale is correct.
4
Clean up the imported DWGRun AUDIT, PURGE (×3), and OVERKILL. Fix text encoding issues. Check for duplicate geometry. Rename layers per your standards. Verify dimensions still look correct.
5
Set up Paper Space if neededThe DGN Sheet Models don't import automatically. If you need the DOT's sheet layout, attach it as a DGN underlay while recreating your paper space setup, or use it as a reference only.

DGN System Variables

These system variables control how DGN underlays display and behave. They work like the equivalent DWF/PDF underlay variables.

DGNFRAME
0 = hidden · 1 = show, don't plot · 2 = show and plot
Controls whether the DGN underlay boundary frame is visible and/or plots. Default: 0. Set to 2 to plot the boundary, 1 to see it on screen only, 0 to hide it entirely.
DGNSNAP
0 = off · 1 = on
Controls whether object snaps work on DGN underlay geometry. Default: 1 (on). Turn off (0) if snapping to DGN is slowing your work — especially useful on large DOT base files with thousands of elements.
DGNFADE
0–80 (percent)
Fades the DGN underlay display. 0 = full intensity, 80 = very faint. Use 50–60 to make the DGN a subtle background so your work stands out. Per-underlay setting overrides this.
DGNMONOCHROME
0 = original colors · 1 = monochrome
Displays the DGN underlay in a single color (controlled by the layer color) rather than its original DGN colors. Useful when DGN colors clash with your drawing colors.
DGNCONTRAST
0–100
Adjusts contrast of the DGN underlay. 50 is default. Increase for better visibility on a white background; decrease for a lighter look. Per-underlay setting overrides this system variable.
DGNIMPORTMAX
0 = unlimited · n = max elements
Sets the maximum number of elements to import from a DGN file. Default: 0 (unlimited). Set a limit if you only need a portion of a very large DGN file and want to prevent import overload.

Common DGN Problems and Fixes

ProblemLikely CauseFix
DGN is 12× too big or too smallUnit mismatch: feet vs inchesRe-attach/re-import with "1 Master Unit = 12 Drawing Units" or 0.0833. Check DGN master unit setting.
DGN is 25.4× wrong scaleMetric/imperial mix: mm vs inchesSet "1 Master Unit = 25.4 Drawing Units" or 0.03937.
Geometry is at wrong location (miles away)State Plane Coordinates in DGNDOT files use State Plane coordinates — huge values. Re-attach with DGNCLIP to frame area of interest, or use DGNIMPORT and move the geometry to the origin.
Custom line styles show as continuousDGN custom line styles not supportedKnown limitation. Map DGN line styles to AutoCAD linetypes in the .dgnmapping file, or manually change after import.
Text appears garbled or missingDGN uses fonts not installed in AutoCADInstall the MicroStation font library or substitute fonts in the mapping file. RSC (Resource) font files from MicroStation may be needed.
Cells didn't convert to blocksV7 cell library (.cel) not accessibleThe cell library file must be in the same folder as the DGN. Request the .cel files from the sender. Without them, cells may import as geometry.
DGN levels not showing in DGNLAYERSModel has no named levelsV7 DGN levels are numbered. DGNLAYERS shows numbered levels — check "Show all levels" checkbox in the panel.
DGN underlay disappears when printingDGNFRAME = 1 or 0, not 2DGN underlays DO plot — the DGN geometry plots, not just the frame. If geometry doesn't plot, check the Plot options in Page Setup and make sure "Plot all objects" is selected.
Reference files in DGN not visibleDGN reference files not co-locatedThe DGN file references other DGN files. Get all referenced DGN files in the same directory. Then re-attach — AutoCAD resolves relative paths automatically.
DGNEXPORT output looks wrong in MicroStationNo seed file / wrong seed file usedAlways use the client's seed file when exporting for DOT submission. Request the project's .dgn seed file from the agency CAD coordinator.
Pro tip — round-trip test: Before delivering DGN files to a DOT, always do a round-trip: DGNEXPORT your DWG to DGN, then DGNIMPORT it back into a new DWG and compare. Any translation issues will be visible immediately. Never deliver DGN files to a government agency without verifying the output looks correct.