StructureEditor Namespace
SetDisplayAlerts Method
If TRUE: Set the display alerts ON. If FALSE: Set the display alerts OFF.
Description
This API is used to set the display alerts property ON or OFF. If this property is ON then certain alerts and messages will be displayed while the application is running. If this property is OFF then the operation will be performed silently without any alerts and messages.
Syntax
Visual Basic
Public Function SetDisplayAlerts( _
   ByVal bDisplayAlerts As Boolean _
) As Long
Parameters
bDisplayAlerts
If TRUE: Set the display alerts ON. If FALSE: Set the display alerts 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

        Try
            OleMessageFilter.Register()

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

            ' Alerts and messages will be displayed while the application is running.
            objApplication.SetDisplayAlerts(True)

            ' Alerts and messages will not be displayed while the application is running.
            objApplication.SetDisplayAlerts(False)
        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