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.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
ResourceProgramManager

Represents the Resource Program manager of a resource.

Role: Resource Program manager is the object used to access the tasks
associated to the resource.
The following code snippet can be used to obtain the Resource Program manager
from the robot product.

Dim objResourceProgramManager As ResourceProgramManager
Dim objRobot as Product

Set 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:

oTaskList
The list of Tasks.

Returns:
An HRESULT.
Legal values:

S_OK
The Tasks were corrrectly retrieved
E_FAIL
The Tasks were not corrrectly retrieved

Example:
The following example retrieves the list of tasks on the
resource.

Dim objResourceProgramManager As
ResourceProgramManager
Dim TaskList(3) As Task
..
objResourceProgramManager.GetAllTasks TaskList
Parameters:

o_task_list (tuple) –

Return type:

Task

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:

iTaskName
The name of the Task.
oTask
The output Task.

Returns:
An HRESULT.
Legal values:

S_OK
The Task was corrrectly retrieved
E_FAIL
The Task was not corrrectly retrieved

Example:
The following example Retrieves the task corresponding the given
task name.

Dim objResourceProgramManager As
ResourceProgramManager
Dim oTask As Task
..
objResourceProgramManager.GetTask “RobotTask.1”,
oTask
Parameters:
  • i_task_name (str) –

  • o_task (Task) –

Return type:

None