All Frameworks  Object Hierarchy  This Framework  Indexes   

MoveActionActivity (Object)

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 Index

HomeName
Sets and Retreives Home Name corresponding to the activity target
JointValues
This property returns and sets the joint values for the Move activity.
TargetType
Retreives Target Type depending on the defined target("HOME" / "JOINT")

Properties


o Property HomeName() As
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
   
o Property JointValues() As
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
   
o Property TargetType() As (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
   

Copyright © 2003, Dassault Systèmes. All rights reserved.