pycatia.dnb_resource_program_interfaces.active_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_resource_program_interfaces.active_task.ActiveTask(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectActiveTaskRepresents the Active task of the resource in conjunction with a particularactivity.Role: Active Task is the object used to access and manage the active task setfor all the resources assigned for the activity.The following code snippet can be used to obtain the Active Task from theactivity.Dim objChildActivity As ActivityDim objActiveActivity As ActiveTaskSet objActiveActivity = objChildActivity.GetTechnologicalObject(“ActiveTask”)- get_active_task(i_resource: AnyObject, o_task: Task) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetActiveTask(AnyObject iResource,Task oTask)Retrieves the Active Task for an activity for a particularResource.Parameters:iResourceThe resources.oTaskThe Active Task.Returns:An HRESULT.Legal values:S_OKThe status could be successfully queried from theactivityE_FAILThe query failed.Example:The following example get the active task of the particularresource in the activity.Dim oActiveAct As ActiveTaskDim iResPrgMngr As ResourceProgramManagerDim oTask As Task..oActiveAct.GetActiveTask iResPrgMngr, oTask
- set_active_task(i_resource: AnyObject, i_task: Task) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetActiveTask(AnyObject iResource,Task iTask)Defines the Active Task for an activity for a particularResource.Parameters:iResourceThe resources that owns the Task.iTaskThe Tasks to be made active.Returns:An HRESULT.Legal values:S_OKThe Active Task was corrrectly setE_FAILThe Active Task was not corrrectly setExample:The following example sets Active Task for an activity for aparticular Resource.Dim iActiveAct As ActiveTaskDim iResPrgMngr As ResourceProgramManagerDim iTask As Task..oActiveAct.SetActiveTask iResPrgMngr, iTask