pycatia.dnb_igp_setup_interfaces.robot_task_factory¶
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_factory.RobotTaskFactory(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectRobotTaskFactoryRepresents the Task Creation Factory for Robots.Role: Robot Task Factory is the object used to create robottasks.The following code snippet can be used to obtain the Robot Task Factory fromthe robot product.Dim objRobotTaskFactory As RobotTaskFactoryDim objRobot As Product…Set objRobotTaskFactory = objRobot.GetTechnologicalObject(“RobotTaskFactory” )- create_robot_task(i_name: str, o_robot_task: RobotTask) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub CreateRobotTask(CATBSTR iName,RobotTask oRobotTask)Creates a Robot TaskParameters:iNameThe Robot Task Name.oRobotTaskThe Created Robot Task.Returns:An HRESULT.Legal values:S_OKThe Robot Task was successfully created.E_FAILThe Robot Task creation failed.Example:The following example creates a robot task for arobot.Dim objRobotTaskFactory As RobotTaskFactoryDim objRobotTask as RobotTask..objRobotTaskFactory.CreateRobotTask“New_RobotTask_1”,objRobotTask
- Parameters:
i_name (str) –
o_robot_task (RobotTask) –
- Return type:
None
- delete_robot_task(i_robot_task: RobotTask) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub DeleteRobotTask(RobotTask iRobotTask)Removes the required Robot Task.Parameters:iRobotTaskThe Robot Task to be Removed.Returns:An HRESULT.Legal values:S_OKThe Robot Task could be successfully deleted.E_FAILThe deletion of Robot Task failed.Example:The following example deleted a robot task of arobot.Dim objRobotTaskFactory As RobotTaskFactoryDim objRobotTask as RobotTask..objRobotTaskFactory.DeleteRobotTaskobjRobotTask
- Parameters:
i_robot_task (RobotTask) –
- Return type:
None
- get_all_robot_tasks(o_robot_task_list: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetAllRobotTasks(CATSafeArrayVariant oRobotTaskList)Retrieves the list of Robot Tasks owned by a Robot.Parameters:oRobotTaskListThe Robot Task List.Returns:An HRESULT.Legal values:S_OKThe Robot Task List could be successfully queried.E_FAILThe Robot Task List could not be retrieved.Example:The following example Retrieves the list of Robot Tasks for theRobot.Dim objRobotTaskFactory As RobotTaskFactoryDim objRobotTask(3) as RobotTask..objRobotTaskFactory.GetAllRobotTasksobjRobotTask
- Parameters:
o_robot_task_list (tuple) –
- Return type:
None