- Function GetLayers() As String()
-
- Using Trans As Transaction = DB.TransactionManager.StartTransaction
- Dim LayT As LayerTable = Trans.GetObject(DB.LayerTableId, OpenMode.ForRead)
- Dim ID As ObjectId, LayTR As LayerTableRecord, Lays As New List(Of String)
- For Each ID In LayT
- LayTR = Trans.GetObject(ID, OpenMode.ForRead)
- Lays.Add(LayTR.Name)
- Next
- Trans.Commit()
- GetLayers = Lays.ToArray
- End Using
- End Function
|