How-To: Set up HOOPS Visualize HPS_MFC_Sandbox to work with HOOPS Exchange integration

HOOPS Visualize package is shipped with different samples called Sandbox. These sandboxes are compatible with HOOPS Exchange but they need an additional setup detailled below.

Instructions for HPS_MFC_Sandbox

  1. Open the project properties from Visual Studio
  2. Navigate to C/C++ → Preprocessor and add USING_EXCHANGE in the Preprocessor Definition

  1. Navigate to Linker → Input and add hps_sprk_exchange.lib in the additional dependencies

  1. Make sure the HOOPS Exchange DLL are in the PATH or near the application executable:
    a. by using the environment variable HEXCHANGE_INSTALL_DIR. Its value must be the root of a HOOPS Exchange package
    2b. by copying the content of HOOPS_Exchange/bin/win64 inside HOOPS Visualize bin directory

If the sandbox is correctly set-up, when running the Sandbox, the filters in File->Open shows HOOPS Exchange compatible CAD formats.