C++ / Beginner / Working with .dgn files / Android, iOS, macOS, Linux, Windows, WinCE, WinRT
Location:
<INSTALL_DIR>/Dgn/Examples/ExDgnColladaExport
Note: <INSTALL_DIR> is a directory where
you unpacked the Drawings SDK archive.
Description
A console application that reads a .dgn file and writes it to a Collada
(.dae) file. Illustrates use of /Kernel/Exports/ColladaExport functionality.
Run Sample Application
To run the ExDgnColladaExport 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:
ExDgnColladaExport <source file> <target file>
input file
Full path to the source .dgn file.
output file
Full path to the target .dae file. Please note, that the extension of the target file should be also specified.
If the application executed properly, you will see the progress of the source
file opening process and a message, informing that the file was succesfully
exported.
In case you get the "usage" message, check the parameters.
An error message indicates problems with the source file.