StructureEditor Namespace
GetDisplayAlerts Method
If TRUE: Display alerts property is ON. If FALSE: Display alerts property is OFF.
Description
This API is used to get the status of display alerts property whether it is ON or OFF.
Syntax
Visual Basic
Public Function GetDisplayAlerts( _
   ByRef bDisplayAlerts As Boolean _
) As Long
Parameters
bDisplayAlerts
If TRUE: Display alerts property is ON. If FALSE: Display alerts property is OFF.
Example
Imports System.IO
Imports System.Runtime.InteropServices

Module Example
    <STAThread()> _
    Sub Main()
        Dim objApplication As StructureEditor.Application = Nothing
        Dim objStructureEditor As StructureEditor.SEECStructureEditor = Nothing
        Dim bDisplayAlerts As Boolean = False

        Try
            OleMessageFilter.Register()

            ' Start structure editor application
            objApplication = Activator.CreateInstance(Type.GetTypeFromProgID("StructureEditor.Application"))
            objStructureEditor = objApplication.SEECStructureEditor
            objApplication.Visible = True

            objApplication.GetDisplayAlerts(bDisplayAlerts)

            If bDisplayAlerts Then
                ' Alerts and messages will be displayed while the application is running.
            Else
                ' Alerts and messages will not be displayed while the application is running.
            End If
        Catch ex As Exception
            Console.WriteLine(ex.Message)
        Finally
            If Not objApplication Is Nothing Then
                ' Kill the instance of structure editor created
                objApplication.Quit()
            End If

            OleMessageFilter.Revoke()
        End Try
    End Sub
End Module
See Also

IStructureEditor Object  | IStructureEditor Members  | Solid Edge ST2 - What's New