Drawings SDK Developer Guide > Getting Started with Drawings SDK > Using Sample Applications >
Dumping .dgn File Contents to the Console

Summary

ODA Product: Drawings SDK
Sample Name: ExDgnDump
Categories: C++ / Beginner / Working with .dgn files / Android, iOS, macOS, Linux, Windows, WinCE, WinRT
Location: <INSTALL_DIR>/Dgn/Examples/ExDgnDump

Note: <INSTALL_DIR> is a directory where you unpacked the Drawings SDK archive.

Description

A sample application that reads a .dgn file and dumps database contents to a file or to the console.

Run Sample Application

To run the ExDgnDump sample application, please do the following:

  1. Open the terminal and go to the directory where the sample binary file is built:
    • For Windows: <INSTALL_DIR>\exe\<PLATFORM_NAME>\
    • For Non-Windows OS: <INSTALL_DIR>/bin/<PLATFORM_NAME>/
    <INSTALL_DIR> is a directory where you unpacked the Drawings SDK archive.
    To determine your <PLATFORM_NAME> parameter, please see the ODA Platform Naming Conventions section in the Downloading Drawings SDK topic.
  2. Run the sample with appropriate arguments:
    ExDgnDump <source file> <destination file>
source file Full path to the source .dgn file to be dumped.
destination file Full path to destination file to save dump data.

If the application executed properly, you will see the progress of the source file opening process. In case you get the "usage" message, check the parameters. An error message indicates problems with the source file.

See also:

Using the Sample Code

Copyright © 2002 – 2020. Open Design Alliance. All rights reserved.