# How-To: Using the HOOPS 3D Part Viewer

**URL:** <https://forum.techsoft3d.com/t/how-to-using-the-hoops-3d-part-viewer/1430>\
**Category:** HOOPS Visualize Desktop\
**Tags:** code, learn, knowledge-base, how-to\
**Created:** [June 22, 2022, 4:00am UTC](https://forum.techsoft3d.com/t/how-to-using-the-hoops-3d-part-viewer/1430 "2022-06-22T04: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:** [June 22, 2022, 4:00am UTC](https://forum.techsoft3d.com/t/how-to-using-the-hoops-3d-part-viewer/1430/1 "2022-06-22T04:00:00Z")

</div>

The HOOPS 3D Part Viewer (3DPV) is a Windows MFC application built on top of the HOOPS/3dGS and HOOPS/MVO components. Use the [3D Part Viewer](https://docs.techsoft3d.com/3df/latest/reference_applications/01_HOOPSViewDemo_Intro.html) which [you can build](https://docs.techsoft3d.com/3df/latest/general/building_sandboxes.html#d-part-viewer) as a sample application, for [troubleshooting](https://docs.techsoft3d.com/3df/latest/general/troubleshooting.html) and creating reproducible testcases for support (i.e. independent of your application code).

The 3DPV has a CSolidHoopsView class (cf. CSolidHoopsView.cpp) where m\_pHView is a member. This is a pointer to an HBaseView object (cf. [HOOPS/MVO Technical Overview — HOOPS Visualize 3DF Documentation](https://docs.techsoft3d.com/3df/latest/tech_overview/mvo_technical_overview.html#hbaseview) ).

The CSolidHoopsView class has methods call OnExtraSlotN where N = {1,2,3,4,5}. The code I provided uses this mechanism.

```auto
void CSolidHoopsView::OnExtraSlot1()
{
	HC_Open_Segment_By_Key(m_pHView->GetModelKey());

```

When using the 3DPV, you can choose “Slot N” from the DEBUG menu to execute this code.

The linked documentation provides many details not duplicated here.

## 📘 Instructions

1. Open the Visual Studio solution called samples\_vXXX.sln (where XXX is the platform version).
2. Open the CSolidHoopsView.cpp source code
3. Add your code to one of the “ExtraSlot” methods
4. Build and run the 3DPV
5. Optionally choose Tools, Options to modify the default settings (driver, rendering and performance options, etc.)
6. Load a model
7. Choose DEBUG, Slot n to run your code.
