连接到正在运行的STK实例
uiApplication = actxGetRunningServer('STK11.application');
获取我们的IAgStkObjectRoot接口
root = uiApplication.Personality2;
连接到当前场景
scen = root.CurrentScenario;
应用:
uiap = actxserver('STK11.application');
root = uiap.Personality2;
root.NewScenario('mysce');
scen = root.CurrentScenario;