Methods
- Func Add( iPositionLeaderX, iPositionLeaderY, iPositionX, iPositionY, iGDTSymbol, iText) As
-
Creates a drawing GDT and adds it to the drawing GDTs collection.
This drawing GDT becomes the active one.
- Parameters:
-
- iPositionLeaderX,
- iPositionLeaderY The drawing leader of the GDT x and y coordinates, expressed in millimeters, and expressed with respect to the view coordinate system dd>
- iPositionX,
- iPositionY The drawing GDT x and y coordinates, expressed in millimeters, and expressed with respect to the view coordinate system dd>
- iGDTSymbol
- The symbol to use in the first row. dd>
- See also:
- CATIADrawingGDT::GetToleranceType
- Parameters:
-
- iText
- The text of the iGDTSymbol dd>
- Func Item( iIndex) As
-
Returns a drawing GDT using its index from the drawing GDTs collection.
- Parameters:
-
- iIndex
- The index of the drawing GDT to retrieve from the collection of drawing GDTs. As a numerics, this index is the rank of the drawing GDT in the collection. The index of the first drawing GDT in the collection is 1, and the index of the last drawing GDT is Count. dd>
- Returns:
- The retrieved drawing GDT
- Example:
-
This example retrieves in ThisDrawingGDT the second drawing GDT,
in the drawing GDT collection of the active view
in the active sheet, in the active document supposed to be a drawing document.
Dim MyView As DrawingView Set MyView = MySheet.Views.ActiveView Dim ThisDrawingGDT As DrawingGDT Set ThisDrawingGDT = MyView.GDTs.Item(2)
- Parameters:
-
- iIndex
- The index of the drawing GDT to remove from the collection of drawing GDTs. As a numerics, this index is the rank of the drawing text in the collection. The index of the first drawing GDT in the collection is 1, and the index of the last drawing GDT is Count.
- Example:
-
The following example removes the third drawing GDT
from the drawing GDT collection of the active view
of the active document, supposed to be a drawing document.
Dim MyView As DrawingView Set MyView = MySheet.Views.ActiveView MyView.GDTs.Remove(3)