Role: This interface is used to work with ARCTagGroup.
The following code snippet can be used to obtain a Tag from a selected Product
Set ParentObject = CATIA.ActiveDocument.Selection.FindObject("CATIAProduct")
Set objTag = ParentObject.GetTechnologicalObject("Tag")
Methods
- Sub ComputeDistanceAlongSeam( iFirstTagIdx, iSecondTagIdx, oDistance)
-
Function to compute the distance along the seam between two ARC tags of the ARCTagGroup.
- Parameters:
-
- iFirstTagIdx
- the index of the first tag. dd>
- iSecondTagIdx
- the index of the second tag. dd>
- oDistance
- the computed distance along the seam. dd>
- Returns:
- an HRESULT value.
Legal values:- S_OK if the operation succeeds
- E_FAIL otherwise .
- Sub GetARCTagsList( oARCTagList)
-
Function to get all the ARC tags grouped by the ARCTagGroup.
- Parameters:
-
- oARCTagList
- the ARC tags list. dd>
- Returns:
- an HRESULT value.
Legal values:- S_OK if the operation succeeds
- E_FAIL otherwise .
- Sub GetNumARCTags( oSize)
-
Function to get the total number of ARC tags grouped by the ARCTagGroup.
- Parameters:
-
- oSize
- the total number of ARC tags grouped by the ARCTagGroup. dd>
- Returns:
- an HRESULT value.
Legal values:- S_OK if the operation succeeds
- E_FAIL otherwise .
- Sub GetTagGroup( oTagGroup)
-
Function to get the underlying basic TagGroup.
- Parameters:
-
- oTagGroup
- the underlying basic TagGroup. dd>
- Returns:
- an HRESULT value.
Legal values:- S_OK if the operation succeeds
- E_FAIL otherwise .
- Sub GetTagParam( iIdx, iParamName, oVal)
-
Function to get the value of a given ARC tag parameter. The concerned ARC tag's index should be given.
- Parameters:
-
- iIdx
- the index of the ARC tag in the ARCTagGroup. dd>
- iParamName
- the name of the ARC tag parameter. Following ARC tag parameters can be set: "WireAngle", "FlareAngle", "RakeAngle", "WireRollAngle", "BaseTangentOffset", "WallTangentOffset", "ShiftDistance", "FlareLength", "StickOut", "TCPStickOut", "NearDistance" dd>
- oVal
- the value of the ARC tag parameter. dd>
- Returns:
- an HRESULT value.
Legal values:- S_OK if the operation succeeds
- E_FAIL otherwise .
- Sub RotateTag( iIdx, iAngle, iDirVector)
-
Function to rotate the ARC tag with the given index about the given direction vector.
- Parameters:
-
- iIdx
- the index of the ARC tag in the ARCTagGroup. dd>
- iAngle
- the angle by which the ARC tag should be rotated about the given direction vector. dd>
- iDirVector
- the direction vector( array of 3 real values ). dd>
- Returns:
- an HRESULT value.
Legal values:- S_OK if the operation succeeds
- E_FAIL otherwise .
- Sub RotateXTag( iIdx, iAngle)
-
Function to rotate the ARC tag with the given index about it's x-axis.
- Parameters:
-
- iIdx
- the index of the ARC tag in the ARCTagGroup. dd>
- iAngle
- the angle by which the ARC tag should be rotated about it's x-axis. dd>
- Returns:
- an HRESULT value.
Legal values:- S_OK if the operation succeeds
- E_FAIL otherwise .
- Sub RotateYTag( iIdx, iAngle)
-
Function to rotate the ARC tag with the given index about it's y-axis.
- Parameters:
-
- iIdx
- the index of the ARC tag in the ARCTagGroup. dd>
- iAngle
- the angle by which the ARC tag should be rotated about it's y-axis. dd>
- Returns:
- an HRESULT value.
Legal values:- S_OK if the operation succeeds
- E_FAIL otherwise .
- Sub RotateZTag( iIdx, iAngle)
-
Function to rotate the ARC tag with the given index about it's z-axis.
- Parameters:
-
- iIdx
- the index of the ARC tag in the ARCTagGroup. dd>
- iAngle
- the angle by which the ARC tag should be rotated about it's z-axis. dd>
- Returns:
- an HRESULT value.
Legal values:- S_OK if the operation succeeds
- E_FAIL otherwise .
- Sub SetTagParam( iIdx, iParamName, iVal)
-
Function to set the value of a given ARC tag parameter. The concerned ARC tag's index should be given.
- Parameters:
-
- iIdx
- the index of the ARC tag in the ARCTagGroup. dd>
- iParamName
- the name of the ARC tag parameter. Following ARC tag parameters can be set: "WireAngle", "FlareAngle", "RakeAngle", "WireRollAngle", "BaseTangentOffset", "WallTangentOffset", "ShiftDistance", "FlareLength", "StickOut", "TCPStickOut", "NearDistance" dd>
- iVal
- the value of the ARC tag parameter. dd>
- Returns:
- an HRESULT value.
Legal values:- S_OK if the operation succeeds
- E_FAIL otherwise .
- Sub TranslateTag( iIdx, iDistance, iDirVector)
-
Function to translate the ARC tag with the given index along the given direction vector.
- Parameters:
-
- iIdx
- the index of the ARC tag in the ARCTagGroup. dd>
- iDistance
- the distance by which the ARC tag should be translated along the given direction vector. dd>
- iDirVector
- the direction vector( array of 3 real values ). dd>
- Returns:
- an HRESULT value.
Legal values:- S_OK if the operation succeeds
- E_FAIL otherwise .
- Sub TranslateTagAlongSeam( iIdx, iDistance)
-
Function to translate the ARC tag with the given index along the seam.
- Parameters:
-
- iIdx
- the index of the ARC tag in the ARCTagGroup. dd>
- iDistance
- the distance by which the ARC tag should be translated along the seam. dd>
- Returns:
- an HRESULT value.
Legal values:- S_OK if the operation succeeds
- E_FAIL otherwise .