CallRobotTaskActivity (Object)

Interface representing a CallRobotTaskActivity.

Role: This interface is used to analyze the CallRobotTask activity
The following code snippet can be used to obtain a CallRobotTaskActivity from a selected Activity
   Dim oSelectAct As Activity
   Set oSelectAct = CATIA.ActiveDocument.Selection.FindObject("CATIAActivity")
   Dim objCallRobotTaskAct As CallRobotTaskActivity
   Set objCallRobotTaskAct = oSelectAct.GetTechnologicalObject("CallRobotTaskActivity")
 

Methods


Sub GetPointedTaskName( oRobotTaskName)
Gets the name of the Pointed RobotTask.
Parameters:
oRobotTaskName
The name of the RobotTask being pointed.
Returns:
An HRESULT.
Legal values:
S_OK
The pointed RobotTask name is retrieve successfully.
E_FAIL
Unable to retrieve the pointed RobotTask name.
Example:
The following example shows how to retrieve the pointed RobotTask
   Dim objCallRobotTaskActy as CallRobotTaskActivity
   ...
   Dim strTaskName as String
   objCallRobotTaskActy.GetPointedTaskName strTaskName
   
Sub GetTask( oRobotTask)
Gets the Pointed RobotTask.
Parameters:
oRobotTask
The RobotTask pointed by this Activity.
Returns:
An HRESULT.
Legal values:
S_OK
The RobotTask is retrieve successfully.
E_FAIL
Unable to retrieve the RobotTask.
Example:
The following example shows how to retrieve the pointed RobotTask
   Dim objCallRobotTaskActy as CallRobotTaskActivity
   ...
   Dim objPointedTask as RobotTask
   objCallRobotTaskActy.GetTask objPointedTask
   
Sub SetTask( iTargetRobotTask, oListOfPointingTasks)
Sets the Pointed RobotTask.
Parameters:
iTargetRobotTask
The Desired Pointed Task.
oListOfPointingTasks
The List of RobotTasks which have the cyclic dependancy.
Returns:
An HRESULT.
Legal values:
S_OK
The RobotTask is set successfully.
E_FAIL
Unable to set the RobotTask (either the RobotTask belongs to a different robot or existing cyclic dependancy).
Example:
The following example shows how to set the desired RobotTask
   Dim objCallRobotTaskActy as CallRobotTaskActivity
   Dim objTask as RobotTask
   ...
   Dim objCyclicTasks(5) 
   objCallRobotTaskActy.SetTask objTask,objCyclicTasks