DrawingGDT (Object)

Represents a drawing GDT in a drawing view.

Properties


Property Angle() As
Returns or sets the angle of the drawing GDT. The angle is measured between the axis system of the drawing view and the local axis system of the drawing GDT. The angle is measured in radians and is counted counterclockwise.
Example:
This example sets the angle of the MyGDT drawing GDT to 90 degrees clockwise. You first need to compute the angle in degrees and set the minus sign to indicate the rotation is clockwise.
 Angle90Clockwise = -90
 MyGDT.Angle = Angle90Clockwise
 
Property Leaders() As (Read Only)
Returns the drawing leader collection of the drawing GDT.
Example:
This example retrieves in LeaderCollection the collection of leaders of the MyGDT drawing GDT.
 Dim LeaderCollection As DrawingLeaders
 Set LeaderCollection = MyGDT.Leaders
 
Property RowNumber() As (Read Only)
Returns the number of lines in the GDT
Returns:
The number of line in the GDT
Example:
This example retrieves in rowNumber the row number of the MyGDT drawing GDT
 rowNumber = MyGDT.RowNumber 
 
Property TextProperties() As (Read Only)
Returns the text properties of the drawing GDT.
Example:
This example retrieves in TextProperties the text properties of the MyGDT drawing GDT..
 Dim TextProperties As DrawingTextProperties
 Set TextProperties = MyGDT.TextProperties
 
Property x() As
Returns or sets the x coordinate of the drawing GDT. It is expressed with respect to the current view coordinate system. This coordinate, like any length, is measured in millimeters.
Example:
This example retrieves in X the x coordinate of the MyGDT drawing GDT.
 X = MyGDT.x
 
Property y() As
Returns or sets the y coordinate of the drawing GDT. It is expressed with respect to the current view coordinate system. This coordinate, like any length, is measured in millimeters.
Example:
This example sets the y coordinate of the MyGDT drawing GDT to 5 inches. You need first to convert the 5 inches into millmeters.
 NewYCoordinate = 5*25.4/1000
 MyGDT.y = NewYCoordinate
 

Methods


Func GetReferenceNumber( iRowNumber) As
Returns the number of references in a row of the GDT.
Parameters:
iRowNumber
The number of the row to analyse.
Returns:
The number of references in this row.
Example:
This example gets the reference number of the MyGDT drawing GDT
 MyGDT.GetReferenceNumber(iRowNumber, oRefNumber) 
 
Func GetTextRange( iRowNumber, iNumber) As
Returns the CATIADrawingTextRange of tolerance value and reference value.
Parameters:
iRowNumber
The number of the row to analyse If iRowNumber equals 0 to analyse upper text or lower text. If iRowNumber is greater than 0 analyse tolerance value or reference value.
iNumber
The modifier to analyse in this row: If iRowNumber equals 0 and iNumber = 0 represent upper text If iRowNumber equals 0 and iNumber = 1 represent lower text If iRowNumber is greater than 0 and iNumber equals 0 to analyse tolerance value If iRowNumber is greater than 0 and iNumber is greater than 0 to analyse reference value.
Returns:
The CATIADrawingTextRange which is specified. If there is no textrange which is corresponded above, then NULL is given back.
This example gets the TextRange on the specified line and modifier of the MyGDT drawing GDT
 MyGDT.GetTextRange(iRowNumber, iNumber, oTextRange) 
 
Func GetToleranceType( iRowNumber) As
Returns the symbol used in the row of the GDT.
Parameters:
iRowNumber
The number of the row to analyze.
Returns:
The symbol in this row. 0 : No GDT symbol. The specified row will be remove 1 : Straightness GDT symbol 2 : Flatness GDT symbol 3 : Circularity GDT symbol 4 : Cilindricity GDT symbol 5 : Line profile GDT symbol 6 : Surface profile GDT symbol 7 : Angularity GDT symbol 8 : Perpendicularity GDT symbol 9 : Parallelism GDT symbol 10 : Position GDT symbol 11 : Concentricity GDT symbol 12 : Symmetry 13 : Circular runout GDT symbol 14 : Total runout GDT symbol
Example:
This example gets the symbol on the specified line of the MyGDT drawing GDT
 MyGDT.GetToleranceType(iRowNumber, oGDTSymbol) 
 
Sub SetToleranceType( iRowNumber, iGDTSymbol)
Sets the symbol used in the row of the GDT.
Parameters:
iRowNumber
The number of the row analyse. If the row doesn't exist, it will be created
iGDTSymbol
The symbol to use in this row.
See also:
CATIADrawingGDT::GetToleranceType
This example sets a symbol on a specified line of the MyGDT drawing GDT
 MyGDT.SetToleranceType(iRowNumber, iGDTSymbol)