pycatia.navigator_interfaces.group¶
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.group.Group(com_object)¶
Note
CAA V5 Visual Basic Help (2020-06-11 12:40:47.360445)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectGroupRepresents a DMU group.The DMU group is an entity which gathers references to several products inorder to automate validation and verification of the DigitalMock-Up.A user can build a group using several methods: explicitely point out someproducts or take all products by default. The designated products can beintermediate or terminal node of the product structure. For instance, a userwho has to verify the integration of the engine in engine bay may define agroup with the engine assembly or with all the parts from the engine in orderto detect clashes. In the first case this user has to add the engine assembly(as a product) in the group, and in the second case, to add all the parts tothe group. Obviously, when a modification happens to the engine assembly theuser has to change the group only in the second case. To manage the explicitdefinition of the group, one may use the XxxxExplicit methods.When the system takes the group into account to perform a given task, it may benecessary to retrieve:The products designated by the user (For example, the section of theseproducts)The terminal nodes (or leaves) of the product (For example, clash detectiontakes into account terminal nodes)The set of products in the product structure which are not selected (Forexample, hide all products which are not in the group)The set of terminal nodes which are not selected (For example, clash ofsome products against all others).To perform these treatments one may use YyyyExtract or ZzzzInvertmethods.- add_explicit(i_product: AnyObject) → None¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub AddExplicit(CATBaseDispatch iProduct)Adds a product to the group.Parameters:iProductThe product to addExample:This example adds the product MyProduct to the groupNewGroup.NewGroup.AddExplicit MyProduct
- Parameters:
i_product (AnyObject) –
- Return type:
None
- count_explicit() → int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func CountExplicit() As longReturns the number of products in the group.Example:This example retrieves the number of products in the groupNewGroup.Dim number As Integernumber = NewGroup.CountExplicit
- Return type:
int
- count_extract() → int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func CountExtract() As longReturns the number of products which can be extracted from thegroup.Depending on the extraction mode, the extracted products canbe:Mode = 0: the products from the group (intermediate or terminal nodes).Mode = 1: the terminal nodes of the products from the group.Returns:The number of productsExample:This example reads the number of products in the groupNewGroup.Dim number As Integernumber = NewGroup.CountExtract
- Return type:
int
- count_invert() → int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func CountInvert() As longReturns the number of terminal node products which cannot be extracted fromthe group.Example:This example retrieves the number of terminal node products whichcannot be extracted from the group NewGroup.Dim number As Integernumber = NewGroup.CountInvert
- Return type:
int
- property extract_mode: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property ExtractMode() As longReturns or sets the mode for the extraction methods.Returns:The extraction mode0: the extraction provides the products from the group(intermediate of terminal nodes).1: the extraction provides terminal nodes of the products from thegroup.Example:This example retrieves the extraction mode of the NewGroup Groupand sets it to 1.Dim Mode As IntegerMode = NewGroup.ExtractModeNewGroup.ExtractMode = 1
- Return type:
int
- fill_sel_with_extract() → None¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub FillSelWithExtract()Fills the selection with all products which can be extracted from thegroup.Example:This example fills the selection with products which can beextractedfrom the NewGroup group.NewGroup.FillSelWithExtract
- Return type:
None
- fill_sel_with_invert() → None¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub FillSelWithInvert()Fills the selection with all terminal node products which cannot beextracted from the group.Example:This example fills the selection with all products which cannnotbe extractedfrom the NewGroup group.NewGroup.FillSelWithInvert
- Return type:
None
- item_explicit(i_index: cat_variant) → AnyObject¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func ItemExplicit(CATVariant iIndex) As CATBaseDispatchReturns a product using its index in the group.Parameters:iIndexThe index of the product in the group. The index of the firstproduct is 1, and the index of the last product is CountExplicit.Returns:The retrieved productExample:This example retrieves in ThisProduct the ninthproductfrom the NewGroup group.Dim ThisProduct As ProductSet ThisProduct = NewGroup.ItemExplicit(9)
- Parameters:
i_index (cat_variant) –
- Return type:
- item_extract(i_index: cat_variant) → Product¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func ItemExtract(CATVariant iIndex) As ProductReturns a product which can be extracted from the group using itsindex.Parameters:iIndexThe index of the product in the group. The index of the firstproduct is 1, and the index of the last product is CountExtract.Returns:The retrieved productExample:This example retrieves in ThisProduct the ninthproductfrom the NewGroup group.Dim ThisProduct As GroupSet ThisProduct = NewGroup.ItemExtract(9)
- Parameters:
i_index (cat_variant) –
- Return type:
- item_invert(i_index: cat_variant) → Product¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func ItemInvert(CATVariant iIndex) As ProductReturns a terminal node product which cannot be extracted from the groupusing its index.Parameters:iIndexThe index of the product in the group. The index of the firstproduct is 1, and the index of the last product is CountExtract.Returns:The retrieved productExample:This example retrieves in ThisProduct the ninth product whichcannot be extracted fromthe NewGroup group.Dim ThisProduct As GroupSet ThisProduct = NewGroup.ItemInvert(9)
- Parameters:
i_index (cat_variant) –
- Return type:
- remove_explicit(i_index: cat_variant) → None¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub RemoveExplicit(CATVariant iIndex)Removes a product from the group using its index.Parameters:iIndexThe index of the product in the group. The index of the firstproduct is 1, and the index of the last product is CountExplicit.Example:The following example removes the tenth product from the NewGroupgroup.NewGroup.RemoveExplicit 10
- Parameters:
i_index (cat_variant) –
- Return type:
None