pycatia.dnb_igp_setup_interfaces.operation¶
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.operation.Operation(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectDMAPSInterfaces.ActivityOperationRepresents an Operation.Role: The interface is used manage the activities under an Operation and itsattributes.The following code snippet can be used to obtain an Operation from a RobotTask.Dim objRobotTask as RobotTaskDim objOperationList As OperationobjRobotTask.GetAllOperations objOperationListDim objOperation As OperationobjOperation=objOperationList[0]The Operation can also be obtained from an activity of the typeOperation.Dim objActivity as Activity…Dim objOperation as OperationSet objOperation = objActivity.GetTechnologicalObject(“Operation” )- create_robot_motion(i_ref_act: AnyObject, i_before: bool, o_target_motion: RobotMotion) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub CreateRobotMotion(AnyObject iRefAct,boolean iBefore,RobotMotion oTargetMotion)Creates Robot Motion as a child of Operation. If there is an alreadyexisting RobotMotion we do not create a new one but return the handle to theexisting one, else creates it at the start and linkappropriately.Parameters:iRefActReference activity After/Before which the Target Motion needs to becreated.iBeforeCreated Target Motion can be Predecessor(True)/Successor(False) toReference activity.oTargetMotionThe created Robot Motion.Returns:An HRESULT.Legal values:S_OKThe Robot Motion could be successfully createdE_FAILThe Robot Motion could not be created.Example:The following example creates a robot motion as a child ofOperation.Dim objOperation As OperationDim objRefAct as AnyObjectDim objRobotmotion as RobotMotionobjOperation.CreateRobotMotionobjRefAct,1,objRobotmotion
- Parameters:
i_ref_act (AnyObject) –
i_before (bool) –
o_target_motion (RobotMotion) –
- Return type:
None
- get_actions(o_children_list: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetActions(CATSafeArrayVariant oChildrenList)Retrieves all the Basic Actions under the operation.Parameters:oChildrenListReturns the Basic Actions of the RobotReturns:An HRESULT.Legal values:S_OKThe actions could be successfully queriedE_FAILThe actions could not be queried.Example:The following example gets the actions of the currentOperation.Dim objOperation As OperationDim ActionList(2)objOperation.GetActions ActionList
- Parameters:
o_children_list (tuple) –
- Return type:
None
- get_robot_motion(o_robot_target_motion: RobotMotion) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetRobotMotion(RobotMotion oRobotTargetMotion)Retrieves the RobotMotion.Parameters:oRobotTargetMotionReturned RobotMotionReturns:An HRESULT.Legal values:S_OKThe Robot Motion could be successfully queriedE_FAILThe Robot Motion could not be queried.Example:The following example gets the robot motion of the currentOperation.Dim objOperation As OperationDim objRobotmotion as RobotMotionobjOperation.GetRobotMotion objRobotmotion
- Parameters:
o_robot_target_motion (RobotMotion) –
- Return type:
None
- get_via_mode(index: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetViaMode(short index)Retrieves the via mode of the operation.Parameters:indexThe Via Mode (1 if the target is a via point and 0 if the Target isUntyped (process)).Returns:An HRESULT.Legal values:S_OKThe via mode was successfully queried.E_FAILThe via mode could not be queried.Example:The following example retrieves the Via Mode of theOperation.Dim objOperation As OperationDim ViaModeobjOperation.GetViaMode ViaMode
- Parameters:
index (int) –
- Return type:
None
- set_via_mode(index: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub SetViaMode(short index)Sets the Via Mode of the Operation.Parameters:indexThe Via Mode (1 if the target is a via point and 0 if the Target isUntyped (process)).Returns:An HRESULT.Legal values:S_OKThe via mode was successfully set.E_FAILThe via mode could not be set.Example:The following example sets the Via Mode of theOperation.Dim objOperation As OperationobjOperation.SetViaMode 0
- Parameters:
index (int) –
- Return type:
None