All Frameworks  Object Hierarchy  This Framework  Indexes   

AnalysisSets (Collection)

The collection of analysis sets.


Method Index

AddExistingSet
Adds an existing analysis set to the analysis sets collection.
Add
Creates a new analysis set and adds it to the analysis sets collection.
ItemByType
Returns an analysis set using its type from the analysis sets collection.
Item
Returns an analysis set using its index or its name from the analysis sets collection.
Remove
Removes a set using its index or its name from the set collection.

Methods


o Sub AddExistingSet( iSet,
iSetType)
Adds an existing analysis set to the analysis sets collection.
Parameters:
iSet
The Existing Analysis Set.
iSetType
The category of the set for update.
Example:
This example adds ThisAnalysisSet in the analysisSetsanalysis
sets collection. The set to add is supposed to be a restrain set defined as an input of
the case for the update.
 Dim ThisAnalysisSet As AnalysisSet
 ...
 analysisSets.AddExistingSet(ThisAnalysisSet, 0)
 
o Func Add( iType,
iSetType) As
Creates a new analysis set and adds it to the analysis sets collection.
The analysis set will be aggregated on the Analysis Model
Parameters:
iType
The type of the set to create.
iSetType
The category of the set for update.
Returns:
The created Analysis Set
Example:
This example create ThisAnalysisSet in the analysisSetsanalysis
sets collection. The set to create is supposed to be a load set defined as an input of
the case for the update.
 Dim ThisAnalysisSet As AnalysisSet
 Set ThisAnalysisSet = analysisSets.Add("LoadSet", 0)
 
o Func ItemByType( iType) As
Returns an analysis set using its type from the analysis sets collection.
Parameters:
iType
The type of the set required for the search
Returns:
The retrieved analysis set
Example:
This example retrieves in ThisAnalysisSet the "LoadSet" analysis set in the analysis set collection.
 Dim ThisAnalysisSet As AnalysisSet
 Set ThisAnalysisSet = analysisCase.AnalysisSets.ItemByType("LoadSet")
 
o Func Item( iIndex,
iSerachType) As
Returns an analysis set using its index or its name from the analysis sets collection.
Parameters:
iIndex
The index or the name of the analysis set to retrieve from the collection of analysis sets. As a numerics, this index is the rank of the analysis set in the collection. The index of the first analysis set in the collection is 1, and the index of the last analysis set is Count. As a string, it is the name you assigned to the analysis set using the
AnyObject.Name property or when creating it using the Add method.
iSerachType
The criterion of searching the set.
CATAnalysisSetType.CATAnalysisSetSearchType
Returns:
The retrieved analysis set
Example:
This example retrieves in ThisAnalysisSet the third analysis set, and in ThatAnalysisSet the analysis set named MySet in the analysis set collection of an Analysis Case of analysis model.
 Dim ThisAnalysisSet As AnalysisSet
 Set ThisAnalysisSet = analysisCase.AnalysisSets.Item(3,1)
 Dim ThatAnalysisSet As AnalysisSet
 Set ThatAnalysisSet = analysisCase.AnalysisSets.Item("MySet")
 
o Sub Remove( iIndex)
Removes a set using its index or its name from the set collection.
Parameters:
iIndex
The index or the name of the set to retrieve from the collection of sets. As a numeric, this index is the rank of the set in the collection. The index of the first set in the collection is 1, and the index of the last set is Count. As a string, it is the name you assigned to the set using the
AnyObject.Name property.

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