Compilation environment
SDK is compiled with VS2022
The SDK is provided as DLL in different version:
- x64 bits Debug version
- x64 bits release version
The demo version of the SDK only contains the debug version.
As a result it is really much slower thant the release but allows to perform all implementation to make a POC.
Runtime dependencies
- The SDK requires VS2022 redistributable.
- SketchupApi.dll requires VS 2015 redistributable (Update 3 is OK).
Preprocessor directives
You need to define some preprocessor directives in the compiler to use the SDK.
- CRUNCHERSDK_DLL_USE must be defined as preprocessor directive.
Includes and namespace
- #include "common_cpp_type.h" must be the first include to use
- #include "3dtype.h" is required as soon as you use 3d related stuff
The code is encapsulated in mootools namespace. You may use USE_MOOTOOLS_NAMESPACE is you want to use that namespace automatically.
Otherwise mootools:: must be placed before any SDK name (ie mootools::C3DIo)
Link
You must provide a path to PolygonCruncherSDK.lib and link with that library to link your executable.
File format support
Support of 3D formats is performed through PolygonCruncherSDKIO.moox. This file is a dynamic library.
If you need to have 3D I/O file support, you must provide this library with your software.
- Sketchup
Sketchup format can be read using the required provided SketchupApi.dll. Put the appropriate SketchupApi.dll in the dll path of your application.
SketchupApi.dll is provided in Sketchup/x32 or Sketchup/x64 folder of the SDK.
If the framework is not available, the format support is removed from the supported format list. You can still use other format provided by PolygonCruncherSDKIO.moox.
- JT
JT format is supported as soon as you copy the Siemens JT package in your application path.
If you are not JT Open Toolkit licensor, visit the following Siemens website to request and procure a no-charge 60 day JT Open Toolkit evaluation license.
http://www.plm.automation.siemens.com/plmapp/jt/en_us/online/Shop#ACTION=1189811524
JT package contains the following dll: JtTk71.dll, Jt81.dll, JtBrep81.dll, JtLibra81.dll, JtSimp81.dll, JtSupt81.dll, JtXTBrep81.dll,ParaSupt81.dll, psbodyshop.dll, pskernel.dll, psxttoolkit.dll
If you already are a Siemens Licensor, you must provide your Sold_To_ID in order to make your registration key validated.
This is simple to do and can be done using a piece of code that is included in SDK3DConvert/3DConvert.cpp
If you don't want to deal with JT format, you have nothing to do, unless use the PolygonCruncherSDKIO.moox dll.
Running the application
You must copy PolygonCruncherSDK.dll and optionally PolygonCruncherSDKIO.moox next to your application to make it loaded correctly