Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
Exporting a Drawing File to a Collada (.dae) File

Summary

ODA Product: Drawings SDK
Sample Name: OdColladaExportEx
Categories: C++ / Working with .dwg files / Android, iOS, macOS, Linux, Windows
Location: <INSTALL_DIR>/Drawing/Examples/OdColladaExportEx

Description

OdColladaExportEx is a simple console application used for reading a .dwg or .dxf file and writing it to a Collada (.dae) file. It illustrates the usage of Drawing/Exports/ColladaExport functionality.

Run Sample Application

To run the OdColladaExportEx 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:
    OdColladaExportEx <input file> <output file>
input file A full path to a .dxf or .dwg file to read data from.
output file A full path to a .dae file to write data to.

If the application executed properly, you will see the file loading progress and a message that the database was converted successfully and the file is successfully exported. 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.