-DGNATTACH (Command)

Attach a DGN underlay from the command line.

When you attach a DGN file as an underlay, you link that referenced file to the current drawing. Any changes to the referenced file are displayed in the current drawing when it is opened or reloaded.

Note: DGNATTACH is not limited to files with *.dgn extensions. It supports all DGN files, even those that do not have a .dgn extension.

The following prompts are displayed.

Tip: You can drag a DGN file into the drawing area to start the DGNATTACH command.
Path to DGN File to Attach

Enters the full path name to the DGN underlay file. The file name can include up to 255 characters and contain letters, digits, spaces, and any special characters not used by Microsoft Windows or this program.

Entering a tilde (~) displays the Select DGN File dialog box (a standard file selection dialog box).

To avoid errors when entering a file name, it is recommended that you specify both the DGN file and path as follows:

path namefilename.dgn

or

“path namefilename.dgn”

If you enter a valid DGN file name without a file extension, the program adds the extension and searches for the file.

Enter Name of Model or ?

Enter a model name. For a list of models, enter ?.

Enter Model(s) to list <*>

Lists the design models available in the DGN file in a separate text window.

Conversion Units

Matches the DWF file’s drawing units to the master units and sub-units specified in the DGN file. For example, if the DGN file has master units set to meters, and sub-units set to millimeters, and you want the DWG to be set to millimeters, select sub-units in the Attach DGN Underlay dialog box.

  • Master Units - Matches the DWG drawing units to the master units set in the DGN file.
  • Sub Units - Matches the DWG drawing units to the sub- units set in the DGN file.
Insertion Point

Specifies the insertion point for the selected DGN file. Enter the X, Y, and Z coordinates at the command prompt, or click onscreen.

Scale Factor

Specifies the scale factor of the selected DGN underlay and the scale factor units. You can enter a scale factor at the command prompt or click onscreen with the mouse.

If INSUNITS is set to “unitless” or if the underlay does not contain resolution information, the scale factor becomes the underlay width in AutoCAD units. If INSUNITS has a value such as millimeters, centimeters, inches, or feet, and the underlay has resolution information, the scale factor is applied after the true width of the underlay in AutoCAD units is determined.

Rotation

Specifies the rotation angle of the selected DGN underlay by entering an angle value at the command prompt or by clicking onscreen.