pycatia.mec_mod_interfaces.fix_together¶
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.mec_mod_interfaces.fix_together.FixTogether(com_object)¶
Note
CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectFixTogetherThe object that manages a sequence of products orfixTogethers.It belongs to the FixTogether collection of a Product.- add_fix_together(i_fix_together: FixTogether) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub AddFixTogether(FixTogether iFixTogether)Add a fixTogether to a FixTogether. The fixTogether is fixed together withthe products or fixTogethers already contained in the FixTogether.Example:The following example adds a FixTogether fixTogether in a FixTogethermyFixTogether.myFixTogether.AddFixTogether(fixTogether)
- Parameters:
i_fix_together (FixTogether) –
- Return type:
None
- add_product(i_product: Product) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub AddProduct(Product iProduct)Add a product to a FixTogether. The product is fixed together with theproducts and fixTogethers already contained in the FixTogether.Example:The following example adds a Product myProduct in aFixTogether.myFixTogether.AddProduct(myProduct)
- Parameters:
i_product (Product) –
- Return type:
None
- property fix_togethers_count: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property FixTogethersCount() As long (Read Only)Returns the number of FixTogether entities in theFixTogether.Example:The following example retrieves in fixTogethersCount the number ofFixTogethers of the myFixTogether FixTogether :fixTogethersCount = myFixTogether.FixTogethersCount
- Return type:
int
- get_fix_together(i_index: cat_variant) FixTogether ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func GetFixTogether(CATVariant iIndex) As FixTogetherReturns a FixTogether using its index or its name in theFixTogether.Parameters:iIndexThe index or the name of the FixTogether to retrieve. As anumerics, this index is the rank of the FixTogether in the FixTogethers of theFixTogether. The index of the first FixTogether is 1, and the index of the lastFixTogether is FixTogether sCount. As a string, it is the name you assigned tothe FixTogether using theAnyObject.Name property.Returns:The retrieved FixTogetherExample:This example retrieves in thisFixTogether the fifth FixTogether and inthatFixTogether the FixTogether named myFixTogether in the FixTogethers of theFixTogether.Dim thisFixTogether As FixTogetherSet thisFixTogether = myFixTogether.GetFixTogether(5)Dim thatFixTogether As FixTogetherSet thatFixTogether = myFixTogether.GetFixTogether(“myFixTogether”)
- Parameters:
i_index (cat_variant) –
- Return type:
- get_product(i_index: cat_variant) Product ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Func GetProduct(CATVariant iIndex) As ProductReturns a Product using its index or its name in theFixTogether.Parameters:iIndexThe index or the name of the Product to retrieve. As a numerics,this index is the rank of the Product in the products of the FixTogether. Theindex of the first Product is 1, and the index of the last Product isProductsCount. As a string, it is the name you assigned to the Product usingtheAnyObject.Name property.Returns:The retrieved ProductExample:This example retrieves in thisProduct the fifth Product and inthatProduct the Product named myProduct in the products of theFixTogether.Dim thisProduct As ProductSet thisProduct = myFixTogether.GetProduct(5)Dim thatProduct As ProductSet thatProduct = myFixTogether.GetProduct(“myProduct”)
- Parameters:
i_index (cat_variant) –
- Return type:
- property products_count: int¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384)
- o Property ProductsCount() As long (Read Only)Returns the number of products fixed together in theFixTogether.Example:The following example retrieves in productsCount the number of productsof the myFixTogether FixTogether :productsCount = myFixTogether.ProductsCount
- Return type:
int
- remove_fix_together(i_index: cat_variant) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub RemoveFixTogether(CATVariant iIndex)Removes a FixTogether from the FixTogether.Parameters:iIndexThe index or the name of the FixTogether to remove from theFixTogether. As a numerics, this index is the rank of the FixTogether in theFixTogethers of the FixTogether. The index of the first FixTogether is 1, andthe index of the last FixTogether is FixTogethersCount. As a string, it is thename you assigned to the FixTogether using theAnyObject.Name property.Example:This example removes the last FixTogether of theFixTogether.fixTogether.RemoveFixTogether(fixTogether.FixTogethersCount)
- Parameters:
i_index (cat_variant) –
- Return type:
None
- remove_product(i_index: cat_variant) None ¶
Note
- CAA V5 Visual Basic Help (2020-07-06 14:02:20.222384))
- o Sub RemoveProduct(CATVariant iIndex)Removes a Product from the FixTogether.Parameters:iIndexThe index or the name of the Product to remove from theFixTogether. As a numerics, this index is the rank of the Product in theproducts of the FixTogether. The index of the first Product is 1, and the indexof the last Product is ProductsCount. As a string, it is the name you assignedto the FixTogether using theAnyObject.Name property.Example:This example removes the last Product of the FixTogether.fixTogether.RemoveProduct(fixTogether.ProductsCount)
- Parameters:
i_index (cat_variant) –
- Return type:
None