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.IUnknown
System.IDispatch
System.CATBaseUnknown
System.CATBaseDispatch
System.AnyObject
TagFactory

Interface representing Tag factory.

Role: This allows the creation of a Tag
The following code snippet can be used to obtain a TagFactory from a selected
TagGroup

Dim objTagFactory As TagFactory
Set 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:

iTagName
Name of the Tag to be created.
oTag
Newly created Tag.

Returns:
An HRESULT.
Legal values:

S_OK
Action is successfully created and the interface pointer is
successfully returned
E_FAIL
Action was successfully created, but the interface query
failed
E_NOINTERFACE
Action was successfully created, but the it doesn’t implement the
requested interface
E_OUTOFMEMORY
The component allocation failed

Example:

Dim objTagFactory As TagFactory
Dim objTag As Tag
Dim TagName As String
TagName = “MY_TAG”
objTagFactory.CreateTag TagName, objTag
Parameters:
  • i_tag_name (str) –

  • o_tag (Tag) –

Return type:

None