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")
Properties
- Property HomeName() As
-
Sets and Retreives Home Name corresponding to the activity target
- Returns:
- oHomeName Home Name stored as the target. dd>
- Parameters:
-
- iHomeName
- The specified Home Name as the activity target dd>
- Example:
-
Dim objMoveAct As MoveActionActivity ...... Dim HomeName as string set HomeName=objMoveAct.HomeName HomeName = "Home.2" objMoveAct.HomeName=HomeName
- Property JointValues() As
-
This property returns and sets the joint values for the Move activity.
- Returns:
- oJointVal The joint values for the Move activity. dd>
- Parameters:
-
- iJointVal
- The specified joint values for the move activity. dd>
- Example:
-
Dim objMoveAct As MoveActionActivity ...... Dim ListOfJointValues() set ListOfJointValues=objMoveAct.JointValues .. For i = 0 to ubound (ListOfJointValues) ... Next objMoveAct.JointValues=ListOfJointValues
- Property TargetType() As (Read Only)
-
Retreives Target Type depending on the defined target("HOME" / "JOINT")
- Returns:
- oTargetType The Target Type for the Move. dd>
- Example:
-
Dim objMoveAct As MoveActionActivity ...... Dim TgtType As String TgtType=objMoveAct.TargetType