ITpsViewLaunchServicesLaunchView Method (String, String, Object, Boolean, Object) |
Launches a View in the FlexPendant.
Namespace:
ABB.Robotics.Tps.Taf
Assembly:
ABB.Robotics.Tps.Taf (in ABB.Robotics.Tps.Taf.dll) Version: 6.5.129.0
Syntax bool LaunchView(
string assemblyName,
string controlType,
Object initData,
bool createNewInstance,
out Object cookie
)
Parameters
- assemblyName
- Type: SystemString
Name of the assembly. - controlType
- Type: SystemString
Full control identifier ([Namespace].[ClassName]. - initData
- Type: SystemObject
Data used to initialize the new view. - createNewInstance
- Type: SystemBoolean
true to create a new instance; false to give focus to an already open view. - cookie
- Type: SystemObject
returns an object which can be used to close the view.
Return Value
Type:
Booleantrue if the view was created correctly; otherwise
false.
Remarks Creating a new instance depends on if the view is allowed to have multiple instances or not. If the requested view is not already started, a new instance is created.
If the view is not successfully launched the return value is false and the cookie is null.
Examples
In this example an SDK view is launched.
The type TpsViewApp1 is defined in the namespace ABB.Robotics.SDK.Views, which is the output of the compliance tool.
if (_iTpsSite.LaunchView("TpsViewApp1.gtpu.dll", "ABB.Robotics.SDK.Views.TpsViewApp1", null, true, out cookie) != true)
{
}
See Also