Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

HOOPS Visualize sandbox works with HOOPS Exchange integration as this page.
https://techsoft3d.atlassian.net/servicedesk/customer/portal/11/article/768049505
When you want to use HOOPS Exchange API directly in sandbox, you will need to load and initialize HOOPS Exchange library as followings.
https://docs.techsoft3d.com/exchange/latest/build/initialize_exchange.html

Instructions for HPS_MFC_Sandbox

  1. Open the project properties from Visual Studio

  2. Navigate to C/C++ → General and add $(HEXCHANGE_INSTALL_DIR)\include in Additional Include Directories
    HEXCHANGE_INSTALL_DIR is a environment variable. Its value must be the root of a HOOPS Exchange package.

  3. Add include and define the macro in CHPSApp.cpp

    #define INITIALIZE_A3D_API
    #include <A3DSDKIncludes.h>
  4. Add the following code to CHPSApp::InitInstance()

    A3DBool loaded = A3DSDKLoadLibrary(bin_dir.str().data());
    assert(loaded);
    A3DLicPutUnifiedLicense(HOOPS_LICENSE);
    A3DStatus result = A3DDllInitialize(A3D_DLL_MAJORVERSION, A3D_DLL_MINORVERSION);
    assert(result == A3D_SUCCESS);
  5. Add include A3DSDKIncludes.h in CHPSView.cpp

  6. Add your code to CHPSView::OnUserCode() with HOOPS Exchange API

  • No labels