ITpsViewLaunchServicesLaunchView Method (FpStandardView, Object, Boolean, Object) |
Namespace: ABB.Robotics.Tps.Taf
bool LaunchView( FpStandardView view, Object initData, bool createNewInstance, out Object cookie )
// Launch a new instance of the program editor with no init data if (_iTpsSite.LaunchView(FpStandardView.RapidEditor, null, true, out _cookie) != true) { // take care of the error } // Launch a new instance of the program editor at task T_ROB1, module MainModule, row 7. RapidEditorInitData initData = new RapidEditorInitData("T_ROB1", "MainModule", 7); if (_iTpsSite.LaunchView(FpStandardView.RapidEditor, initData, true, out _cookieE) != true) { // take care of the error } // Launch an existing instance of the program editor at a specified routine. RapidEditorInitData initData = new RapidEditorInitData("T_ROB1", "MainModule", _myRout.TextRange.Begin.Row); if (_iTpsSite.LaunchView(FpStandardView.RapidEditor, initData, false, out _cookieE) != true) { // take care of the error } // Launch the Backup and Restore view if (_iTpsSite.LaunchView(FpStandardView.BackUpRestore, null, false, out _cookieB) != true) { // take care of the error } // Launch the Jogging view if (_iTpsSite.LaunchView(FpStandardView.Jogging, null, false, out _cookieJ) != true) { // take care of the error } // Launch a new instance of the program data view if (_iTpsSite.LaunchView(FpStandardView.RapidData, null, true, out _cookieD) != true) { // take care of the error } // Launch the Logoff dialog if (_iTpsSite.LaunchView(FpStandardView.LogOff, null, false, out _cookieL) != true) { // take care of the error }