pycatia.navigator_interfaces.groups¶
Module initially auto generated using V5Automation files from CATIA V5 R28 on 2020-06-11 12:40:47.360445
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.navigator_interfaces.groups.Groups(com_object)¶
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.CollectionGroupsA collection of all groups currently managed by theapplication.The method Product.GetTechnologicalObject (“Groups”) on the root productretrieves this collection.- add() → Group¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func Add() As GroupCreates an empty Group and adds it to the GroupsCollection.Returns:The created groupExample:This example creates a new group in the TheGroupscollection.Dim NewGroup As GroupSet NewGroup = TheGroups.Add
- Return type:
- add_from_sel() → Group¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func AddFromSel() As GroupCreates a Group containing all products in the selection and adds it to theGroups Collection.Returns:The created groupExample:This example creates a new group containing all products in theselectionin the TheGroups collection.Dim NewGroup As GroupSet NewGroup = TheGroups.AddFromSel
- Return type:
- all_leaves() → Group¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func AllLeaves() As GroupReturns a group which contains all the terminal nodes of the current rootproduct.Example:This example retrieves the group in the TheGroupscollection.Dim AllLeavesGroup As GroupSet AllLeavesGroup = TheGroups.AllLeaves
- Return type:
- item(i_index: cat_variant) → Group¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func Item(CATVariant iIndex) As GroupReturns a group using its index or its name from the Groupscollection.Parameters:iIndexThe index or the name of the Group to retrieve from the collectionof groups. As a numerics, this index is the rank of the Group in thecollection. The index of the first Group in the collection is 1, and the indexof the last Group is Count. As a string, it is the name you assigned to theGroup.Returns:The retrieved GroupExample:This example retrieves in ThisGroup the ninthGroup,and in ThatGroup the Group namedGroup3 from the TheGroups collection.Dim ThisGroup As GroupSet ThisGroup = TheGroups.Item(9)Dim ThatGroup As GroupSet ThatGroup = TheGroups.Item(“Group3”)
- Parameters:
i_index (cat_variant) –
- Return type:
- remove(i_index: cat_variant) → None¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub Remove(CATVariant iIndex)Removes a group from the Groups collection.Parameters:iIndexThe index or the name of the Group to retrieve from he collectionof groups. As a numerics, this index is the rank of the Group in thecollection. The index of the first Group in the collection is 1, and the indexof the last Group is Count. As a string, it is the name you assigned to theGroup.Example:The following example removes the tenth Group and the GroupnamedGroup2 from the TheGroups collection.TheGroups.Remove(10)TheGroups.Remove(“Group2”)
- Parameters:
i_index (cat_variant) –
- Return type:
None