pycatia.dnb_igp_setup_interfaces.tag_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_factory.TagFactory(com_object)¶
Note
CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357)
System.IUnknownSystem.IDispatchSystem.CATBaseUnknownSystem.CATBaseDispatchSystem.AnyObjectTagFactoryInterface representing Tag factory.Role: This allows the creation of a TagThe following code snippet can be used to obtain a TagFactory from a selectedTagGroupDim objTagFactory As TagFactorySet ParentObject = CATIA.ActiveDocument.Selection.FindObject(“CATIAProduct”)Set objTagFactory = ParentObject.GetTechnologicalObject(“TagFactory”)- create_tag(i_tag_name: str, o_tag: Tag) None ¶
Note
- CAA V5 Visual Basic Help (2020-09-25 14:34:21.593357))
- o Sub CreateTag(CATBSTR iTagName,Tag oTag)Creates a Tag. Each Tag has a Name and a parent TagGroup.Parameters:iTagNameName of the Tag to be created.oTagNewly created Tag.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:Dim objTagFactory As TagFactory…Dim objTag As TagDim TagName As StringTagName = “MY_TAG”objTagFactory.CreateTag TagName, objTag
- Parameters:
i_tag_name (str) –
o_tag (Tag) –
- Return type:
None