pycatia.dnb_igp_setup_interfaces.move_action_activity

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.move_action_activity.MoveActionActivity(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
DMAPSInterfaces.Activity
MoveActionActivity

Interface representing a Move Activity inside a generic Action (Close Gun/Open
Gun etc).

Role: This interface is used to retieve/assign the value of motion
targets/attributes for the Move Activity.
The following code snippet can be used to obtain a MoveActionActivity from a
selected Activity

Dim oSelectAct As Activity
set oSelectAct = CATIA.ActiveDocument.Selection.FindObject(“CATIAActivity”)
Dim objMoveAct As MoveActionActivity
set objMoveAct = oSelectAct.GetTechnologicalObject(“MoveActionActivity”)
property home_name: str

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
o Property HomeName() As CATBSTR

Sets and Retreives Home Name corresponding to the activity
target

Returns:
oHomeName Home Name stored as the target.
Parameters:

iHomeName
The specified Home Name as the activity target

Example:

Dim objMoveAct As MoveActionActivity
……
Dim HomeName as string
set HomeName=objMoveAct.HomeName
HomeName = “Home.2”
objMoveAct.HomeName=HomeName
Return type:

str

property joint_values: tuple

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
o Property JointValues() As CATSafeArrayVariant

This property returns and sets the joint values for the Move
activity.

Returns:
oJointVal The joint values for the Move activity.
Parameters:

iJointVal
The specified joint values for the move activity.

Example:

Dim objMoveAct As MoveActionActivity
……
Dim ListOfJointValues()
set ListOfJointValues=objMoveAct.JointValues
..
For i = 0 to ubound (ListOfJointValues)
Next
objMoveAct.JointValues=ListOfJointValues
Return type:

tuple

property target_type: str

Note

CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
o Property TargetType() As CATBSTR (Read Only)

Retreives Target Type depending on the defined target(“HOME” /
“JOINT”)

Returns:
oTargetType The Target Type for the Move.
Example:

Dim objMoveAct As MoveActionActivity
……
Dim TgtType As String
TgtType=objMoveAct.TargetType
Return type:

str