Save and Restore ModelView Transform

I'm trying to save views and restore them, but really having trouble getting this to work.  I can restore the orientation, rotation and scale for a view using the view properties, but I can't figure out how to restore the view target...

I tried to save the whole transform, but this doesn't work for me either.  I cannot set the values.  Is this because the transform is not supposed to be directly accessed?

My code is below.

public

void SetView(ModelView view)

{

//view is the ModelView which I want to set the transform for

try

{

object xaxis = null;

object yaxis = null;

object zaxis = null;

object transform = null;

double scale = 0;

mTransform.GetData2(ref xaxis, ref yaxis, ref zaxis, ref transform, ref scale );   //mTransform is the transform I saved earlier

view.Transform.SetData(xaxis, yaxis, zaxis, transform, scale);  //view.Transform values are not changed here

}

catch( Exception ex )

{

String message = ex.Message;

}

}

SolidworksApi macros