API Reference

Detailed and full API reference helps you master Tekla development

This is the most recent version of Tekla Open API.
For older versions, please visit Tekla Warehouse.

DrawingSelector Class

The DrawingSelector class provides functionality for accessing the drawing list dialog.
Inheritance Hierarchy
SystemObject
  Tekla.Structures.Drawing.UIDrawingSelector

Namespace:  Tekla.Structures.Drawing.UI
Assembly:  Tekla.Structures.Drawing (in Tekla.Structures.Drawing.dll) Version: 2019.0.0.0 (2019.0.0.0)
Syntax
public sealed class DrawingSelector

The DrawingSelector type exposes the following members.

Methods
  Name Description
Public method GetSelected
Gets the drawings that are currently selected in the drawing list dialog.
Top
Examples
The following example deletes the selected drawings:
using Tekla.Structures.Drawing;

public class Example
{
       public void Example1()
       {
           DrawingHandler MyDrawingHandler = new DrawingHandler();
           if(MyDrawingHandler.GetConnectionStatus())
           {
               DrawingEnumerator SelectedDrawings = MyDrawingHandler.GetDrawingSelector().GetSelected();
               while(SelectedDrawings.MoveNext())
               {
                   SelectedDrawings.Current.Delete();
               }
           }
       }
}
See Also