pfcViewOwner.SetCurrentViewTransform(pfcTransform3D) API cause an pfcXToolkitBadInputs exception
I am using Creo Parametric Release 8.0 and Datecode8.0.4.0, there is some unexpected exception happended with following code,I.m sure that the .prt I got from session is valid.
My finally purpose is creating a new pfcTransform3D and setting the matirx data, then call this api to change view in window.
//Get Current Mdl From Session
var session = pfcGetProESession();
var part = session.CurrentModel;
if (part.Type == pfcCreate ("pfcModelType").MDL_PART) {
var pfcTransform3D = part.GetCurrentViewTransform();
//below code cause an exception (pfcXToolkitBadInputs)
part.SetCurrentViewTransform(pfcTransform3D);
}

