pycatia.structure_interfaces.str_members¶
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.structure_interfaces.str_members.StrMembers(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.CollectionStrMembersA collection of the Member objects contained in a given Product object of aProductDocument object.A Product object aggregates zero or one Members collection. This collection isretrieved using the Product.GetTechnologicalObject method of theproduct.Example:The following example retrieves the member collection from the oProductProduct.Dim oMembers as AnyObjectSet oMembers = oProduct.GetTechnologicalObject(“StructureMembers”)Method IndexItemReturns a member from its index in the Members collection.RemoveRemoves a member from the Members collection.Methodso Func Item( CATVariant iIndex) As StrMemberReturns a member from its index in the Members collection.Parameters:iIndexThe index of the member to retrieve in the collection of members.This index can either be the rank of the member in the collection or the nameyou assign to the member. As a numerics, this index is the rank of the memberin the collection. The index of the first member in the collection is 1, andthe index of the last member is Count. As a string, it is the name you assignedto the member using theAnyObject.Name propertyReturns:The retrieved memberExample:The following example returns in ThisMember the thirdmember,and in ThatMember the member namedColumn_1 in the Assembly_1 member collection.Dim ThisMember As MemberSet ThisMember = Assembly_1.Item(3)Dim ThatMember As MemberSet ThatMember = Assembly.Item(“Column_1”)o Sub Remove( CATVariant iIndex)Removes a member from the Members collection.Parameters:iIndexThe index of the member to remove. This index can either be therank of the member in the collection or the name you assigned to the member. Asa numerics, this index is the rank of the member in the collection. The indexof the first member in the collection is 1, and the index of the last member isCount. As a string, it is the name you assigned to the member using theAnyObject.Name propertyExample:The following example removes the sixth member and the membernamedColumn_1 from the Assembly_1 member collection.Assembly_1.Remove(6)Assembly_1.Remove(“Column_1”)Copyright © 1999-2011, Dassault Systèmes. All rights reserved.- item(i_index: cat_variant) StrMember ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func Item(CATVariant iIndex) As StrMemberReturns a member from its index in the Members collection.Parameters:iIndexThe index of the member to retrieve in the collection of members.This index can either be the rank of the member in the collection or the nameyou assign to the member. As a numerics, this index is the rank of the memberin the collection. The index of the first member in the collection is 1, andthe index of the last member is Count. As a string, it is the name you assignedto the member using theAnyObject.Name propertyReturns:The retrieved memberExample:The following example returns in ThisMember the thirdmember,and in ThatMember the member namedColumn_1 in the Assembly_1 member collection.Dim ThisMember As MemberSet ThisMember = Assembly_1.Item(3)Dim ThatMember As MemberSet ThatMember = Assembly.Item(“Column_1”)
- Parameters:
i_index (cat_variant) –
- 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 member from the Members collection.Parameters:iIndexThe index of the member to remove. This index can either be therank of the member in the collection or the name you assigned to the member. Asa numerics, this index is the rank of the member in the collection. The indexof the first member in the collection is 1, and the index of the last member isCount. As a string, it is the name you assigned to the member using theAnyObject.Name propertyExample:The following example removes the sixth member and the membernamedColumn_1 from the Assembly_1 member collection.Assembly_1.Remove(6)Assembly_1.Remove(“Column_1”)
- Parameters:
i_index (cat_variant) –
- Return type:
None