pycatia.dnb_igp_setup_interfaces.robot_task¶
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.robot_task.RobotTask(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectDMAPSInterfaces.ActivityRobotTaskRepresents the Robot Task.Role: The interface is used manage activities under a RobotTask.The following code snippet can be used to obtain the Robot Task from a RobotTask Factory.Dim objRobotTaskFactory As RobotTaskFactoryDim objRobot As Product…Set objRobotTaskFactory = objRobot.GetTechnologicalObject(“RobotTaskFactory” )Dim objRobotTaskList(3) as RobotTaskDim objRobotTask as RobotTaskobjRobotTaskFactory.GetAllRobotTasks objRobotTaskListobjRobotTask=objRobotTaskList[0]The Robot Task can also be obtained from an activity of the typeRobotTask.Dim objActivity as Activity…Dim objRobotTask as RobotTaskSet objRobotTask = objActivity.GetTechnologicalObject(“RobotTask” )- create_after_operation(i_after_operation: Operation, o_created_operation: Operation) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub CreateAfterOperation(Operation iAfterOperation,Operation oCreatedOperation)Creates Operation as a child of Robot Task.Parameters:iAfterOperationThe Operation after which the required operation is to be created.oCreatedOperationThe Created Operation.Returns:An HRESULT.Legal values:S_OKThe operation was successfully created.E_FAILThe operation could not be created.Example:The following example creates an OperationDim objRobotTask as RobotTaskDim objAfterOperation As Operation…Dim objOperation As OperationobjRobotTask.CreateAfterOperationobjAfterOperation,objOperation
- create_call_task(i_robot_task: RobotTask, i_after_operation: Operation, i_where: bool, o_created_call_task: AnyObject) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub CreateCallTask(RobotTask iRobotTask,Operation iAfterOperation,boolean iWhere,AnyObject oCreatedCallTask)Creates a calltask inside a Robot TaskParameters:iRobotTaskThe task to be called in the current robot taskiAfterOperationThe Operation after which the required operation is to be created..iWhereThe postion of where the task needs to be inserted Before(0)After(1)oCreatedCallTaskThe created call taskReturns:An HRESULT.Legal values:S_OKThe call task was successfully created.E_FAILThe call task could not be created.Example:The following example creates An OperationDim objRobotTask as RobotTaskDim objCalledTask as RobotTaskDim objAfterOperation as Operation..Dim objCallTaskAct as AnyObjectobjRobotTask.CreateCallTask objCalledTask,objAfterOperation,1,objCallTaskAct
- create_operation(i_reference_operation: Operation, i_after_operation: Operation, o_created_operation: Operation) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub CreateOperation(Operation iReferenceOperation,Operation iAfterOperation,Operation oCreatedOperation)Creates Operation as a child of Robot Task.Parameters:iReferenceOperationThe Reference Operation after which the Operation has to be createdand whose properties will be copied to the created operation.iAfterOperationThe Operation after which the required operation is to be created.(Pass NOTHING if Reference Operation is specified)oCreatedOperationThe Created Operation.Returns:An HRESULT.Legal values:S_OKThe operation was successfully created.E_FAILThe operation could not be created.Example:The following example creates an OperationDim objRobotTask as RobotTaskDim objRefOperation as Operation…Dim objAfterOperation as OperationSet objAfterOperation = NothingDim objOperation As OperationobjRobotTask.CreateOperationobjRefOperation,objAfterOperation,objOperation
- delete_operations(i_operation_list: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub DeleteOperations(CATSafeArrayVariant iOperationList)Deletes the required list of Operations.Parameters:iOperationListThe list of Operations to be deleted.Returns:An HRESULT.Legal values:S_OKThe operation list was successfully deleted.E_FAILThe operation list could not be created.Example:The following example creates an OperationDim objRobotTask as RobotTaskDim objOperationList as Operation…objRobotTask.DeleteOperations objOperationList
- Parameters:
i_operation_list (tuple) –
- Return type:
None
- get_all_operations(o_operation_list: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetAllOperations(CATSafeArrayVariant oOperationList)Retrieves the List of Operations of Robot Task.Parameters:oOperationListThe list of OperationsReturns:An HRESULT.Legal values:S_OKThe operation list was successfully queried.E_FAILThe operation list could not be queried.Example:The following example creates An OperationDim objRobotTask as RobotTaskDim objOperationList As Operation…objRobotTask.GetAllOperations objOperationList
- Parameters:
o_operation_list (tuple) –
- Return type:
None