All Frameworks  Object Hierarchy  This Framework  Indexes   

Inertias (Collection)

A collection of all inertia objects currently managed by the application.

WARNING: this collection will be DEPRECATED in the next release. It is recommended to use the method GetTechnologicalObject("Inertia") on the product to analyze, to retrieve an Inertia object.


Method Index

Add
Creates an Inertia object from an object and adds it to the Inertias collection.
Item
Returns an Inertia object using its index or its name from the Inertias collection.
Remove
Removes an Inertia object from the Inertias collection.

Methods


o Func Add( iObject) As
Creates an Inertia object from an object and adds it to the Inertias collection.
Parameters:
iObject
The Object
Returns:
The created Inertia
Example:
This example creates a new Inertia from a product TheProduct in the TheInertias collection.
    Dim NewInertia As Inertia
    Set NewInertia = TheInertias.Add(TheProduct)
    
o Func Item( iIndex) As
Returns an Inertia object using its index or its name from the Inertias collection.
Parameters:
iIndex
The index or the name of the Inertia to retrieve from the collection of inertias. As a numerics, this index is the rank of the Inertia in the collection. The index of the first Inertia in the collection is 1, and the index of the last Inertia is Count. As a string, it is the name you assigned to the Inertia.
Example:
This example retrieves in ThisInertia the ninth Inertia, and in ThatInertia the Inertia named Inertia Of MyProduct from the TheInertias collection.
    Dim ThisInertia As Inertia
    Set ThisInertia = TheInertias.Item(9)
    Dim ThatInertia As Inertia
    Set ThatInertia = TheInertias.Item("Inertia Of MyProduct")
    
o Sub Remove( iIndex)
Removes an Inertia object from the Inertias collection.
Parameters:
iIndex
The index or the name of the Inertia to remove from the collection of inertias. As a numerics, this index is the rank of the Inertia in the collection. The index of the first Inertia in the collection is 1, and the index of the last Inertia is Count. As a string, it is the name you assigned to the Inertia.
Example:
The following example removes the tenth Inertia and the Inertia named Inertia Of MyProduct from the TheInertias collection.
    TheInertias.Remove(10)
    TheInertias.Remove("Inertia Of MyProduct")
    

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