The collection of layers(sheets) in current page
VB: Property Get Layers As Layers
C++: Layers Layers
C#: Layers Layers
Sub Layers() Dim app As Origin.IOApplication Dim pg As Origin.Page app = New Origin.ApplicationSI pg = app.ActivePage If pg Is Nothing Then MsgBox("Can not get active page") Exit Sub End If Dim nCount As Integer nCount = pg.Layers.Count MsgBox("The active page has " + nCount.ToString() + " layers") End Sub
8.0SR2