pycatia.dnb_igp_setup_interfaces.call_robot_task_activity¶
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-09-25 14:34:21.593357
Warning
The notes denoted “CAA V5 Visual Basic Help” are to be used as reference only. They are there as a guide as to how the visual basic / catscript functions work and thus help debugging in pycatia.
- class pycatia.dnb_igp_setup_interfaces.call_robot_task_activity.CallRobotTaskActivity(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectDMAPSInterfaces.ActivityCallRobotTaskActivityInterface representing a CallRobotTaskActivity.Role: This interface is used to analyze the CallRobotTaskactivityThe following code snippet can be used to obtain a CallRobotTaskActivity from aselected ActivityDim oSelectAct As ActivitySet oSelectAct = CATIA.ActiveDocument.Selection.FindObject(“CATIAActivity”)Dim objCallRobotTaskAct As CallRobotTaskActivitySet objCallRobotTaskAct = oSelectAct.GetTechnologicalObject(“CallRobotTaskActivity”)- get_pointed_task_name(o_robot_task_name: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetPointedTaskName(CATBSTR oRobotTaskName)Gets the name of the Pointed RobotTask.Parameters:oRobotTaskNameThe name of the RobotTask being pointed.Returns:An HRESULT.Legal values:S_OKThe pointed RobotTask name is retrievesuccessfully.E_FAILUnable to retrieve the pointed RobotTask name.Example:The following example shows how to retrieve the pointedRobotTaskDim objCallRobotTaskActy asCallRobotTaskActivity…Dim strTaskName as StringobjCallRobotTaskActy.GetPointedTaskNamestrTaskName
- Parameters:
o_robot_task_name (str) –
- Return type:
None
- get_task(o_robot_task: Activity) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetTask(Activity oRobotTask)Gets the Pointed RobotTask.Parameters:oRobotTaskThe RobotTask pointed by this Activity.Returns:An HRESULT.Legal values:S_OKThe RobotTask is retrieve successfully.E_FAILUnable to retrieve the RobotTask.Example:The following example shows how to retrieve the pointedRobotTaskDim objCallRobotTaskActy asCallRobotTaskActivity…Dim objPointedTask as RobotTaskobjCallRobotTaskActy.GetTask objPointedTask
- Parameters:
o_robot_task (Activity) –
- Return type:
None
- set_task(i_target_robot_task: Activity, o_list_of_pointing_tasks: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetTask(Activity iTargetRobotTask,CATSafeArrayVariant oListOfPointingTasks)Sets the Pointed RobotTask.Parameters:iTargetRobotTaskThe Desired Pointed Task.oListOfPointingTasksThe List of RobotTasks which have the cyclic dependancy.Returns:An HRESULT.Legal values:S_OKThe RobotTask is set successfully.E_FAILUnable to set the RobotTask (either the RobotTask belongs to adifferent robot or existing cyclic dependancy).Example:The following example shows how to set the desiredRobotTaskDim objCallRobotTaskActy asCallRobotTaskActivityDim objTask as RobotTask…Dim objCyclicTasks(5)objCallRobotTaskActy.SetTaskobjTask,objCyclicTasks
- Parameters:
i_target_robot_task (Activity) –
o_list_of_pointing_tasks (tuple) –
- Return type:
None