pycatia.dnb_igp_setup_interfaces.tag_group_factory¶
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_factory.TagGroupFactory(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectTagGroupFactoryInterface representing TagGroup factory.Role: This allows the creation of a TagGroupThe following code snippet can be used to obtain a TagGroupFactory from aselected ProductSet ParentObject = CATIA.ActiveDocument.Selection.FindObject(“CATIAProduct”)Set objTagGroupFact = ParentObject.GetTechnologicalObject(“TagGroupFactory”)- copy_tag_group(i_tag_group: TagGroup, io_tag_group: TagGroup) TagGroup ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub CopyTagGroup(TagGroup iTagGroup,TagGroup ioTagGroup)Copies a TagGroup to a new ProductParameters:iTagGroupTagGroup to be copied.ioTagGroupThe TagGroup to which iTagGroup gets copiedReturns:an HRESULT value.Legal values:S_OK if the operation succeedsE_FAIL otherwiseExample:…Dim objTagGroup(2) As TagGroupDim objTagGroupFactory as TagGroupFactory…objTagGroupFactory.CopyTagGroup objTagGroup(1),objTagGroup(2)
- create_tag_group(i_tag_group_name: str, i_modify_reference: bool, i_product: Product, o_tag_group: TagGroup) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub CreateTagGroup(CATBSTR iTagGroupName,boolean iModifyReference,Product iProduct,TagGroup oTagGroup)Creates a TagGroup. Each TagGroup has a Name, an option to modify referenceor modify locally and, the reference product.Parameters:iTagGroupNameName of the TagGroup to be created.iModifyReferenceModify reference or modify locally.iProductReference product.oTagGroupCreated TagGroup.Returns:An HRESULT.Legal values:S_OKAction is successfully created and the interface pointer issuccessfully returnedE_FAILAction was successfully created, but the interface queryfailedE_NOINTERFACEAction was successfully created, but the it doesn’t implement therequested interfaceE_OUTOFMEMORYThe component allocation failedExample:Set ParentObject = CATIA.ActiveDocument.Selection.FindObject(“CATIAProduct”)Set objTagGroupFact = ParentObject.GetTechnologicalObject(“TagGroupFactory”)Dim objTagGroup As TagGroupDim ModifyRef As BooleanModifyRef = FALSEobjTagGroupFact.CreateTagGroup “My_Group”, ModifyRef, ParentObject,objTagGroup
- create_tag_group_in_doc(i_tag_group_name: str, o_tag_group: TagGroup) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub CreateTagGroupInDoc(CATBSTR iTagGroupName,TagGroup oTagGroup)Creates a TagGroup with the given name in the document.Parameters:iTagGroupNameName of the TagGroup to be created.oTagGroupCreated TagGroup.Returns:An HRESULT.Legal values:S_OKAction is successfully created and the interface pointer issuccessfully returnedE_FAILAction was successfully created, but the interface queryfailedE_NOINTERFACEAction was successfully created, but the it doesn’t implement therequested interfaceE_OUTOFMEMORYThe component allocation failedExample:Set ParentObject = CATIA.ActiveDocumentDim Fact As TagGroupFactorySet Fact = ParentObject.GetItem(“DELMTagGroupFactory”)Dim TagGrp As TagGroupFact.CreateTagGroupInDoc “ABC”, TagGrp
- Parameters:
i_tag_group_name (str) –
o_tag_group (TagGroup) –
- Return type:
None
- delete_tag_group(i_tag_group: TagGroup) TagGroup ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub DeleteTagGroup(TagGroup iTagGroup)Deletes a TagGroupParameters:iTagGroupTagGroup to be deletedReturns:an HRESULT value.Legal values:S_OK if the operation succeedsE_FAIL otherwiseExample:…Dim objTagGroup(2) As TagGroupDim objTagGroupFactory as TagGroupFactory…objTagGroupFactory.DeleteTagGroup objTagGroup(1)
- reparent_tag_group(i_tag_group: TagGroup, io_product: Product, i_modify_reference: bool) TagGroup ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub ReparentTagGroup(TagGroup iTagGroup,Product ioProduct,boolean iModifyReference)Reparents a TagGroupParameters:iTagGroupTagGroup to be reparented.ioProductThe Product to which the TagGroup gets reparentediModifyReferenceModify reference or modify locally.Returns:an HRESULT value.Legal values:S_OK if the operation succeedsE_FAIL otherwiseExample:…Dim objTagGroup(2) As TagGroupDim objTagGroupFactory as TagGroupFactoryDim objProd As Product…objTagGroupFactory.ReparentTagGroup objTagGroup(0), objProd,TRUE