pycatia.dnb_resource_program_interfaces.resource_program_manager¶
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_resource_program_interfaces.resource_program_manager.ResourceProgramManager(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectResourceProgramManagerRepresents the Resource Program manager of a resource.Role: Resource Program manager is the object used to access the tasksassociated to the resource.The following code snippet can be used to obtain the Resource Program managerfrom the robot product.Dim objResourceProgramManager As ResourceProgramManagerDim objRobot as ProductSet objResourceProgramManager = objRobot.GetTechnologicalObject(“ResourceProgramManager” )- get_all_tasks(o_task_list: tuple) Task ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetAllTasks(CATSafeArrayVariant oTaskList)Retrieves all the Tasks corresponding to this Resource.Parameters:oTaskListThe list of Tasks.Returns:An HRESULT.Legal values:S_OKThe Tasks were corrrectly retrievedE_FAILThe Tasks were not corrrectly retrievedExample:The following example retrieves the list of tasks on theresource.Dim objResourceProgramManager AsResourceProgramManagerDim TaskList(3) As Task..objResourceProgramManager.GetAllTasks TaskList
- Parameters:
o_task_list (tuple) –
- Return type:
- get_task(i_task_name: str, o_task: Task) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetTask(CATBSTR iTaskName,Task oTask)Retrieves the Tasks corresponding to the given Task Name.Parameters:iTaskNameThe name of the Task.oTaskThe output Task.Returns:An HRESULT.Legal values:S_OKThe Task was corrrectly retrievedE_FAILThe Task was not corrrectly retrievedExample:The following example Retrieves the task corresponding the giventask name.Dim objResourceProgramManager AsResourceProgramManagerDim oTask As Task..objResourceProgramManager.GetTask “RobotTask.1”,oTask
- Parameters:
i_task_name (str) –
o_task (Task) –
- Return type:
None