CDXWEB Converter tool is a command-line application based on cdxwebconverter example. The main purpose of the tool is converting a file of any supported format to the native .cdxweb and .cdxbimweb formats used in the Web Toolkit addon. It was created to simplify the evaluation of the Web Toolkit functionality.
CDXWEB Converter Tool works with SDK licenses for C++, C#, Java or Python. However, only evaluation licenses are supported.
CDXWEB Converter tool is included in the SDK package:
<CAD-Exchanger-SDK-folder>\win64\vc14.1\bin\CDXWEBConverter.exe
<CAD-Exchanger-SDK-folder>/lin64/gcc7/bin/CDXWEBConverter
For CDXWEB Converter Tool to start, the evaluation license key should be copied into the directory containing CDXWEBConverter
application.
To launch CDXWEB Converter Tool:
Terminal
or Command Prompt
application.
Behavior of CDXWEB Converter Tool can be controlled with the help of user-defined parameters:
-i
- path to the file which should be imported (multiple allowed)-e
- path to the directory where the .cdxweb model should be exported
CAD Exchanger SDK allows to set various parameters that indicate which data will be written to the exported file. A description of parameters can be found on the Optimizing CDXWEB file contents and Base_WriterParameters pages.
CDXWEBConverter
uses the following settings to save the maximum data:
WriteBRepRepresentation() = true
WritePolyRepresentation() = true
WriteTextures() = true
WritePMI() = true
PreferredLOD() = ModelData_RepresentationMask::ModelData_RM_Any
CDXWEB Converter Tool returns error codes presented in table:
Code value | Error Type | Description |
---|---|---|
0 | General code | Ok |
1 | General code | Unknown error |
2 | General code | General exception |
3 | General code | No valid license |
4 | General code | Invalid arguments number |
5 | General code | Invalid argument |
6 | General code | One or more native libraries not found |
7 | General code | Limit of exports for evaluation was reached |
8 | General code | Unable to initialize conversion limiter |
100 | Import error | Unsupported version |
101 | Import error | Unexpected format |
102 | Import error | Unsupported file variant |
103 | Import error | Import error |
200 | Export error | Export error |