Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
Dumping XData Linkages

Summary

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

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

Description

A simple application that dumps XData linkages of model elements from a .dgn file.

Run Sample Application

To run the ExDwgXData 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:
    ExDwgXData <option> <file>
option Can be one of the following:
  • -r — dump XData from the file
  • -w — create a file with XData
file Full path to the .dgn file. Depending on the option, this can be a source file to dump XData from, or a file to be crated. Please note, that the extension of the file should be also specified.

If the application executed properly, you will see the following information, depending on the selected option:

  • -r — progress of the source file loading process and messages informing about XData database elements that were dumped.
  • -w — progress of the destination file saving 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 – 2022. Open Design Alliance. All rights reserved.