C++ / Beginner / Working with .dgn files / Android, iOS, macOS, Linux, Windows, WinCE, WinRT
Location:
<INSTALL_DIR>/Dgn/Examples/ExSimpleProject
Note: <INSTALL_DIR> is a directory where
you unpacked the Drawings SDK archive.
Description
A simple console application that illustrates creating a new database,
populating it with a few elements, and saving its content to a V8 .dgn file.
Run Sample Application
To run the ExSimpleProject sample application, please do the following:
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.
Run the sample with appropriate arguments:
ExSimpleProject <filename> [-DO]
filename
Full path to the destination .dgn file. Please note, that the extension of the target file should be also specified.
-DO
Disable the output of the progress meter.
If the application executed properly, you will see the progress of the target
file saving process (until the -DO parameter is used).
In case you get the "usage" message, check the parameters.