was wondering if could verify…
int v=Rhino.RhinoDoc.ActiveDoc.NamedViews.FindByName(strName);
if (v >= 0) //found named view
{
bool b = Rhino.RhinoDoc.ActiveDoc.NamedViews.Restore(v,Rhino.RhinoDoc.ActiveDoc.Views.ActiveView, false);
}
b is always false and doesn’t restore the named view, though it does ‘find’ the named view and returns correct index to restore.
5.7.31213.18395, 12/13/2013