Solid Edge Draft Type Library
ActiveSheet Property
Description
Returns the active Sheet object.
Property type
Read-only property
Syntax
Visual Basic
Public Property ActiveSheet As Sheet
Remarks
The active sheet is the sheet that displays on top in a window or view and receives any newly placed graphic items. Setting the active sheet in one window does not make that sheet active in all windows. When used from the Document object when no window is active, the first section in the document is returned.
Example
Imports System.IO
Imports System.Runtime.InteropServices

Module Example
    <STAThread()> _
    Sub Main()

        Dim objApplication As SolidEdgeFramework.Application = Nothing
        Dim objDraftDocument As SolidEdgeDraft.DraftDocument = Nothing
        Dim objSheet As SolidEdgeDraft.Sheet = Nothing

        Try
            OleMessageFilter.Register()

            objApplication = Marshal.GetActiveObject("SolidEdge.Application")
            objDraftDocument = objApplication.ActiveDocument
            objSheet = objDraftDocument.ActiveSheet

        Catch ex As Exception
            Console.WriteLine(ex.Message)
        Finally
            OleMessageFilter.Revoke()
        End Try
    End Sub
End Module
See Also

DraftDocument Object  | DraftDocument Members