7. Clearing the build
In this chapter, we will wrap up our application by enabling resetting of the configurator.
- Clearing the model
- Resetting the build
Use the "Reset Build" button click event listener to reset your application
The next step in this tutorial is to hook up the "Reset Build" button. This is relatively straightforward. We want to clear our model from the main assembly viewer, reset our Map data structure that holds our selections, and reset the DOM to clear the selection information.
As a final touch, we will add one more callback to resize our canvas if the window is resized. This good practice to do for any web application using HOOPS Communicator.
With this, all pieces of your tutorial should be complete. Feel free to build upon this example or experiment with additional APIs to further your learning.