pycatia.analysis_interfaces.analysis_sets¶
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-09-25 14:34:21.593357
Warning
The notes denoted “CAA V5 Visual Basic Help” are to be used as reference only. They are there as a guide as to how the visual basic / catscript functions work and thus help debugging in pycatia.
- class pycatia.analysis_interfaces.analysis_sets.AnalysisSets(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.CollectionAnalysisSetsThe collection of analysis sets.- add(i_type: str, i_set_type: int) AnalysisSet ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func Add(CATBSTR iType,CATAnalysisSetType iSetType) As AnalysisSetCreates a new analysis set and adds it to the analysis setscollection.The analysis set will be aggregated on the Analysis ModelParameters:iTypeThe type of the set to create.iSetTypeThe category of the set for update.Returns:The created Analysis SetExample:This example create ThisAnalysisSet in the analysisSetsanalysissets collection. The set to create is supposed to be a load setdefined as an input ofthe case for the update.Dim ThisAnalysisSet As AnalysisSetSet ThisAnalysisSet = analysisSets.Add(“LoadSet”, 0)
- Parameters:
i_type (str) –
i_set_type (int) – enum cat_analysis_set_type
- Return type:
- add_existing_set(i_set: AnalysisSet, i_set_type: int) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub AddExistingSet(AnalysisSet iSet,CATAnalysisSetType iSetType)Adds an existing analysis set to the analysis setscollection.Parameters:iSetThe Existing Analysis Set.iSetTypeThe category of the set for update.Example:This example adds ThisAnalysisSet in the analysisSetsanalysissets collection. The set to add is supposed to be a restrain setdefined as an input of the case for the update.Dim ThisAnalysisSet As AnalysisSet…analysisSets.AddExistingSet(ThisAnalysisSet, 0)
- Parameters:
i_set (AnalysisSet) –
i_set_type (int) – enum cat_analysis_set_type
- Return type:
None
- item(i_index: cat_variant, i_search_type: int) AnalysisSet ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func Item(CATVariant iIndex,CATAnalysisSetSearchType iSerachType) As AnalysisSetReturns an analysis set using its index or its name from the analysis setscollection.Parameters:iIndexThe index or the name of the analysis set to retrieve from thecollection of analysis sets. As a numerics, this index is the rank of theanalysis set in the collection. The index of the first analysis set in thecollection 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 theAnyObject.Name property or when creating it using the Add method.iSerachTypeThe criterion of searching the set.CATAnalysisSetType.CATAnalysisSetSearchTypeReturns:The retrieved analysis setExample:This example retrieves in ThisAnalysisSet the third analysisset,and in ThatAnalysisSet the analysis set namedMySet in the analysis set collection of an Analysis Case of analysismodel.Dim ThisAnalysisSet As AnalysisSetSet ThisAnalysisSet = analysisCase.AnalysisSets.Item(3,1)Dim ThatAnalysisSet As AnalysisSetSet ThatAnalysisSet = analysisCase.AnalysisSets.Item(“MySet”)
- Parameters:
i_index (cat_variant) –
i_search_type (int) – enum cat_analysis_set_search_type
- Return type:
- item_by_type(i_type: str) AnalysisSet ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func ItemByType(CATBSTR iType) As AnalysisSetReturns an analysis set using its type from the analysis setscollection.Parameters:iTypeThe type of the set required for the searchReturns:The retrieved analysis setExample:This example retrieves in ThisAnalysisSet the “LoadSet” analysis setin the analysis set collection.Dim ThisAnalysisSet As AnalysisSetSet ThisAnalysisSet = analysisCase.AnalysisSets.ItemByType(“LoadSet”)
- Parameters:
i_type (str) –
- Return type:
- remove(i_index: cat_variant) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub Remove(CATVariant iIndex)Removes a set using its index or its name from the setcollection.Parameters:iIndexThe index or the name of the set to retrieve from the collection ofsets. As a numeric, this index is the rank of the set in the collection. Theindex of the first set in the collection is 1, and the index of the last set isCount. As a string, it is the name you assigned to the set using theAnyObject.Name property.
- Parameters:
i_index (cat_variant) –
- Return type:
None