Methods
- Func Add( iGeomElem) As
-
Creates a drawing thread and adds it to the DrawingThreads collection.
- Parameters:
-
- iGeomElem
- Geometry to create the thread on. Be careful, this geometry must be a 2D geometry dd>
- Returns:
- The created drawing thread
- Example:
-
The following example creates a drawing thread
and retrieved in MyThread in the drawing view collection
of the MyView drawing view.
This view belongs to the drawing view collection of the drawing sheet
Dim MyView As DrawingView Set MyView = MySheet.Views.ActiveView Dim MyThread As DrawingThread Set MyThread = MyView.Threads.Add(iGeomElem)
- Parameters:
-
- iIndex
- The index of the drawing thread to retrieve from the collection of drawing threads. As a numerics, this index is the rank of the drawing thread in the collection. The index of the first drawing thread in the collection is 1, and the index of the last drawing thread is Count. dd>
- Returns:
- The retrieved drawing thread
- Example:
-
This example retrieves in ThisDrawingThread the second drawing thread,
in the drawing view 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 ThisDrawingThread As DrawingThread Set ThisDrawingThread = MyView.Threads.Item(2)
- Parameters:
-
- iIndex
- The index of the drawing thread to remove from the collection of drawing threads. As a numerics, this index is the rank of the drawing thread in the collection. The index of the first drawing thread in the collection is 1, and the index of the last drawing thread is Count.
- Example:
-
The following example removes the third drawing thread
in the drawing thread 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.DrawingThreads.Remove(3)