DrawingSelector Class |
The DrawingSelector class provides functionality for accessing the drawing list dialog.
SystemObject
Tekla.Structures.Drawing.UIDrawingSelector
Tekla.Structures.Drawing.UIDrawingSelector
Namespace: Tekla.Structures.Drawing.UI
Assembly: Tekla.Structures.Drawing (in Tekla.Structures.Drawing.dll) Version: 2025.0.0-alpha00045580+dc02c3918546f1e94eb2d3b13ea99057fb3313e0
The DrawingSelector type exposes the following members.
| Name | Description | |
|---|---|---|
| GetSelected |
Gets the drawings that are currently selected in the drawing list dialog.
|
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(); } } } }