Drawings SDK Developer Guide > Getting Started with Drawings SDK > Using Sample Applications >
Creating a .dgn File with Internal Materials

Summary

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

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

Description

A console sample application that creates a new .dgn file with internal materials.

Run Sample Application

To run the ExDgnMaterials 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:
    ExDgnMaterials <filename> [-DO]
filename Full path to the destination 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. In case you get the "usage" message, check the parameters.

See also:

Using the Sample Code

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