Importing a Collada (.dae) File to a .dwg/.dxf File
Summary
ODA Product:
Drawings SDK
Sample Name:
OdColladaImportEx
Categories:
C++ / Working with .dwg files / Android, iOS, macOS, Linux, Windows
Location:
<INSTALL_DIR>/Drawing/Examples/OdColladaImportEx
Description
OdColladaImportEx is a console application used for reading a Collada (.dae)
file and writing it to a .dwg or .dxf file. It illustrates the usage of
Drawings/Imports/ColladaImport functionality.
Run Sample Application
To run the OdColladaImportEx 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:
OdColladaImportEx <input file> <output file>
input file
A full path to a .dae file to read data from.
output file
A full path to a .dxf or .dwg file to write data to.
If the application executed properly, you will see the progress of database
conversion and saving the result to the output file.
In case you get the "usage" message, check the parameters.
An error message indicates problems with the source file.