You can lock the ViewCube tool to a set of selected objects. Locking a selection of objects to the ViewCube tool defines the center of the current view and the distance from center for the view based on the selected objects. To turn off Lock to Selection, you can click the Lock to Selection button next to the Home view button.
Selecting and deselecting objects after Lock to Selection is turned on has no effect on the center or distance from the center of the view when a view orientation changes. You cannot zoom fit to view a model when Lock to Selection is on, even if the ViewCube tool is set to zoom fit to view after each view orientation change.