Overview

The Converter library is a C++ library which exposes the rich functionality of Converter, and makes it easy to embed CAD-File conversion into your application.

License Key

The HOOPS Converter Library requires a valid license to operate.

Linking to Converter Library

The Converter library requires libconverter.lib to be included in your application and requires libconverter.dll or libconverter.so to be available in your system path. Additionally, libconverter has a dependency on all dll/so files in the converter bin/ directory, so they need to be in the same folder that your application resides in.

For more information on the location of these files in your HOOPS Communicator package, consult our Package Description page.

Development on Windows

The Converter library is built with Visual Studio 2015 and is compatible with Visual Studio 2015, 2017, and 2019.

Example Usage

The following example generates a Stream Cache Instance from a single input file:

converter.Init(your_license_key);
importer.Init(&converter);
if (!importer.Load(path_to_your_model_file, importOptions))
{
// handle error
}
exporter->Init(&importer);
exporter->WriteSC(path_to_your_sc_folder, nullptr, exportOptions);

Importing Multiple Files

A single Importer object should be used for importing all files during the life of your application. Attempts to create additional importer objects will result in an exception being thrown.


For more detailed examples of Converter library usage, please see the Conversion Examples section.

top_level:2 prog_guide:1 data_import:0 cad_conversion:1