Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Reverted from v. 2

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/guidebuild/start/initialize-hoops-exchange.html?For more information check out our forum post._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.

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

    Code Block
    #define INITIALIZE_A3D_API
    #include <A3DSDKIncludes.h>
  4. Add the following code to CHPSApp::InitInstance() to load and initialize HOOPS Exchange library

    Code Block
    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);
    Image Added
  5. Add the following code to CHPSApp::ExitInstance() to terminate and unload the library

    Code Block
    #ifdef USING_EXCHANGE
    	{
    		A3DDllTerminate();
    		A3DSDKUnloadLibrary();
    	}
    #endif
  6. Add include A3DSDKIncludes.h in CHPSView.cpp

    Image Added
  7. Add your code to CHPSView::OnUserCode() with HOOPS Exchange API

    Image Added

Filter by label (Content by label)
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@2318a5
sortmodified
showSpacefalse
reversetrue
typepage
cqllabel = "kb-how-to-article" and type = "page" and space = "KBHV"
labelskb-how-to-article