1.原来Route对象升级成Presentation对象后,激活方法的变化:
原来5.1版本示例代码:
function flyto(thisa)
{
var thisid = thisa.id;
var thisb=IInformationTree.GetObjectEx(thisid,"");
if(thisb.ObjectType=="21")//动态路径Route
{
thisb.Play();
}
else {
thisid=IInformationTree.GetTerraObjectID(thisid);
IPlane.FlyToObject(thisid,0);
}
}
现在6.5版本代码:
function flyto(thisa)
{
var thisid = thisa.id;
var sg = CreateSGObj();
var thisb = sg.ProjectTree.GetObject(thisid);
if(thisb.ObjectType=="34")//动态路径Route升级为Presentation
{
thisb.Play(0);
}
else {
sg.Navigate.FlyTo(thisid,0);
}
}