pycatia.dnb_igp_setup_interfaces.tag_group¶
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.dnb_igp_setup_interfaces.tag_group.TagGroup(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.CollectionTagGroupInterface representing a TagGroup.Role: This interface is used to work with TagGroup which consists of a list ofTags.The following code snippet can be used to obtain a TagGroup from a selectedProductSet ParentObject = CATIA.ActiveDocument.Selection.FindObject(“CATIAProduct”)Set objTagGroup = ParentObject.GetTechnologicalObject(“TagGroup”)- create_tag(io_tag: Tag) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub CreateTag(Tag ioTag)Creates a TagParameters:oTagNewly created Tag.Returns:an HRESULT value.Legal values:S_OK if the operation succeedsE_FAIL otherwiseExample:Dim objTagGroup As TagGroup…Dim objTag As TagobjTagGroup.CreateTag objTag
- Parameters:
io_tag (Tag) –
- Return type:
None
- delete_tag(i_tag: Tag) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub DeleteTag(Tag iTag)Deletes a TagParameters:ioTagTag to be deletedReturns:an HRESULT value.Legal values:S_OK if the operation succeedsE_FAIL otherwiseExample:Dim objTagGroup As TagGroup…Dim objTag As TagobjTagGroup.DeleteTag objTag
- Parameters:
i_tag (Tag) –
- Return type:
None
- get_owner(io_parent_product: str) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetOwner(CATBSTR ioParentProduct)Retrieves the name of the owner of this TagGroup.Parameters:ioParentProductName of the owner of this TagGroup.Returns:an HRESULT value.Legal values:S_OK if the operation succeedsE_FAIL otherwiseExample:Dim objTagGroup As TagGroup…Dim ownerName As StringobjTagGroup.GetOwner ownerName
- Parameters:
io_parent_product (str) –
- Return type:
None
- get_tag(index: int) Tag ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Func GetTag(short index) As TagReturns a Tag by Index.Parameters:indexIndex of the required Tag.oTagReturned Tag.Returns:an HRESULT value.Legal values:S_OK if the operation succeedsE_FAIL otherwiseExample:Dim objTagGroup As TagGroup…For i = 1 To objTagGroup.CountSet objTag = objTagGroup.GetTag(i)…Next
- Parameters:
index (int) –
- Return type:
- get_tag_list(io_tag_list: tuple) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub GetTagList(CATSafeArrayVariant ioTagList)Gets the List of names of TagsParameters:ioTagListUnderlying List of Tag names.Returns:an HRESULT value.Legal values:S_OK if the operation succeedsE_FAIL otherwiseExample:Dim objTagGroup As TagGroup…Dim List(100)objTagGroup.GetTagList List
- Parameters:
io_tag_list (tuple) –
- Return type:
None