All Frameworks  Object Hierarchy  This Framework  Previous  Next  Indexes  

FunctionalObjects (Collection)

IUnknown
  |
  +---IDispatch
    |
    +---CATBaseUnknown
      |
      +---CATBaseDispatch
        |
        +---Collection
          |
          +---FunctionalObjects
 


Interface to access a collection of FunctionalObjects.

Method Index

Create
Creates a FunctionalObject.
CreateProxy
Creates a FunctionalObjectProxi.
Delete
Deletes a FunctionalObject.
Elem
Returns an action using its index or its name from the actions collection.

Methods


o Func Create(CATBSTR iName) As CATIAFunctionalObject
Creates a FunctionalObject.
o Func CreateProxy(CATBSTR iName,
CATIAFunctionalDescription iDesc) As CATIAFunctionalObjectProxy
Creates a FunctionalObjectProxi.
o Sub Delete(CATIAFunctionalObject iObject)
Deletes a FunctionalObject.
o Func Elem(CATVariant iIndex) As CATIAFunctionalObject
Returns an action using its index or its name from the actions collection.
Parameters:
iIndex
The index or the name of the action to retrieve from the collection of actions. As a numerics, this index is the rank of the action in the collection. The index of the first action in the collection is 1, and the index of the last action is Count. As a string, it is the name you assigned to the action using the
AnyObject.Name property.
Returns:
The retrieved action
Example:
This example retrieves in Obj1 the fifth object in the collection and in Obj2 the action named Valve.
 Dim Obj1 As FunctionalObject
 Set Obj1 = Desc.Object(5)
 Dim Obj2 As FunctionalObject
 Set Obj2 = Desc.Object("Valve")
 

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