CATPlantShipInterfaces PspListOfObjects (Object)
All Frameworks Object Hierarchy This Framework Indexes
PspListOfObjects (Object)
Represents a collection of Objects.
Role: Collection of Object.
Property Index
-
Count
- Returns the number of objects in the list.
Method Index
-
Append
- Adds an object to the end of the list.
-
Item
- Returns an object from its index in the list.
-
RemoveByIndex
- Remove an object from the list by specifying its position in the list.
Properties
o Property Count( | ) As (Read Only) |
-
Returns the number of objects in the list.
- Example:
-
This example retrieves in NumberOfObjects the number of objects
currently gathered in MyList.
NumberOfObjects = MyList.Count
Methods
-
Adds an object to the end of the list.
- Parameters:
-
- iObject
- The object to be added to the list.
- Example:
- The following example appends an object to the list.
Dim MyObject As AnyObject
Dim MyList As PspListOfObjects
MyList.Append(MyObject)
o Func Item( | | iIndex, |
| | iInterfaceName) As |
-
Returns an object from its index in the list.
- Parameters:
-
- iIndex
- The index of the first object in the collection is 1, and
the index of the last object is Count.
- iInterfaceName
- The interface name of oObj.
- Returns:
- the retrieved object.
- Example:
- The following example returns in the third object in the list.
Dim MyObject As PspID
Dim MyList As PspListOfObjects
Set MyObject = PspListOfObjects.Item(3,"CATIAPspID")
o Sub RemoveByIndex( | | iIndex) |
-
Remove an object from the list by specifying its position in the list.
- Parameters:
-
- iIndex
- The position of the object to be removed in the list.
- Example:
- The following example removes the second entry in the list. Please note that the
list index starts with 1.
Dim MyList As PspListOfObjects
MyList.RemoveByIndex (2)
Copyright © 2003, Dassault Systèmes. All rights reserved.