pycatia.dnb_resource_program_interfaces.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.task.Task(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectDMAPSInterfaces.ActivityTaskRepresents the Task of a resource.Role: Task is the object used to access and manage the attributes of thetask.The following code snippet can be used to obtain the Task from the Resourceprogram manager.Dim objResourceProgramManager As ResourceProgramManagerDim oTask As TaskobjResourceProgramManager.GetTask “RobotTask.1”, oTask- get_name(o_name: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetName(CATBSTR oName)Get the name of the TaskParameters:oNameThe user defined name of the Task.Returns:An HRESULT.Legal values:S_OKThe name of the task was corrrectly retrievedE_FAILThe name of the task was not corrrectly retrievedExample:The following example get the name of the task.Dim objTask As TaskDim strTaskName As String..objTask.GetName strTaskName
- Parameters:
o_name (str) –
- Return type:
None
- get_resource(o_res: Product) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetResource(Product oRes)Gets the Owning ResourceParameters:oResThe Owning Resource.Returns:An HRESULT.Legal values:S_OKThe owning resource was corrrectly retrievedE_FAILThe owning resource was not corrrectly retrievedExample:The following example retrieves the owning resource of thetask.Dim objTask As TaskDim objRobot as Product..objTask.GetResource objRobot
- Parameters:
o_res (Product) –
- Return type:
None
- set_name(i_name: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetName(CATBSTR iName)Set the name of the taskParameters:iNameThe user defined name of the Task.Returns:An HRESULT.Legal values:S_OKThe name of the task was set corrrectlyE_FAILThe name of the task was not set corrrectlyExample:The following example set the name of the task.Dim objTask As Task..objTask.SetName(“RobotTask.2”)
- Parameters:
i_name (str) –
- Return type:
None