# How-To: Set up HOOPS Visualize HPS\_MFC\_Sandbox to work with HOOPS Exchange integration

**URL:** <https://forum.techsoft3d.com/t/how-to-set-up-hoops-visualize-hps-mfc-sandbox-to-work-with-hoops-exchange-integration/1412>\
**Category:** HOOPS Visualize Desktop\
**Tags:** code, sample, learn, knowledge-base, how-to\
**Created:** [October 18, 2022, 4:00am UTC](https://forum.techsoft3d.com/t/how-to-set-up-hoops-visualize-hps-mfc-sandbox-to-work-with-hoops-exchange-integration/1412 "2022-10-18T04:00:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gabriel.peragine](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.techsoft3d.com/gabriel.peragine/32/1535_2.png) [@gabriel.peragine](https://forum.techsoft3d.com/u/gabriel.peragine)\
**Post date:** [October 18, 2022, 4:00am UTC](https://forum.techsoft3d.com/t/how-to-set-up-hoops-visualize-hps-mfc-sandbox-to-work-with-hoops-exchange-integration/1412/1 "2022-10-18T04:00:00Z")

</div>

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

 ![image-20201009-141323](https://us1.discourse-cdn.com/flex020/uploads/techsoft3d/original/1X/fda88ce1b5dbcacb697c3544c91f23f34b911fba.png)

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

 ![image-20201009-141526](https://us1.discourse-cdn.com/flex020/uploads/techsoft3d/original/1X/59c80359a6cde8f7848c49fe39ce47e437e06191.png)

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  
**OR**  
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.

 ![image-20201009-142256](https://us1.discourse-cdn.com/flex020/uploads/techsoft3d/original/1X/c5373e6a282ac0e6b2e553b3bc4bdee75b3c9319.jpeg)
