All Frameworks  Object Hierarchy  This Framework  Indexes   

GenericAction (Object)

Interface representing a GenericAction.

Role: This interface is used to work with GenericAction which consists of a predefined list of Atomic activities.
The following code snippet can be used to obtain a GenericAction from a selected Activity
   Dim oSelectAct As Activity
   set oSelectAct = CATIA.ActiveDocument.Selection.FindObject("CATIAActivity")
   Dim objGenAction As GenericAction
   set objGenAction = oSelectAct.GetTechnologicalObject("GenericAction")
 

Method Index

GetAtomicActivities
Retreives the list of Atomic activities for the action.

Methods


o Sub GetAtomicActivities( oAtomicActivities)
Retreives the list of Atomic activities for the action.
Parameters:
oAtomicActivities
The List of Atomic activities.
Returns:
An HRESULT.
Legal values:
S_OK
List of Atomic activities is successfully returned
E_FAIL
List of Atomic activities could not be obtained
Example:
   Dim objGenAct As GenericAction
          ......
   Dim List() 
   set List = objGenAct.GetAtomicActivities
   ..
   

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