Skip to content

DGN Export

Description

The DGN Export node automates the process of exporting Bentley MicroStation (.DGN) files to output formats such as PDF, DWF, PLT, PNG, or JPG.
It supports both standard and advanced export settings and can publish using Bentley View or MicroStation through COM Interop.

This node is used to:

  • Convert engineering drawings into PDF for distribution or archival
  • Automate plotting of DGN files with consistent settings
  • Apply conditional export logic using advanced configuration tables

Currently, only PDF export is fully implemented.


How to Use

When added to a workflow, this node presents a configuration form with the following input fields.

FieldTypeDescriptionRequiredVisible When
Local File Full PathTextFull path to the DGN file to export.
Example: C:\Projects\Drawings\Layout001.dgn
Always
Export TypePicklistThe desired output format.
Options: PDF, DWF, PLT, PNG, JPG
Always
Advanced Export SettingsJSON ObjectOptional advanced configuration object defining multiple export profiles or controls (see below).Optional
Paper SizeTextThe paper size to use for export (e.g., A3, A1).Always
OrientationTextPage orientation: Landscape or Portrait.Always
Plot AreaTextArea of the model to export.
Options: Extents, Window, View, Fence.
Always
Color ModeTextColor mode for the output.
Options: Color, Monochrome, Grayscale.
Always
Output ModeTextWhether to output a single file or multiple files.
Options: Single File, Multiple Files.
Always
Plot ConfigTextPath to a .pltcfg file defining plotter configuration.Always
Models to ExportTextWhich models to export: All, Default, or Named.Always
Window CoordinatesTextFor Window plot area only — defines the coordinate bounds of the region to export.
Format: x1,y1,z1;x2,y2,z2
Only when Plot Area = Window
ScaleTextPlot scale ratio (e.g., Fit to Page, 1:1, 1:2).Always
Center on PageBooleanWhether to center the drawing on the page.Always
Apply Line WeightsBooleanWhether to apply line weights when exporting.Always
Plot BorderBooleanWhether to include a border in the output.Always
Publisher MethodTextThe export method used — currently supports COM Interop via Bentley View or MicroStation.Always

Default Behavior

If no Advanced Export Settings are provided, the node uses the following defaults:

SettingDefault Value
Paper SizeA3
OrientationLandscape
Plot AreaExtents
Color ModeColor
Output ModeSingle File
Plot Config(empty)
Models to ExportAll
ScaleFit to Page
Center on Pagetrue
Apply Line Weightstrue
Plot Borderfalse
Publisher MethodCOM Interop

Advanced Export Settings (Optional)

The Advanced Export Settings field allows you to define structured JSON settings for conditional exports or multiple configurations.

Behavior

  • If a Control Property is provided, the node looks up a matching row from rows where Paper Size equals that control value.
  • If found, that row’s settings override the defaults.
  • If no match is found, the first row is used as a fallback.
  • Any direct NodeData inputs (like Paper Size or Orientation) override both defaults and advanced settings.

Example Configuration

Example 1 – Standard PDF Export

SettingExample Value
Local File Full PathC:\Projects\Drawings\Layout001.dgn
Export TypePDF
Paper SizeA3
OrientationLandscape
Plot AreaExtents
Color ModeColor

Result: Exports the specified DGN file to a single-page, color A3 landscape PDF.


Example 2 – Conditional Advanced Export

SettingExample Value
Local File Full PathC:\Projects\Drawings\Layout002.dgn
Export TypePDF
Advanced Export Settings(JSON as above)
Publisher MethodCOM Interop

Result: Automatically applies different export settings based on the “Paper Size” control variable.


Outputs

After successful execution, this node produces the following outputs.

Output VariableTypeDescription
Exported FilesText (semicolon-separated list)Full paths of exported files.
Export CountNumberNumber of exported files.
Local File Full PathTextPath to the primary exported file (for single file outputs).
Processing TimeTextTotal export time in seconds.
Publisher MethodTextMethod used to publish (currently COM Interop).
Application UsedTextThe Bentley application used (MicroStation or Bentley View).
Connected ApplicationTextThe detected COM-connected application instance.
Processed ModelsTextComma-separated list of processed model names.

Example Workflow Usage

  1. Use a Vault Get File or File Copy node to retrieve a .DGN file.
  2. Add a DGN Export node to convert it to PDF.
  3. Use Data Operations → JoinStringArray or Upload File nodes to process or transfer the exported PDF.
  4. Optionally use Advanced Export Settings to automatically adjust layout based on drawing metadata.

Status Messages

StatusDescription
CompletedExport successful.
FailThe DGN file could not be found, or an unsupported export type was specified.
WarningExport completed with minor issues (e.g., window coordinates invalid, defaults applied).

Error Handling

If export fails, the node logs diagnostic details and stops the workflow at this step. Common causes include:

  • Missing or invalid DGN file path
  • Unsupported export type (only PDF currently supported)
  • Bentley View or MicroStation not installed or unavailable
  • Invalid advanced settings JSON or control property mismatches

Notes

  • Only PDF export is currently implemented. Other export types (DWF, PLT, PNG, JPG) are reserved for future updates.
  • The node automatically detects whether Bentley View or MicroStation is available for publishing.
  • For best results, use Bentley View CONNECT Edition or later.
  • Supports both Fit to Page and manual scale definitions (e.g., 1:2).
  • COM Interop publishing requires Bentley software installed on the automation server.

Category: CAD → Bentley Task Name: DGNExport

Tentech 2024