When using the AlViewFrame::viewFrame( ... , const double,Options=kObject) method, it is important to realize that the view will be determined by the heirarchy evaluation that was requested. The Options parameter is one of:
kObject kObjectAndAbove kObjectAndBelow kObjectAndAboveBelow
As a result, you must specify the correct direction of the heirarchy to evaluate. For example, if you were evaluating a leaf node and specified kObjectAndBelow, the view would not change.